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 -webkit-transform: translateZ(0); | 10 -webkit-transform: translateZ(0); |
(...skipping 21 matching lines...) Expand all Loading... |
32 for (var i = 0; i < 100; i++ ) { | 32 for (var i = 0; i < 100; i++ ) { |
33 selection.modify("move", "forward", "word"); | 33 selection.modify("move", "forward", "word"); |
34 } | 34 } |
35 // Remove focus from the element, since the word under the cursor won't have
a misspelling marker. | 35 // Remove focus from the element, since the word under the cursor won't have
a misspelling marker. |
36 div.blur(); | 36 div.blur(); |
37 } | 37 } |
38 | 38 |
39 function startTest() { | 39 function startTest() { |
40 if (!window.testRunner) | 40 if (!window.testRunner) |
41 return; | 41 return; |
42 testRunner.dumpAsText(true); | 42 testRunner.dumpAsTextWithPixelResults(); |
43 testRunner.waitUntilDone(); | 43 testRunner.waitUntilDone(); |
44 testRunner.setBackingScaleFactor(2, function () { | 44 testRunner.setBackingScaleFactor(2, function () { |
45 moveCursorOverAllWords('testLTR'); | 45 moveCursorOverAllWords('testLTR'); |
46 moveCursorOverAllWords('testRTL'); | 46 moveCursorOverAllWords('testRTL'); |
47 moveCursorOverAllWords('testLTREllipses'); | 47 moveCursorOverAllWords('testLTREllipses'); |
48 moveCursorOverAllWords('testRTLEllipses'); | 48 moveCursorOverAllWords('testRTLEllipses'); |
49 testRunner.notifyDone(); | 49 testRunner.notifyDone(); |
50 }); | 50 }); |
51 } | 51 } |
52 </script> | 52 </script> |
(...skipping 20 matching lines...) Expand all Loading... |
73 the the adlj adaasj sdklj. there there | 73 the the adlj adaasj sdklj. there there |
74 </div> | 74 </div> |
75 | 75 |
76 RTL (text-overflow:ellipses): | 76 RTL (text-overflow:ellipses): |
77 <div id="testRTLEllipses" class="testDiv forcertl ellipses" contenteditable="tru
e"> | 77 <div id="testRTLEllipses" class="testDiv forcertl ellipses" contenteditable="tru
e"> |
78 the the adlj adaasj sdklj. there there | 78 the the adlj adaasj sdklj. there there |
79 </div> | 79 </div> |
80 | 80 |
81 </body> | 81 </body> |
82 </html> | 82 </html> |
OLD | NEW |