Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 3 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /navigation-api/precommit-handler/precommitHandler-replace.html - WPT Dashboard Interop Dashboard
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="../navigation-methods/return-value/resources/helpers.js"></script>
<script src="resources/precommitHandler-helpers.js"></script>
<body>
<script>
let tests = [
{ mode: "rejectBeforeCommit", description: "precommitHandler for a replace navigation, reject before commit" },
{ mode: "rejectAfterCommit", description: "precommitHandler for a replace navigation, reject after commit" },
{ mode: "success", description: "precommitHandler for a replace navigation, success" },
];
for (let test of tests) {
promise_test(t => testDeferredCommit(t, "replace", test.mode), test.description);
}
</script>
</body>