Bug 1757847 [wpt PR 33036] - Update wpt metadata, a=testonly
[gecko.git] / testing / web-platform / tests / app-history / navigate / state / updateCurrent / state-after-history-replaceState.html
blob8b4e25d3d965cd92e2ded490ab8550e5e0800ee5
1 <!doctype html>
2 <script src="/resources/testharness.js"></script>
3 <script src="/resources/testharnessreport.js"></script>
4 <script>
5 test(() => {
6 navigation.updateCurrentEntry({ 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>