| OLD | NEW |
| 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or
g/TR/html4/loose.dtd"> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../http/tests/inspector/inspector-test.js"></script> |
| 5 <script> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 Protocol.InspectorBackend.Options.suppressRequestErrors = false; |
| 8 function dumpArgument(name, value) | 9 function dumpArgument(name, value) |
| 9 { | 10 { |
| 10 InspectorTest.addResult(name + " result: " + (typeof value === "string"
? value : JSON.stringify(value))); | 11 InspectorTest.addResult(name + " result: " + (typeof value === "string"
? value : JSON.stringify(value))); |
| 11 } | 12 } |
| 12 | 13 |
| 13 function processResult(name, promise) | 14 function processResult(name, promise) |
| 14 { | 15 { |
| 15 return promise.then(dumpArgument.bind(null, name + ": then"), dumpArgume
nt.bind(null, name + ": catch")); | 16 return promise.then(dumpArgument.bind(null, name + ": then"), dumpArgume
nt.bind(null, name + ": catch")); |
| 16 } | 17 } |
| 17 | 18 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina
l; | 107 InspectorFrontendHost.sendMessageToBackend = sendMessageToBackendOrigina
l; |
| 107 InspectorTest.completeTest(); | 108 InspectorTest.completeTest(); |
| 108 } | 109 } |
| 109 } | 110 } |
| 110 </script> | 111 </script> |
| 111 </head> | 112 </head> |
| 112 <body onload="runTest()"> | 113 <body onload="runTest()"> |
| 113 <p>Tests correctness of promisified protocol commands.</p> | 114 <p>Tests correctness of promisified protocol commands.</p> |
| 114 </body> | 115 </body> |
| 115 </html> | 116 </html> |
| OLD | NEW |