Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html |
| diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html b/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..12af7d08a0092b1a10fd5c236bf89c5dc5bbafcc |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html |
| @@ -0,0 +1,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 with multiple URLs isn't kept alive after reload.") |
| +} else { |
| + navigator.presentation.defaultRequest = new PresentationRequest(["https://example.org", "cast://google.com/app_id=deadbeef"]); |
|
mlamouri (slow - plz ping)
2016/12/13 13:50:53
What is this testing exactly? The test name says "
zhaobin
2016/12/14 01:51:53
I think we test both navigation and mulitple urls
whywhat
2016/12/14 02:20:39
I think that just adding a ctor test in the presen
|
| + |
| + location.href += '#after-reload'; |
| + location.reload(); |
| +} |
| + |
| +</script> |
| +</body> |
| +</html> |