| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 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/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 | 7 |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 var formattedStyle; | 10 var formattedStyle; |
| 11 | 11 |
| 12 InspectorTest.cssModel.addEventListener(WebInspector.CSSModel.Events.StyleSh
eetChanged, onStyleSheetChanged, this); | 12 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetChange
d, onStyleSheetChanged, this); |
| 13 | 13 |
| 14 function onStyleSheetChanged(event) | 14 function onStyleSheetChanged(event) |
| 15 { | 15 { |
| 16 if (!event.data || !event.data.edit) | 16 if (!event.data || !event.data.edit) |
| 17 return; | 17 return; |
| 18 formattedStyle.rebase(event.data.edit); | 18 formattedStyle.rebase(event.data.edit); |
| 19 } | 19 } |
| 20 | 20 |
| 21 InspectorTest.runTestSuite([ | 21 InspectorTest.runTestSuite([ |
| 22 function initFormattedStyle(next) | 22 function initFormattedStyle(next) |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 </style> | 93 </style> |
| 94 </head> | 94 </head> |
| 95 | 95 |
| 96 <body id="mainBody" onload="runTest()"> | 96 <body id="mainBody" onload="runTest()"> |
| 97 <p> | 97 <p> |
| 98 Verifies that formatter adds a semicolon when enabling property. | 98 Verifies that formatter adds a semicolon when enabling property. |
| 99 </p> | 99 </p> |
| 100 <div id="formatted">Formatted</div> | 100 <div id="formatted">Formatted</div> |
| 101 </body> | 101 </body> |
| 102 </html> | 102 </html> |
| OLD | NEW |