Chromium Code Reviews| 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."); |
|
foolip
2017/01/11 16:26:10
This test would pass even without the new code I t
zhaobin
2017/01/12 00:19:31
Yes, this test will pass even without the new code
foolip
2017/01/13 20:29:27
What does it take to get a PresentationConnection
zhaobin
2017/01/14 00:46:06
Done.
|
| </script> |
| </body> |