| 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" src="css-protocol-test.js"></script> | 4 <script type="text/javascript" src="css-protocol-test.js"></script> |
| 5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 InspectorTest.eventHandler["CSS.styleSheetAdded"] = styleSheetAdded; | 8 InspectorTest.eventHandler["CSS.styleSheetAdded"] = styleSheetAdded; |
| 9 InspectorTest.sendCommandOrDie("DOM.enable", {}); |
| 9 InspectorTest.sendCommandOrDie("CSS.enable", {}); | 10 InspectorTest.sendCommandOrDie("CSS.enable", {}); |
| 10 | 11 |
| 11 var setPropertyText; | 12 var setPropertyText; |
| 12 var verifyProtocolError; | 13 var verifyProtocolError; |
| 13 var dumpStyleSheet; | 14 var dumpStyleSheet; |
| 14 | 15 |
| 15 function styleSheetAdded(result) | 16 function styleSheetAdded(result) |
| 16 { | 17 { |
| 17 var styleSheetId = result.params.header.styleSheetId; | 18 var styleSheetId = result.params.header.styleSheetId; |
| 18 setPropertyText = InspectorTest.setPropertyText.bind(InspectorTest, styl
eSheetId, false); | 19 setPropertyText = InspectorTest.setPropertyText.bind(InspectorTest, styl
eSheetId, false); |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 }, | 180 }, |
| 180 ]; | 181 ]; |
| 181 } | 182 } |
| 182 | 183 |
| 183 </script> | 184 </script> |
| 184 <link rel="stylesheet" href="resources/set-property-text.css"/> | 185 <link rel="stylesheet" href="resources/set-property-text.css"/> |
| 185 </head> | 186 </head> |
| 186 <body onload="runTest();"> | 187 <body onload="runTest();"> |
| 187 </body> | 188 </body> |
| 188 </html> | 189 </html> |
| OLD | NEW |