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

Unified Diff: LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt

Issue 392993005: Custom handlers should throw SecurityError exception if the URL's origin differs from the document'… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Done Created 6 years, 3 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
Index: LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt
diff --git a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt b/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt
deleted file mode 100644
index 0f6e1d64e5833b6458f5bc7514ae6e4e21b8801d..0000000000000000000000000000000000000000
--- a/LayoutTests/navigatorcontentutils/register-protocol-handler-expected.txt
+++ /dev/null
@@ -1,50 +0,0 @@
-This test makes sure that navigator.registerProtocolHandler throws the proper exceptions and has no-op default implementation.
-
-PASS window.navigator.registerProtocolHandler is defined.
-PASS Invalid scheme "http" threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The scheme 'http' doesn't belong to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'.".
-PASS Invalid scheme "https" threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The scheme 'https' doesn't belong to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'.".
-PASS Invalid scheme "file" threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The scheme 'file' doesn't belong to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'.".
-PASS Invalid scheme "web+" threw SecurityError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The scheme 'web+' is less than five characters long.".
-PASS Valid scheme "bitcoin" allowed.
-PASS Valid scheme "BitcoIn" allowed.
-PASS Valid scheme "geo" allowed.
-PASS Valid scheme "im" allowed.
-PASS Valid scheme "irc" allowed.
-PASS Valid scheme "Irc" allowed.
-PASS Valid scheme "ircs" allowed.
-PASS Valid scheme "magnet" allowed.
-PASS Valid scheme "MagneT" allowed.
-PASS Valid scheme "mailto" allowed.
-PASS Valid scheme "mms" allowed.
-PASS Valid scheme "news" allowed.
-PASS Valid scheme "nntp" allowed.
-PASS Valid scheme "sip" allowed.
-PASS Valid scheme "sms" allowed.
-PASS Valid scheme "smsto" allowed.
-PASS Valid scheme "SmsTo" allowed.
-PASS Valid scheme "ssh" allowed.
-PASS Valid scheme "tel" allowed.
-PASS Valid scheme "urn" allowed.
-PASS Valid scheme "webcal" allowed.
-PASS Valid scheme "WebCAL" allowed.
-PASS Valid scheme "wtai" allowed.
-PASS Valid scheme "WTAI" allowed.
-PASS Valid scheme "xmpp" allowed.
-PASS Invalid scheme "mailto:" falied.
-PASS Invalid scheme "ssh:/" falied.
-PASS Invalid scheme "magnet:+" falied.
-PASS Invalid scheme "tel:sip" falied.
-PASS Invalid url "" threw SyntaxError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.".
-PASS Invalid url "%S" threw SyntaxError exception: "Failed to execute 'registerProtocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.".
-PASS Valid call succeeded.
-
-Check if registerProtocolHandler can register scheme correctly. If isProtocolHandlerRegistered() returns 'registered' state, registerProtoclHandler() works well.
-'bitcoin' scheme will be registered for testing.
-
-PASS window.navigator.isProtocolHandlerRegistered returns 'registered' state. 'bitcoin' is registered successfully.
-
-
-PASS successfullyParsed is true
-
-TEST COMPLETE
-

Powered by Google App Engine
This is Rietveld 408576698