| Index: third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp b/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
|
| index f76d06334b6c63a755957b2edcc4bc7020afeb6e..ceed6901167cddb411afdd89cf976b86ff996329 100644
|
| --- a/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/presentation/PresentationRequestTest.cpp
|
| @@ -43,6 +43,19 @@ TEST(PresentationRequestTest, TestMultipleUrlConstructor) {
|
| EXPECT_EQ("cast://deadbeef?param=foo", requestUrls[1].getString());
|
| }
|
|
|
| +TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidURLFamily) {
|
| + V8TestingScope scope;
|
| + WTF::Vector<String> urls;
|
| + urls.append("https://example.com");
|
| + urls.append("about://deadbeef?param=foo");
|
| +
|
| + PresentationRequest::create(scope.getExecutionContext(), urls,
|
| + scope.getExceptionState());
|
| + ASSERT_TRUE(scope.getExceptionState().hadException());
|
| +
|
| + EXPECT_EQ(SyntaxError, scope.getExceptionState().code());
|
| +}
|
| +
|
| TEST(PresentationRequestTest, TestMultipleUrlConstructorInvalidUrl) {
|
| V8TestingScope scope;
|
| WTF::Vector<String> urls;
|
|
|