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