| 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 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE
". |
| 4 Pass: Invalid protocol "http" threw SecurityError exception. | |
| 5 Pass: Invalid protocol "https" threw SecurityError exception. | |
| 6 Pass: Invalid protocol "file" threw SecurityError exception. | |
| 7 Pass: Invalid protocol "web+" threw SecurityError exception. | |
| 8 Pass: Valid protocol "bitcoin" allowed. | |
| 9 Pass: Valid protocol "geo" allowed. | |
| 10 Pass: Valid protocol "im" allowed. | |
| 11 Pass: Valid protocol "irc" allowed. | |
| 12 Pass: Valid protocol "ircs" allowed. | |
| 13 Pass: Valid protocol "magnet" allowed. | |
| 14 Pass: Valid protocol "mailto" allowed. | |
| 15 Pass: Valid protocol "mms" allowed. | |
| 16 Pass: Valid protocol "news" allowed. | |
| 17 Pass: Valid protocol "nntp" allowed. | |
| 18 Pass: Valid protocol "sip" allowed. | |
| 19 Pass: Valid protocol "sms" allowed. | |
| 20 Pass: Valid protocol "smsto" allowed. | |
| 21 Pass: Valid protocol "ssh" allowed. | |
| 22 Pass: Valid protocol "tel" allowed. | |
| 23 Pass: Valid protocol "urn" allowed. | |
| 24 Pass: Valid protocol "webcal" allowed. | |
| 25 Pass: Valid protocol "wtai" allowed. | |
| 26 Pass: Valid protocol "xmpp" allowed. | |
| 27 Pass: Invalid url "" threw SyntaxError exception. | |
| 28 Pass: Invalid url "%S" threw SyntaxError exception. | |
| 29 Pass: Valid call succeeded. | |
| 30 | 4 |
| 5 |
| 6 PASS window.navigator.registerProtocolHandler is defined. |
| 7 PASS window.navigator.registerProtocolHandler('http', 'invalid protocol %s', 'ti
tle'); threw exception SecurityError: Failed to execute 'registerProtocolHandler
' on 'Navigator': the scheme 'http' may not be registered.. |
| 8 PASS window.navigator.registerProtocolHandler('https', 'invalid protocol %s', 't
itle'); threw exception SecurityError: Failed to execute 'registerProtocolHandle
r' on 'Navigator': the scheme 'https' may not be registered.. |
| 9 PASS window.navigator.registerProtocolHandler('file', 'invalid protocol %s', 'ti
tle'); threw exception SecurityError: Failed to execute 'registerProtocolHandler
' on 'Navigator': the scheme 'file' may not be registered.. |
| 10 PASS window.navigator.registerProtocolHandler('web+', 'invalid protocol %s', 'ti
tle'); threw exception SecurityError: Failed to execute 'registerProtocolHandler
' on 'Navigator': the scheme length (including 'web+') must be at least 5 charac
ters.. |
| 11 PASS window.navigator.registerProtocolHandler('bitcoin', 'valid protocol %s', 't
itle'); did not throw exception. |
| 12 PASS window.navigator.registerProtocolHandler('geo', 'valid protocol %s', 'title
'); did not throw exception. |
| 13 PASS window.navigator.registerProtocolHandler('im', 'valid protocol %s', 'title'
); did not throw exception. |
| 14 PASS window.navigator.registerProtocolHandler('irc', 'valid protocol %s', 'title
'); did not throw exception. |
| 15 PASS window.navigator.registerProtocolHandler('ircs', 'valid protocol %s', 'titl
e'); did not throw exception. |
| 16 PASS window.navigator.registerProtocolHandler('magnet', 'valid protocol %s', 'ti
tle'); did not throw exception. |
| 17 PASS window.navigator.registerProtocolHandler('mailto', 'valid protocol %s', 'ti
tle'); did not throw exception. |
| 18 PASS window.navigator.registerProtocolHandler('mms', 'valid protocol %s', 'title
'); did not throw exception. |
| 19 PASS window.navigator.registerProtocolHandler('news', 'valid protocol %s', 'titl
e'); did not throw exception. |
| 20 PASS window.navigator.registerProtocolHandler('nntp', 'valid protocol %s', 'titl
e'); did not throw exception. |
| 21 PASS window.navigator.registerProtocolHandler('sip', 'valid protocol %s', 'title
'); did not throw exception. |
| 22 PASS window.navigator.registerProtocolHandler('sms', 'valid protocol %s', 'title
'); did not throw exception. |
| 23 PASS window.navigator.registerProtocolHandler('smsto', 'valid protocol %s', 'tit
le'); did not throw exception. |
| 24 PASS window.navigator.registerProtocolHandler('ssh', 'valid protocol %s', 'title
'); did not throw exception. |
| 25 PASS window.navigator.registerProtocolHandler('tel', 'valid protocol %s', 'title
'); did not throw exception. |
| 26 PASS window.navigator.registerProtocolHandler('urn', 'valid protocol %s', 'title
'); did not throw exception. |
| 27 PASS window.navigator.registerProtocolHandler('webcal', 'valid protocol %s', 'ti
tle'); did not throw exception. |
| 28 PASS window.navigator.registerProtocolHandler('wtai', 'valid protocol %s', 'titl
e'); did not throw exception. |
| 29 PASS window.navigator.registerProtocolHandler('xmpp', 'valid protocol %s', 'titl
e'); did not throw exception. |
| 30 PASS window.navigator.registerProtocolHandler('web+myprotocol', '', 'title'); th
rew exception SyntaxError: An invalid or illegal string was specified.. |
| 31 PASS window.navigator.registerProtocolHandler('web+myprotocol', '%S', 'title');
threw exception SyntaxError: An invalid or illegal string was specified.. |
| 32 PASS window.navigator.registerProtocolHandler('web+myprotocol', '%s', 'title');
did not throw exception. |
| 33 PASS successfullyParsed is true |
| 34 |
| 35 TEST COMPLETE |
| 36 |
| OLD | NEW |