| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <link rel="stylesheet" href="resources/styles-new-API.css"> | 4 <link rel="stylesheet" href="resources/styles-new-API.css"> |
| 5 | 5 |
| 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 6 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 7 <script src="../../../http/tests/inspector/elements-test.js"></script> | 7 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 8 <script src="styles-test.js"></script> | 8 <script src="styles-test.js"></script> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 }, "font-family: serif;", didSetStyleText); | 312 }, "font-family: serif;", didSetStyleText); |
| 313 } | 313 } |
| 314 | 314 |
| 315 function viaInspectorStyleSheetCreated(error, styleSheetId) | 315 function viaInspectorStyleSheetCreated(error, styleSheetId) |
| 316 { | 316 { |
| 317 if (error) { | 317 if (error) { |
| 318 InspectorTest.addResult("error: " + error); | 318 InspectorTest.addResult("error: " + error); |
| 319 InspectorTest.completeTest(); | 319 InspectorTest.completeTest(); |
| 320 return; | 320 return; |
| 321 } | 321 } |
| 322 CSSAgent.addRule(styleSheetId, "body", ruleAdded); | 322 var range = { |
| 323 startLine: 0, |
| 324 startColumn: 0, |
| 325 endLine: 0, |
| 326 endColumn: 0 |
| 327 }; |
| 328 CSSAgent.addRule(styleSheetId, "body {}", range, ruleAdded); |
| 323 } | 329 } |
| 324 | 330 |
| 325 var frameId = WebInspector.resourceTreeModel.mainFrame.id; | 331 var frameId = WebInspector.resourceTreeModel.mainFrame.id; |
| 326 CSSAgent.createStyleSheet(frameId, viaInspectorStyleSheetCreated.bin
d(this)); | 332 CSSAgent.createStyleSheet(frameId, viaInspectorStyleSheetCreated.bin
d(this)); |
| 327 }, | 333 }, |
| 328 | 334 |
| 329 function test_disableProperty(next) | 335 function test_disableProperty(next) |
| 330 { | 336 { |
| 331 function didEnableProperty(style) | 337 function didEnableProperty(style) |
| 332 { | 338 { |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 | 491 |
| 486 <body id="mainBody" class="main1 main2 mainpage" onload="runTest()" style="font-
weight: normal; width: 85%; background-image: url(bar.png)"> | 492 <body id="mainBody" class="main1 main2 mainpage" onload="runTest()" style="font-
weight: normal; width: 85%; background-image: url(bar.png)"> |
| 487 <p> | 493 <p> |
| 488 Tests that InspectorCSSAgent API methods work as expected. | 494 Tests that InspectorCSSAgent API methods work as expected. |
| 489 </p> | 495 </p> |
| 490 <table width="50%" id="thetable"> | 496 <table width="50%" id="thetable"> |
| 491 </table> | 497 </table> |
| 492 <h1 id="toggle">H1</h1> | 498 <h1 id="toggle">H1</h1> |
| 493 </body> | 499 </body> |
| 494 </html> | 500 </html> |
| OLD | NEW |