summaryrefslogtreecommitdiffstats
path: root/LayoutTests/storage/hash-change-with-xhr.js
diff options
context:
space:
mode:
Diffstat (limited to 'LayoutTests/storage/hash-change-with-xhr.js')
-rw-r--r--LayoutTests/storage/hash-change-with-xhr.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/LayoutTests/storage/hash-change-with-xhr.js b/LayoutTests/storage/hash-change-with-xhr.js
index 4290681..7f56f79 100644
--- a/LayoutTests/storage/hash-change-with-xhr.js
+++ b/LayoutTests/storage/hash-change-with-xhr.js
@@ -81,6 +81,12 @@ function invokeBack()
function runTest()
{
+ // Location changes need to happen outside the onload handler to generate history entries.
+ setTimeout(runTestsInner, 0);
+}
+
+function runTestsInner()
+{
backIterations = 10;
consecutiveFailures = 0;
successes = 0;