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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../../resources/js-test.js"></script> 3 <script src="../../resources/js-test.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script> 4 <script src="resources/spatial-navigation-utils.js"></script>
5 </head> 5 </head>
6 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 6 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
7 <p id="description"></p> 7 <p id="description"></p>
8 <table style="text-align: left; width: 100%; margin-left: auto; margin-right : auto;" border="1" cellpadding="2" cellspacing="1"> 8 <table style="text-align: left; width: 100%; margin-left: auto; margin-right : auto;" border="1" cellpadding="2" cellspacing="1">
9 <tbody> 9 <tbody>
10 <tr> 10 <tr>
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 initTest(resultMap, testCompleted); 78 initTest(resultMap, testCompleted);
79 } 79 }
80 80
81 function testCompleted() 81 function testCompleted()
82 { 82 {
83 if (!window.testRunner) 83 if (!window.testRunner)
84 return; 84 return;
85 85
86 document.getElementById('start').value = ""; 86 document.getElementById('start').value = "";
87 var text = 'A text containing a space\nand a new line'; 87 var text = 'A text containing a space\nand a new line';
88 for (var i = 0; i < text.length; ++i) 88 for (var i = 0; i < text.length; ++i) {
89 eventSender.keyDown(text.charAt(i)); 89 var key = text.charAt(i);
90 if (key == '\n')
91 key = 'Enter';
92 eventSender.keyDown(key);
93 }
90 shouldBeEqualToString("document.getElementById('start').value", text); 94 shouldBeEqualToString("document.getElementById('start').value", text);
91 95
92 testRunner.notifyDone(); 96 testRunner.notifyDone();
93 } 97 }
94 98
95 window.onload = runTest; 99 window.onload = runTest;
96 100
97 </script> 101 </script>
98 </body> 102 </body>
99 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698