| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/console-test.js"></script> | 4 <script src="../../http/tests/inspector/console-test.js"></script> |
| 5 <script src="../../http/tests/inspector/extensions-test.js"></script> | 5 <script src="../../http/tests/inspector/extensions-test.js"></script> |
| 6 <script src="../../http/tests/inspector/debugger-test.js"></script> | 6 <script src="../../http/tests/inspector/debugger-test.js"></script> |
| 7 | 7 |
| 8 <script type="text/javascript"> | 8 <script type="text/javascript"> |
| 9 function loadFrame(callback) | 9 function loadFrame(callback) |
| 10 { | 10 { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 function extension_testOnContentCommitted(nextTest) | 129 function extension_testOnContentCommitted(nextTest) |
| 130 { | 130 { |
| 131 var expected_content = "div.test { width: 220px; height: 42px; }"; | 131 var expected_content = "div.test { width: 220px; height: 42px; }"; |
| 132 | 132 |
| 133 webInspector.inspectedWindow.onResourceContentCommitted.addListener(onConten
tCommitted); | 133 webInspector.inspectedWindow.onResourceContentCommitted.addListener(onConten
tCommitted); |
| 134 extension_runWithResource(/audits-style1\.css$/, function(resource) { | 134 extension_runWithResource(/audits-style1\.css$/, function(resource) { |
| 135 resource.setContent("div.test { width: 140px; height: 42px; }", false); | 135 resource.setContent("div.test { width: 140px; height: 42px; }", false); |
| 136 }); | 136 }); |
| 137 // The next step is going to produce a console message that will be logged,
so synchronize the output now. | 137 // The next step is going to produce a console message that will be logged,
so synchronize the output now. |
| 138 evaluateOnFrontend("InspectorTest.runAfterPendingDispatches(reply)", functio
n() { | 138 evaluateOnFrontend("InspectorTest.deprecatedRunAfterPendingDispatches(reply)
", function() { |
| 139 extension_runWithResource(/abe\.png$/, function(resource) { | 139 extension_runWithResource(/abe\.png$/, function(resource) { |
| 140 resource.setContent("", true); | 140 resource.setContent("", true); |
| 141 }); | 141 }); |
| 142 extension_runWithResource(/audits-style1\.css$/, function(resource) { | 142 extension_runWithResource(/audits-style1\.css$/, function(resource) { |
| 143 resource.setContent(expected_content, true); | 143 resource.setContent(expected_content, true); |
| 144 }); | 144 }); |
| 145 }); | 145 }); |
| 146 | 146 |
| 147 function onContentCommitted(resource, content) | 147 function onContentCommitted(resource, content) |
| 148 { | 148 { |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 201 script.src = "data:application/javascript," + escape("function test_func(){}
;"); | 201 script.src = "data:application/javascript," + escape("function test_func(){}
;"); |
| 202 document.head.appendChild(script); | 202 document.head.appendChild(script); |
| 203 } | 203 } |
| 204 | 204 |
| 205 </script> | 205 </script> |
| 206 </head> | 206 </head> |
| 207 <body onload="runTest()"> | 207 <body onload="runTest()"> |
| 208 <p>Tests resource-related methods of WebInspector extension API</p> | 208 <p>Tests resource-related methods of WebInspector extension API</p> |
| 209 </body> | 209 </body> |
| 210 </html> | 210 </html> |
| OLD | NEW |