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

Unified Diff: third_party/WebKit/LayoutTests/presentation/presentation-api.html

Issue 2148643002: [Presentation API] Adds DOMString[] constructor to PresentationRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix PresentationAvailabilityCallbacks Created 4 years, 5 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-api.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-api.html b/third_party/WebKit/LayoutTests/presentation/presentation-api.html
index fdd274f8fcee4a24eaaba580f97da98edcbd0f15..1170aa6a30b98e40fd54d96cd1e92a103d06452f 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentation-api.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-api.html
@@ -29,7 +29,17 @@ test(function() {
assert_equals(typeof(request.onconnectionavailable), "object");
assert_true(request instanceof EventTarget);
-}, "Test PresentationRequest API types.");
+}, "Test PresentationRequest API types for a single URL.");
+
+test(function() {
+ var request = new PresentationRequest(["http://example.com", "cast://google.com/app_id=deadbeef"]);
+ assert_equals(typeof(request.start), "function");
+ assert_equals(typeof(request.reconnect), "function");
+ assert_equals(typeof(request.getAvailability), "function");
+ assert_equals(typeof(request.onconnectionavailable), "object");
+
+ assert_true(request instanceof EventTarget);
+}, "Test PresentationRequest API types for multiple URLs.");
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698