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

Unified Diff: chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html

Issue 7859014: Refactor ExtensionApiTest.WebNavigationEvents* to not rely on window.setTimeout (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html
diff --git a/chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html b/chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html
index 7b3462cdfeef99082b33c7bd12b6361035fa3611..b0b6c8bcd98f3137ffc8c5f921fc7f4c1cd3c37a 100644
--- a/chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html
+++ b/chrome/test/data/extensions/api_test/webnavigation/forwardBack/a.html
@@ -1,6 +1,14 @@
+<html>
+<head>
<script>
+function navigate() {
if (window.sessionStorage['redirected'] != 1) {
window.sessionStorage['redirected'] = 1;
- window.setTimeout('document.location = "b.html";', 500);
+ // Required so this results in a history entry being created.
+ window.setTimeout('document.location = "b.html"', 0);
}
+}
</script>
+</head>
+<body onload="navigate()"></body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698