Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(76)

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html

Issue 2552343009: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed)
Patch Set: resolve code review comments from foolip Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..328755cfd9e37c07905325f0012c189eeeaba955
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-navigation-multipleurls.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<html>
+<body>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<script>
+
+// TODO(crbug.com/680298): use iframe to do presentation navigation layout tests
+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"]);
+
+ location.href += '#after-reload';
+ location.reload();
+}
+
+</script>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698