Editing tests should use testRunner instead of layoutTestController
[WebKit-https.git] / LayoutTests / editing / selection / extend-byline-withfloat.html
1 <html>\r
2 <head>\r
3 <style>\r
4 html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{\r
5     margin:0;\r
6     padding:0;\r
7     border:0;\r
8     outline:0;\r
9     font-weight:inherit;\r
10     font-style:inherit;\r
11     font-size:100%;\r
12     font-family:inherit;\r
13     vertical-align:baseline\r
14 }\r
15 p{margin-top:5px;margin-bottom:10px}\r
16 a{color:#f33e1b;text-decoration:none}\r
17 span{padding-bottom:10px;height:53px;font-family:Helvetica;font-weight:300}\r
18 a.subtle{text-decoration:none;color:inherit}\r
19 .twitter_username,a.twitter_username{font-size:small;font-weight:bold;color:#555; text-decoration:none}\r
20 .tweet_text_big a.very_subtle{visibility:hidden;text-decoration:none}\r
21 .tweet_text_big{width:600px;margin-bottom:5px;left:160px;float:left}\r
22 .tweet_subtext{display:block;margin-top:3px;padding-bottom:4px;font-size:small;color:#666}\r
23 .tweet_subtext span.favoriteers-header{float:left;display:block;margin-top:8px;padding-top:8px;padding-right:5px}\r
24 </style>\r
25 </head>\r
26 <body style="font-family: 'Helvetica'">\r
27 <p>This is the test case for bug <a href="<rdar://problem/7615758>">7615758</a></p>\r
28 <p class="tweet_text_big">\r
29     \r
30     Guys, is it okay that I kinda hate the obsequious rhetorical questions people ask when they want to sound like a wry, world-weary populist?\r
31     <br>\r
32     <span class="tweet_subtext">\r
33         by <a href="http://twitter.com/hotdogsladies" class="twitter_username">hotdogsladies</a> (Merlin Mann),\r
34         <a href="http://twitter.com/hotdogsladies/status/8639030323" class="subtle">11 hours, 31 minutes ago</a>.\r
35         <a href="/tweet/8639030323" title="Permalink" class="very_subtle">ΒΆ</a>\r
36         <br>\r
37         <span class="favoriteers-header">Favorited by</span>\r
38     </span>\r
39     </p>\r
40 </body>\r
41 <script>\r
42     if (window.testRunner)\r
43         testRunner.dumpAsText();\r
44 \r
45     document.execCommand("FindString", false, "populist");\r
46     var sel = getSelection();\r
47     sel.modify("extend", "forward", "line");\r
48     sel.modify("extend", "forward", "line");\r
49     document.write("PASS");\r
50     sel.modify("extend", "backward", "line");\r
51     document.write("PASS");\r
52 </script>\r
53 </html>\r