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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-single-select.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 of Spatial Navigation (SNav) algorithm ove r single select element. 3 This test ensures the correctness of Spatial Navigation (SNav) algorithm ove r single select element.
4 4
5 * Pre-conditions: 5 * Pre-conditions:
6 1) DRT support for SNav enable/disable. 6 1) DRT support for SNav enable/disable.
7 7
8 * Navigation steps: 8 * Navigation steps:
9 1) Loads this page, focus goes to "start" automatically. 9 1) Loads this page, focus goes to "start" automatically.
10 2) Focus moves away from select in 4 different directions to neighbor nodes and back. 10 2) Focus moves away from select in 4 different directions to neighbor nodes and back.
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 document.getElementById("start").focus(); 44 document.getElementById("start").focus();
45 45
46 initTest(resultMap, additionalTest); 46 initTest(resultMap, additionalTest);
47 } 47 }
48 48
49 function additionalTest() 49 function additionalTest()
50 { 50 {
51 document.getElementById("start").focus(); 51 document.getElementById("start").focus();
52 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "0"); 52 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "0");
53 eventSender.keyDown(" "); 53 eventSender.keyDown(" ");
54 eventSender.keyDown("downArrow"); 54 eventSender.keyDown("ArrowDown");
55 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "1"); 55 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "1");
56 eventSender.keyDown("upArrow"); 56 eventSender.keyDown("ArrowUp");
57 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "0"); 57 shouldBe("gFocusedDocument.getElementById(\"start\").selectedIndex", "0");
58 58
59 testCompleted(); 59 testCompleted();
60 } 60 }
61 61
62 function testCompleted() 62 function testCompleted()
63 { 63 {
64 if (window.testRunner) 64 if (window.testRunner)
65 testRunner.notifyDone(); 65 testRunner.notifyDone();
66 } 66 }
(...skipping 19 matching lines...) Expand all
86 <td style="vertical-align: top; text-align: center;"></td> 86 <td style="vertical-align: top; text-align: center;"></td>
87 <td style="vertical-align: top; text-align: center;"><a id="8" href="a ">8</a></td> 87 <td style="vertical-align: top; text-align: center;"><a id="8" href="a ">8</a></td>
88 <td style="vertical-align: top; text-align: center;"></td> 88 <td style="vertical-align: top; text-align: center;"></td>
89 </tr> 89 </tr>
90 </tbody> 90 </tbody>
91 </table> 91 </table>
92 <div id="console"></div> 92 <div id="console"></div>
93 </body> 93 </body>
94 </html> 94 </html>
95 95
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698