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

Side by Side Diff: LayoutTests/navigatorcontentutils/unregister-protocol-handler-expected.txt

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 unified diff | Download patch
OLDNEW
1 This test makes sure that navigator.unregisterProtocolHandler throws the proper exceptions and has no-op default implementation. 1 This test makes sure that navigator.unregisterProtocolHandler throws the proper exceptions and has no-op default implementation.
2 2
3 PASS window.navigator.unregisterProtocolHandler is defined. 3 PASS window.navigator.unregisterProtocolHandler is defined.
4 PASS Invalid protocol "http" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'http' doesn't belong to t he protocol whitelist. Please prefix non-whitelisted schemes with the string 'we b+'.". 4 PASS Invalid scheme "http" threw SecurityError exception: "Failed to execute 'un registerProtocolHandler' on 'Navigator': The scheme 'http' doesn't belong to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'. ".
5 PASS Invalid protocol "https" threw SecurityError exception: "Failed to execute 'unregisterProtocolHandler' on 'Navigator': The scheme 'https' doesn't belong to the protocol whitelist. Please prefix non-whitelisted schemes with the string ' web+'.". 5 PASS Invalid scheme "https" threw SecurityError exception: "Failed to execute 'u nregisterProtocolHandler' on 'Navigator': The scheme 'https' doesn't belong to t he scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+ '.".
6 PASS Invalid protocol "file" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'file' doesn't belong to t he protocol whitelist. Please prefix non-whitelisted schemes with the string 'we b+'.". 6 PASS Invalid scheme "file" threw SecurityError exception: "Failed to execute 'un registerProtocolHandler' on 'Navigator': The scheme 'file' doesn't belong to the scheme whitelist. Please prefix non-whitelisted schemes with the string 'web+'. ".
7 PASS Invalid protocol "web+" threw SecurityError exception: "Failed to execute ' unregisterProtocolHandler' on 'Navigator': The scheme 'web+' is less than five c haracters long.". 7 PASS Invalid scheme "web+" threw SecurityError exception: "Failed to execute 'un registerProtocolHandler' on 'Navigator': The scheme 'web+' is less than five cha racters long.".
8 PASS Valid protocol "bitcoin" allowed. 8 PASS Valid scheme "bitcoin" allowed.
9 PASS Valid protocol "BitcoIn" allowed. 9 PASS Valid scheme "BitcoIn" allowed.
10 PASS Valid protocol "geo" allowed. 10 PASS Valid scheme "geo" allowed.
11 PASS Valid protocol "im" allowed. 11 PASS Valid scheme "im" allowed.
12 PASS Valid protocol "irc" allowed. 12 PASS Valid scheme "irc" allowed.
13 PASS Valid protocol "Irc" allowed. 13 PASS Valid scheme "Irc" allowed.
14 PASS Valid protocol "ircs" allowed. 14 PASS Valid scheme "ircs" allowed.
15 PASS Valid protocol "magnet" allowed. 15 PASS Valid scheme "magnet" allowed.
16 PASS Valid protocol "MagneT" allowed. 16 PASS Valid scheme "MagneT" allowed.
17 PASS Valid protocol "mailto" allowed. 17 PASS Valid scheme "mailto" allowed.
18 PASS Valid protocol "mms" allowed. 18 PASS Valid scheme "mms" allowed.
19 PASS Valid protocol "news" allowed. 19 PASS Valid scheme "news" allowed.
20 PASS Valid protocol "nntp" allowed. 20 PASS Valid scheme "nntp" allowed.
21 PASS Valid protocol "sip" allowed. 21 PASS Valid scheme "sip" allowed.
22 PASS Valid protocol "sms" allowed. 22 PASS Valid scheme "sms" allowed.
23 PASS Valid protocol "smsto" allowed. 23 PASS Valid scheme "smsto" allowed.
24 PASS Valid protocol "SmsTo" allowed. 24 PASS Valid scheme "SmsTo" allowed.
25 PASS Valid protocol "ssh" allowed. 25 PASS Valid scheme "ssh" allowed.
26 PASS Valid protocol "tel" allowed. 26 PASS Valid scheme "tel" allowed.
27 PASS Valid protocol "urn" allowed. 27 PASS Valid scheme "urn" allowed.
28 PASS Valid protocol "webcal" allowed. 28 PASS Valid scheme "webcal" allowed.
29 PASS Valid protocol "WebCAL" allowed. 29 PASS Valid scheme "WebCAL" allowed.
30 PASS Valid protocol "wtai" allowed. 30 PASS Valid scheme "wtai" allowed.
31 PASS Valid protocol "WTAI" allowed. 31 PASS Valid scheme "WTAI" allowed.
32 PASS Valid protocol "xmpp" allowed. 32 PASS Valid scheme "xmpp" allowed.
33 PASS Invalid scheme "mailto:" falied. 33 PASS Invalid scheme "mailto:" falied.
34 PASS Invalid scheme "ssh:/" falied. 34 PASS Invalid scheme "ssh:/" falied.
35 PASS Invalid scheme "magnet:+" falied. 35 PASS Invalid scheme "magnet:+" falied.
36 PASS Invalid scheme "tel:sip" falied. 36 PASS Invalid scheme "tel:sip" falied.
37 PASS Invalid url "" threw SyntaxError exception.Failed to execute 'unregisterPro tocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.". 37 PASS Invalid url "" threw SyntaxError exception.Failed to execute 'unregisterPro tocolHandler' on 'Navigator': The url provided ('') does not contain '%s'.".
38 PASS Invalid url "%S" threw SyntaxError exception.Failed to execute 'unregisterP rotocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.". 38 PASS Invalid url "%S" threw SyntaxError exception.Failed to execute 'unregisterP rotocolHandler' on 'Navigator': The url provided ('%S') does not contain '%s'.".
39 PASS Valid call succeeded. 39 PASS Valid call succeeded.
40 40
41 Check if unregisterProtocolHandler can unregister protocol correctly. If isProto colHandlerRegistered() returns 'new' state, unregisterProtoclHandler() works wel l. 41 Check if unregisterProtocolHandler can unregister scheme correctly. If isProtoco lHandlerRegistered() returns 'new' state, unregisterProtoclHandler() works well.
42 'bitcoin' protocol will be registered and unregistered for testing. 42 'bitcoin' scheme will be registered and unregistered for testing.
43 43
44 PASS window.navigator.isProtocolHandlerRegistered returns 'registered' state. 'b itcoin' is registered successfully. 44 PASS window.navigator.isProtocolHandlerRegistered returns 'registered' state. 'b itcoin' is registered successfully.
45 PASS window.navigator.isProtocolHandlerRegistered returns 'new' state. 'bitcoin' is unregistered successfully. 45 PASS window.navigator.isProtocolHandlerRegistered returns 'new' state. 'bitcoin' is unregistered successfully.
46 46
47 47
48 PASS successfullyParsed is true 48 PASS successfullyParsed is true
49 49
50 TEST COMPLETE 50 TEST COMPLETE
51 51
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698