Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-unit-overflow-and-scroll-in-direction.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <!-- 2 <!--
3 This test ensures the correctness the following Spatial Navigation 3 This test ensures the correctness the following Spatial Navigation
4 (SNav) algorithm features. 4 (SNav) algorithm features.
5 5
6 1) There is no unit overflow in the Spatial Navigation algorithm while 6 1) There is no unit overflow in the Spatial Navigation algorithm while
7 calculating the best node candidate to move focus to. To test that this 7 calculating the best node candidate to move focus to. To test that this
8 page positions some elements 10000000 pixels far from each other (distanc e 8 page positions some elements 10000000 pixels far from each other (distanc e
9 that can considered large enough for most of the Web Pages on the 9 that can considered large enough for most of the Web Pages on the
10 Internet). 10 Internet).
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // visible in current viewport. 61 // visible in current viewport.
62 initTest(resultMap1, step1Completed); 62 initTest(resultMap1, step1Completed);
63 } 63 }
64 64
65 function step2() 65 function step2()
66 { 66 {
67 shouldBeTrue(String(document.scrollingElement.scrollTop != 0)); 67 shouldBeTrue(String(document.scrollingElement.scrollTop != 0));
68 68
69 // Then it scrolls down to the end of the page ... 69 // Then it scrolls down to the end of the page ...
70 if (window.eventSender) 70 if (window.eventSender)
71 eventSender.keyDown("end"); 71 eventSender.keyDown("End");
72 72
73 // And 'resultMap2' re-tries to move focus down. 73 // And 'resultMap2' re-tries to move focus down.
74 initTest(resultMap2, step2Completed); 74 initTest(resultMap2, step2Completed);
75 } 75 }
76 76
77 function step1Completed() 77 function step1Completed()
78 { 78 {
79 setTimeout(step2 , 0); 79 setTimeout(step2 , 0);
80 } 80 }
81 81
82 function step2Completed() 82 function step2Completed()
83 { 83 {
84 if (window.testRunner) 84 if (window.testRunner)
85 testRunner.notifyDone(); 85 testRunner.notifyDone();
86 } 86 }
87 87
88 window.onload = runTest; 88 window.onload = runTest;
89 89
90 </script> 90 </script>
91 </head> 91 </head>
92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 92 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
93 <a id="start" href="a">Start</a> 93 <a id="start" href="a">Start</a>
94 <div style='margin-top:100000000px'> 94 <div style='margin-top:100000000px'>
95 <a id="end" href="a">End</a> 95 <a id="end" href="a">End</a>
96 </div> 96 </div>
97 <div id="console"></div> 97 <div id="console"></div>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698