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

Side by Side Diff: LayoutTests/fast/spatial-navigation/snav-input.html

Issue 20560005: (spatnav) Space&enter should be entered to box instead of simulating click on it. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Review fixes Created 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-input-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <head> 2 <head>
3 <script src="../js/resources/js-test-pre.js"></script> 3 <script src="../js/resources/js-test-pre.js"></script>
4 <script src="resources/spatial-navigation-utils.js"></script> 4 <script src="resources/spatial-navigation-utils.js"></script>
5 <script src="js/resources/js-test-post.js"></script> 5 <script src="js/resources/js-test-post.js"></script>
6 </head> 6 </head>
7 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml"> 7 <body id="some-content" xmlns="http://www.w3.org/1999/xhtml">
8 <p id="description"></p> 8 <p id="description"></p>
9 <table style="text-align: left; width: 100%; margin-left: auto; margin-right : auto;" border="1" cellpadding="2" cellspacing="1"> 9 <table style="text-align: left; width: 100%; margin-left: auto; margin-right : auto;" border="1" cellpadding="2" cellspacing="1">
10 <tbody> 10 <tbody>
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 function runTest() 60 function runTest()
61 { 61 {
62 // starting the test itself: get to a known place. 62 // starting the test itself: get to a known place.
63 document.getElementById("start").focus(); 63 document.getElementById("start").focus();
64 64
65 initTest(resultMap, testCompleted); 65 initTest(resultMap, testCompleted);
66 } 66 }
67 67
68 function testCompleted() 68 function testCompleted()
69 { 69 {
70 if (window.testRunner) 70 if (!window.testRunner)
71 testRunner.notifyDone(); 71 return;
72
73 var text = 'A text containing a space';
74 for (var i = 0; i < text.length; ++i)
75 eventSender.keyDown(text.charAt(i));
76 shouldBeEqualToString("document.getElementById('start').value", text);
77
78 testRunner.notifyDone();
72 } 79 }
73 80
74 window.onload = runTest; 81 window.onload = runTest;
75 82
76 </script> 83 </script>
77 </body> 84 </body>
78 </html> 85 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/spatial-navigation/snav-input-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698