OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script type="text/javascript" src="../http/tests/inspector-protocol/inspector-p
rotocol-test.js"></script> | 3 <script type="text/javascript" src="../http/tests/inspector-protocol/inspector-p
rotocol-test.js"></script> |
4 <script> | 4 <script> |
5 var styleElement1; | 5 var styleElement1; |
6 var styleElement2; | 6 var styleElement2; |
7 | 7 |
8 function createStyleSheet(textContent) | 8 function createStyleSheet(textContent) |
9 { | 9 { |
10 var styleElement = document.createElement("style"); | 10 var styleElement = document.createElement("style"); |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 { | 70 { |
71 headersAdded.push(response.params.header); | 71 headersAdded.push(response.params.header); |
72 } | 72 } |
73 | 73 |
74 function styleSheetRemoved(response) | 74 function styleSheetRemoved(response) |
75 { | 75 { |
76 headersRemoved.push(response.params.styleSheetId); | 76 headersRemoved.push(response.params.styleSheetId); |
77 } | 77 } |
78 | 78 |
79 InspectorTest.log("Enabling CSS domain."); | 79 InspectorTest.log("Enabling CSS domain."); |
| 80 InspectorTest.sendCommandOrDie("DOM.enable", {}); |
80 InspectorTest.sendCommand("CSS.enable", {}, wasEnabled); | 81 InspectorTest.sendCommand("CSS.enable", {}, wasEnabled); |
81 | 82 |
82 function wasEnabled() | 83 function wasEnabled() |
83 { | 84 { |
84 function compareFunction(a, b) | 85 function compareFunction(a, b) |
85 { | 86 { |
86 return a.styleSheetId - b.styleSheetId; | 87 return a.styleSheetId - b.styleSheetId; |
87 } | 88 } |
88 | 89 |
89 var headers = {}; | 90 var headers = {}; |
(...skipping 11 matching lines...) Expand all Loading... |
101 callback(); | 102 callback(); |
102 } | 103 } |
103 } | 104 } |
104 } | 105 } |
105 </script> | 106 </script> |
106 </head> | 107 </head> |
107 <body onload="openWebInspector()"> | 108 <body onload="openWebInspector()"> |
108 <p>This test checks that if style sheet is removed between two inspector launche
s it is not reported to frontend.</p> | 109 <p>This test checks that if style sheet is removed between two inspector launche
s it is not reported to frontend.</p> |
109 </body> | 110 </body> |
110 </html> | 111 </html> |
OLD | NEW |