Index: LayoutTests/svg/as-object/history-navigation.html |
diff --git a/LayoutTests/svg/as-object/history-navigation.html b/LayoutTests/svg/as-object/history-navigation.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..963552ddd3e372c223f3b447e3e1c3913384555e |
--- /dev/null |
+++ b/LayoutTests/svg/as-object/history-navigation.html |
@@ -0,0 +1,23 @@ |
+<!DOCTYPE html> |
+<body onload="runTest()"> |
+<iframe id="testframe" src="resources/left-right.html" width="100%" height="300px" frameborder="0"></iframe> |
+<script> |
+if (window.testRunner) |
+ testRunner.waitUntilDone(); |
+// Disable page cache. |
+onunload = function() {}; |
Nate Chapin
2014/04/02 23:31:17
This shouldn't be necessary, as blink doesn't have
tkent
2014/04/03 00:26:36
Done.
|
+ |
+function runTest() { |
+ if (sessionStorage.didNav) { |
+ delete sessionStorage.didNav; |
+ if (window.testRunner) |
+ testRunner.notifyDone(); |
+ } else { |
+ // Navigate a timeout to make sure we generate a history entry that we |
+ // can go back to. |
+ setTimeout(function() {location.href = 'data:text/html,<script>history.back();</' + 'script>';}, 0); |
+ sessionStorage.didNav = true; |
+ } |
+} |
+</script> |
+</body> |