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

Unified Diff: LayoutTests/http/tests/navigation/navigate-during-commit.html

Issue 1164883002: Ignore attempts to navigate once a provisional commit has gotten too far along. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 7 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/http/tests/navigation/navigate-during-commit.html
diff --git a/LayoutTests/http/tests/navigation/navigate-during-commit.html b/LayoutTests/http/tests/navigation/navigate-during-commit.html
new file mode 100644
index 0000000000000000000000000000000000000000..7c2411663951f6a1821feab01440445b48fd98e9
--- /dev/null
+++ b/LayoutTests/http/tests/navigation/navigate-during-commit.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<body>
+<script>
+
+var FRAME_SRC = "resources/navigate-during-commit.start.html"
+
+// Called by the navigate-during-commit.success.html.
+var resolve_test = undefined;
+
+function conduct_test(frame) {
+ return new Promise(function(resolve) {
+ var frame = document.createElement('iframe');
+ frame.src = FRAME_SRC;
+ document.body.appendChild(frame);
+ resolve_test = function() {
+ document.body.removeChild(frame);
+ resolve();
+ };
+ });
+}
+
+async_test(function(t) {
+ conduct_test()
+ .then(function() { t.done(); })
+ .catch(function() { assert(false); });
+ }, 'navigate-during-commit');
+
+</script>
+</body>

Powered by Google App Engine
This is Rietveld 408576698