OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style> | 3 <style> |
4 .testDiv { | 4 .testDiv { |
5 width: 200px; | 5 width: 200px; |
6 height: 20px; | 6 height: 20px; |
7 border: 1px solid black; | 7 border: 1px solid black; |
8 white-space: nowrap; | 8 white-space: nowrap; |
9 overflow: hidden; | 9 overflow: hidden; |
10 } | 10 } |
(...skipping 20 matching lines...) Expand all Loading... |
31 for (var i = 0; i < 100; i++ ) { | 31 for (var i = 0; i < 100; i++ ) { |
32 selection.modify("move", "forward", "word"); | 32 selection.modify("move", "forward", "word"); |
33 } | 33 } |
34 // Remove focus from the element, since the word under the cursor won't have
a misspelling marker. | 34 // Remove focus from the element, since the word under the cursor won't have
a misspelling marker. |
35 div.blur(); | 35 div.blur(); |
36 } | 36 } |
37 | 37 |
38 function startTest() { | 38 function startTest() { |
39 if (!window.testRunner) | 39 if (!window.testRunner) |
40 return; | 40 return; |
41 testRunner.dumpAsText(true); | 41 testRunner.dumpAsTextWithPixelResults(); |
42 testRunner.waitUntilDone(); | 42 testRunner.waitUntilDone(); |
43 testRunner.setBackingScaleFactor(2, function () { | 43 testRunner.setBackingScaleFactor(2, function () { |
44 moveCursorOverAllWords('testLTR'); | 44 moveCursorOverAllWords('testLTR'); |
45 moveCursorOverAllWords('testRTL'); | 45 moveCursorOverAllWords('testRTL'); |
46 moveCursorOverAllWords('testLTREllipses'); | 46 moveCursorOverAllWords('testLTREllipses'); |
47 moveCursorOverAllWords('testRTLEllipses'); | 47 moveCursorOverAllWords('testRTLEllipses'); |
48 testRunner.notifyDone(); | 48 testRunner.notifyDone(); |
49 }); | 49 }); |
50 } | 50 } |
51 </script> | 51 </script> |
(...skipping 20 matching lines...) Expand all Loading... |
72 the the adlj adaasj sdklj. there there | 72 the the adlj adaasj sdklj. there there |
73 </div> | 73 </div> |
74 | 74 |
75 RTL (text-overflow:ellipses): | 75 RTL (text-overflow:ellipses): |
76 <div id="testRTLEllipses" class="testDiv forcertl ellipses" contenteditable="tru
e"> | 76 <div id="testRTLEllipses" class="testDiv forcertl ellipses" contenteditable="tru
e"> |
77 the the adlj adaasj sdklj. there there | 77 the the adlj adaasj sdklj. there there |
78 </div> | 78 </div> |
79 | 79 |
80 </body> | 80 </body> |
81 </html> | 81 </html> |
OLD | NEW |