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

Unified Diff: LayoutTests/navigatorcontentutils/is-protocol-handler-registered.html

Issue 440833006: Use a consistent scheme name in navigatorcontentutils tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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")
« no previous file with comments | « no previous file | LayoutTests/navigatorcontentutils/is-protocol-handler-registered-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698