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