Bug 1757847 [wpt PR 33036] - Update wpt metadata, a=testonly
[gecko.git] / testing / web-platform / tests / app-history / navigate / state / navigate-state-after-history-replaceState.html
blobcc37949415eb8b29ac85ebd4efc8c6dd96616b8d
1 <!doctype html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 test(() => {
6 navigation.navigate("#", { replace : true, state : { data : "value" } });
7 assert_equals(navigation.currentEntry.getState().data, "value");
8 history.replaceState(1, "", "#replace");
9 assert_equals(navigation.currentEntry.getState(), undefined);
10 }, "appHistoryEntry.getState() after history.replaceState()");
11 </script>