Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> | 3 <script type="text/javascript" src="../../http/tests/inspector-protocol/inspecto r-protocol-test.js"></script> |
| 4 <script type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 | 5 |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 var inlineStyleSheetId; | 8 var inlineStyleSheetId; |
| 9 function sendCommand(command, properties, callback) { | 9 function sendCommand(command, properties, callback) |
|
lushnikov
2015/06/18 13:34:49
you can remove this and use sendCommandOrDie
pfeldman
2015/06/18 16:38:55
Done.
| |
| 10 { | |
| 10 InspectorTest.sendCommand(command, properties || {}, commandCallback); | 11 InspectorTest.sendCommand(command, properties || {}, commandCallback); |
| 11 function commandCallback(msg) | 12 function commandCallback(msg) |
| 12 { | 13 { |
| 13 if (msg.error) { | 14 if (msg.error) { |
| 14 InspectorTest.log(msg.error.message); | 15 InspectorTest.log(msg.error.message); |
| 15 InspectorTest.completeTest(); | 16 InspectorTest.completeTest(); |
| 16 return; | 17 return; |
| 17 } | 18 } |
| 18 callback(msg.result); | 19 callback(msg.result); |
| 19 } | 20 } |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 69 | 70 |
| 70 </script> | 71 </script> |
| 71 </head> | 72 </head> |
| 72 <body onload="runTest()"> | 73 <body onload="runTest()"> |
| 73 | 74 |
| 74 <div id="inliner" style="color: red;"> | 75 <div id="inliner" style="color: red;"> |
| 75 </div> | 76 </div> |
| 76 | 77 |
| 77 </body> | 78 </body> |
| 78 </html> | 79 </html> |
| OLD | NEW |