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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/navigation/same-and-different-back.html

Issue 2947523002: Delete backspace-for-back RuntimeFeature. (Closed)
Patch Set: Fix layout test Created 3 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 <body> 1 <body>
2 We pass if we don't crash under ASAN. 2 We pass if we don't crash under ASAN.
3 <script> 3 <script>
4 if (window.testRunner) { 4 if (window.testRunner) {
5 testRunner.dumpAsText(); 5 testRunner.dumpAsText();
6 testRunner.dumpBackForwardList(); 6 testRunner.dumpBackForwardList();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function sameDocumentSetupDone() { 10 function sameDocumentSetupDone() {
11 frames[1].location.replace("notify-parent-setup-done.html"); 11 frames[1].location.replace("notify-parent-setup-done.html");
12 } 12 }
13 13
14 function differentDocumentSetupDone() { 14 function differentDocumentSetupDone() {
15 setTimeout(function() { 15 setTimeout(function() {
16 // Send a backspace to trigger a back navigation. 16 window.history.back();
17 if (window.eventSender)
18 eventSender.keyDown('Backspace');
19 }, 0); 17 }, 0);
20 } 18 }
21 19
22 function addChild() { 20 function addChild() {
23 var i = document.createElement("iframe"); 21 var i = document.createElement("iframe");
24 i.src = "about:blank"; 22 i.src = "about:blank";
25 document.body.appendChild(i); 23 document.body.appendChild(i);
26 if (window.testRunner) 24 if (window.testRunner)
27 testRunner.notifyDone(); 25 testRunner.notifyDone();
28 } 26 }
29 </script> 27 </script>
30 <iframe src="resources/pushState-onload.html"></iframe> 28 <iframe src="resources/pushState-onload.html"></iframe>
31 <iframe src="resources/blank.txt"></iframe> 29 <iframe src="resources/blank.txt"></iframe>
32 </body> 30 </body>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698