Index: LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html |
diff --git a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html b/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html |
index c015588eb72d2f1d91f65860245c6d39fdb8fd1f..0fd435a5eeda422588f1017236952b2a19112f40 100644 |
--- a/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html |
+++ b/LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html |
@@ -21,7 +21,7 @@ else |
var invalidUrl = "%S"; |
var succeeded = false; |
try { |
- window.navigator.isProtocolHandlerRegistered(protocol, invalidUrl); |
+ window.navigator.isProtocolHandlerRegistered(scheme, invalidUrl); |
succeeded = false; |
} catch (e) { |
succeeded = true; |
@@ -48,12 +48,12 @@ invalid_schemes.forEach(function (scheme) { |
}); |
debug("\nCheck if isProtocolHandlerRegistered() works correctly. If isProtocolHandlerRegistered() returns 'new' state, it works well."); |
-debug("'bitcoin' protocol will be registered, and then checks if the 'bitcoin' protocol is registered by isProtocolHandlerRegistered().\n"); |
+debug("'bitcoin' scheme will be registered, and then checks if the 'bitcoin' scheme is registered by isProtocolHandlerRegistered().\n"); |
try { |
- // Register 'bitcoin' protocol for testing. |
+ // Register 'bitcoin' scheme for testing. |
window.navigator.registerProtocolHandler('bitcoin', 'invalid scheme uri=%s', 'title'); |
- var state = window.navigator.isProtocolHandlerRegistered("bitcoin", "valid protocol %s"); |
+ var state = window.navigator.isProtocolHandlerRegistered("bitcoin", "valid scheme %s"); |
if (state == "registered") |
debug("PASS window.navigator.isProtocolHandlerRegistered returns 'registered' state. isProtocolHandlerRegistered() works correctly."); |
else if (state == "new") |