| 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>
|
|
|