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

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

Issue 2265363002: [Presentation API] make PresentationReceiver API consistent with latest spec (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix layout test global-interface-listing.html Created 4 years, 4 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-receiver.html
diff --git a/third_party/WebKit/LayoutTests/presentation/presentation-receiver.html b/third_party/WebKit/LayoutTests/presentation/presentation-receiver.html
index 3f593f9aa7a489057973211d9b73415142d5fed1..31af39454ed4a82399422c4bcfe32ea9421031f7 100644
--- a/third_party/WebKit/LayoutTests/presentation/presentation-receiver.html
+++ b/third_party/WebKit/LayoutTests/presentation/presentation-receiver.html
@@ -7,24 +7,14 @@
test(function() {
assert_true('receiver' in navigator.presentation);
- assert_true('getConnection' in navigator.presentation.receiver);
- assert_true('getConnections' in navigator.presentation.receiver);
- assert_true('onconnectionavailable' in navigator.presentation.receiver);
-
- assert_true('PresentationReceiver' in window);
+ assert_true('connectionList' in navigator.presentation.receiver);
}, "Test that the Presentation Receiver API is present.")
test(function() {
assert_equals(typeof(navigator.presentation.receiver), "object");
- assert_equals(typeof(navigator.presentation.receiver.getConnection), "function");
- assert_equals(typeof(navigator.presentation.receiver.getConnections), "function");
- assert_equals(typeof(navigator.presentation.receiver.onconnectionavailable), "object");
+ assert_equals(typeof(navigator.presentation.receiver.connectionList), "object");
}, "Test the Presentation Receiver API property types.");
-test(function() {
- assert_true(navigator.presentation.receiver instanceof EventTarget);
-}, "Test that navigator.presentation.receiver is an EventTarget.");
-
</script>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698