OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../../resources/js-test.js"></script> | 3 <script src="../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 <p>This test makes sure that navigator.registerProtocolHandler throws the proper
exceptions and has no-op default implementation.</p> | 6 <p>This test makes sure that navigator.registerProtocolHandler throws the proper
exceptions and has no-op default implementation.</p> |
7 <pre id="console"></pre> | 7 <pre id="console"></pre> |
8 <script> | 8 <script> |
9 if (window.testRunner) | 9 if (window.testRunner) |
10 testRunner.dumpAsText(); | 10 testRunner.dumpAsText(); |
11 | 11 |
12 if (window.internals) | 12 if (window.internals) |
13 internals.setNavigatorContentUtilsClientMock(document); | 13 internals.setNavigatorContentUtilsClientMock(document); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 else if (state == "declined") | 110 else if (state == "declined") |
111 debug("FAIL window.navigator.isProtocolHandlerRegistered returns 'declin
ed' state. Fail to register 'bitcoin' protocol"); | 111 debug("FAIL window.navigator.isProtocolHandlerRegistered returns 'declin
ed' state. Fail to register 'bitcoin' protocol"); |
112 } catch (e) { | 112 } catch (e) { |
113 debug('FAIL window.navigator.isProtocolHandlerRegistered call is failed: "'
+ e.message + '".'); | 113 debug('FAIL window.navigator.isProtocolHandlerRegistered call is failed: "'
+ e.message + '".'); |
114 } | 114 } |
115 debug("\n"); | 115 debug("\n"); |
116 | 116 |
117 </script> | 117 </script> |
118 </body> | 118 </body> |
119 </html> | 119 </html> |
OLD | NEW |