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

Unified Diff: LayoutTests/svg/as-object/history-navigation.html

Issue 218693003: Generate FrameTree::uniqueName with a URL attribute value. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove unload handler Created 6 years, 9 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: 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..c04c90b5aa581dd2c0f8e3809336411dfb8508a0
--- /dev/null
+++ b/LayoutTests/svg/as-object/history-navigation.html
@@ -0,0 +1,21 @@
+<!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();
+
+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>

Powered by Google App Engine
This is Rietveld 408576698