| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <link rel="stylesheet" href="resources/disable-property-workingcopy-update.css"> | 3 <link rel="stylesheet" href="resources/disable-property-workingcopy-update.css"> |
| 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 6 <script src="../../../http/tests/inspector/elements-test.js"></script> | 6 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 var cssSourceFrame; | 11 var cssSourceFrame; |
| 12 WebInspector.StylesSourceMapping.MinorChangeUpdateTimeoutMs = 10; | 12 WebInspector.StylesSourceMapping.MinorChangeUpdateTimeoutMs = 10; |
| 13 | 13 |
| 14 InspectorTest.runTestSuite([ | 14 InspectorTest.runTestSuite([ |
| 15 function selectContainer(next) | 15 function selectContainer(next) |
| 16 { | 16 { |
| 17 InspectorTest.selectNodeAndWaitForStyles("inspected", next); | 17 InspectorTest.selectNodeAndWaitForStyles("inspected", next); |
| 18 }, | 18 }, |
| 19 | 19 |
| 20 function showEditor(next) | 20 function showEditor(next) |
| 21 { | 21 { |
| 22 var headers = WebInspector.cssModel.styleSheetHeaders(); | 22 var headers = InspectorTest.cssModel.styleSheetHeaders(); |
| 23 for (var i = 0; i < headers.length; ++i) { | 23 for (var i = 0; i < headers.length; ++i) { |
| 24 if (headers[i].sourceURL.endsWith(".css")) { | 24 if (headers[i].sourceURL.endsWith(".css")) { |
| 25 var cssLocation = new WebInspector.CSSLocation(WebInspector.
cssModel.target(), headers[i].id, headers[i].sourceURL, 0); | 25 var cssLocation = new WebInspector.CSSLocation(InspectorTest
.cssModel.target(), headers[i].id, headers[i].sourceURL, 0); |
| 26 InspectorTest.showUISourceCode(WebInspector.cssWorkspaceBind
ing.rawLocationToUILocation(cssLocation).uiSourceCode, callback); | 26 InspectorTest.showUISourceCode(WebInspector.cssWorkspaceBind
ing.rawLocationToUILocation(cssLocation).uiSourceCode, callback); |
| 27 break; | 27 break; |
| 28 } | 28 } |
| 29 } | 29 } |
| 30 | 30 |
| 31 function callback(sourceFrame) | 31 function callback(sourceFrame) |
| 32 { | 32 { |
| 33 cssSourceFrame = sourceFrame; | 33 cssSourceFrame = sourceFrame; |
| 34 InspectorTest.dumpSourceFrameContents(cssSourceFrame); | 34 InspectorTest.dumpSourceFrameContents(cssSourceFrame); |
| 35 next(); | 35 next(); |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 <body onload="runTest()"> | 81 <body onload="runTest()"> |
| 82 <p> | 82 <p> |
| 83 Tests that style property disablement is propagated into the stylesheet UISource
Code working copy. | 83 Tests that style property disablement is propagated into the stylesheet UISource
Code working copy. |
| 84 </p> | 84 </p> |
| 85 | 85 |
| 86 <div id="inspected"> | 86 <div id="inspected"> |
| 87 </div> | 87 </div> |
| 88 | 88 |
| 89 </body> | 89 </body> |
| 90 </html> | 90 </html> |
| OLD | NEW |