[Custom Scheme] Remove 'title' parameter in the tests of unregisterProtocolHandler
Thgough IDL defined unregisterProtocolHandler with 2 arguments, unregister-protocol-handler.html
has tested it with 3 parameters. Thus this CL removes the title parameter in the tests.
- void unregisterProtocolHandler(DOMString scheme, USVString url);
Spec: https://html.spec.whatwg.org/multipage/webappapis.html#custom-handlers
Bug: None
Change-Id: I544d0027f90a25d517b77633bf50a726ee1b364c
Reviewed-on: https://chromium-review.googlesource.com/790018
Reviewed-by: Kentaro Hara <haraken@chromium.org>
Commit-Queue: Gyuyoung Kim <gyuyoung.kim@lge.com>
Cr-Commit-Position: refs/heads/master@{#519457}
diff --git a/third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html b/third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html
index 6c0d7ee..f3161fd 100644
--- a/third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html
+++ b/third_party/WebKit/LayoutTests/http/tests/navigatorcontentutils/unregister-protocol-handler.html
@@ -18,7 +18,7 @@
invalid_schemes.forEach(function (scheme) {
var succeeded = false;
try {
- window.navigator.unregisterProtocolHandler(scheme, "invalid scheme %s", "title");
+ window.navigator.unregisterProtocolHandler(scheme, "invalid scheme %s");
} catch (e) {
succeeded = 'SecurityError' == e.name;
errorMessage = e.message;
@@ -34,7 +34,7 @@
valid_schemes.forEach(function (scheme) {
var succeeded = false;
try {
- window.navigator.unregisterProtocolHandler(scheme, "valid scheme %s", "title");
+ window.navigator.unregisterProtocolHandler(scheme, "valid scheme %s");
succeeded = true;
} catch (e) {
succeeded = false;
@@ -50,7 +50,7 @@
invalid_schemes.forEach(function (scheme) {
var succeeded = false;
try {
- window.navigator.unregisterProtocolHandler(scheme, 'invalid scheme uri=%s', 'title');
+ window.navigator.unregisterProtocolHandler(scheme, 'invalid scheme uri=%s');
} catch (e) {
succeeded = 'SecurityError' == e.name;
errorMessage = e.message;
@@ -66,7 +66,7 @@
invalid_urls.forEach(function (url) {
var succeeded = false;
try {
- window.navigator.unregisterProtocolHandler('web+myscheme', url, 'title');
+ window.navigator.unregisterProtocolHandler('web+myscheme', url);
} catch (e) {
succeeded = 'SyntaxError' == e.name;
errorMessage = e.message;
@@ -82,7 +82,7 @@
succeeded = false;
var errorMessage;
try {
- window.navigator.unregisterProtocolHandler('web+myprotocol', "http://www.example.com/soup?url=%s", "title");
+ window.navigator.unregisterProtocolHandler('web+myprotocol', "http://www.example.com/soup?url=%s");
} catch (e) {
succeeded = true;
errorMessage = e.message;
@@ -96,7 +96,7 @@
// Test that the API has default no-op implementation.
var succeeded = true;
try {
- window.navigator.unregisterProtocolHandler('web+myscheme', "%s", "title");
+ window.navigator.unregisterProtocolHandler('web+myscheme', "%s");
} catch (e) {
succeeded = false;
}