OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <body> | 3 <body> |
4 <script src="../resources/testharness.js"></script> | 4 <script src="../resources/testharness.js"></script> |
5 <script src="../resources/testharnessreport.js"></script> | 5 <script src="../resources/testharnessreport.js"></script> |
6 <script> | 6 <script> |
7 | 7 |
8 if (location.href.endsWith('#after-reload')) { | 8 if (location.href.endsWith('#after-reload')) { |
9 test(function() { | 9 test(function() { |
10 assert_equals(navigator.presentation.defaultRequest, null); | 10 assert_equals(navigator.presentation.defaultRequest, null); |
11 }, "Test that navigator.defaultRequest isn't kept alive after reload.") | 11 }, "Test that navigator.defaultRequest with multiple URLs isn't kept alive aft
er reload.") |
12 } else { | 12 } else { |
13 navigator.presentation.defaultRequest = new PresentationRequest("https://examp
le.org"); | 13 navigator.presentation.defaultRequest = new PresentationRequest(["https://exam
ple.org", "cast://google.com/app_id=deadbeef"]); |
14 | 14 |
15 location.href += '#after-reload'; | 15 location.href += '#after-reload'; |
16 location.reload(); | 16 location.reload(); |
17 } | 17 } |
18 | 18 |
19 </script> | 19 </script> |
20 </body> | 20 </body> |
21 </html> | 21 </html> |
OLD | NEW |