summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/presentation/presentation-navigation.html
blob: aca9aeddec2c364212b3d0921d635360edbcd430 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<!DOCTYPE html>
<html>
<body>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>

if (location.href.endsWith('#after-reload')) {
  test(function() {
    assert_equals(navigator.presentation.defaultRequest, null);
  }, "Test that navigator.defaultRequest isn't kept alive after reload.")
} else {
  navigator.presentation.defaultRequest = new PresentationRequest("https://example.org");

  location.href += '#after-reload';
  location.reload();
}

</script>
</body>
</html>