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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/spatial-navigation/snav-textarea.html

Issue 2077183002: Revert of Fix re-usage of stale cached WebPreferences in RenderViewHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 ["Left", "start"], 55 ["Left", "start"],
56 ["Left", "start"], // The caret is at the beginning of TEXTAREA. 56 ["Left", "start"], // The caret is at the beginning of TEXTAREA.
57 ["Left", "4"], 57 ["Left", "4"],
58 ["Right", "start"], 58 ["Right", "start"],
59 ["DONE", "DONE"] 59 ["DONE", "DONE"]
60 ]; 60 ];
61 61
62 if (window.testRunner) { 62 if (window.testRunner) {
63 testRunner.dumpAsText(); 63 testRunner.dumpAsText();
64 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1); 64 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
65 testRunner.overridePreference("WebKitSpatialNavigationEnabled", 1); 65 window.internals.settings.setSpatialNavigationEnabled(true);
66 testRunner.waitUntilDone(); 66 testRunner.waitUntilDone();
67 } 67 }
68 68
69 function runTest() 69 function runTest()
70 { 70 {
71 var textarea = document.getElementById("start"); 71 var textarea = document.getElementById("start");
72 textarea.value = "abc\nd"; 72 textarea.value = "abc\nd";
73 73
74 // starting the test itself: get to a known place. 74 // starting the test itself: get to a known place.
75 textarea.focus(); 75 textarea.focus();
(...skipping 14 matching lines...) Expand all
90 shouldBeEqualToString("document.getElementById('start').value", text); 90 shouldBeEqualToString("document.getElementById('start').value", text);
91 91
92 testRunner.notifyDone(); 92 testRunner.notifyDone();
93 } 93 }
94 94
95 window.onload = runTest; 95 window.onload = runTest;
96 96
97 </script> 97 </script>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698