OLD | NEW |
1 function initialize_cssTest() | 1 function initialize_cssTest() |
2 { | 2 { |
3 | 3 |
4 InspectorTest.dumpStyleSheetText = function(styleSheetId, callback) | 4 InspectorTest.dumpStyleSheetText = function(styleSheetId, callback) |
5 { | 5 { |
6 InspectorTest.sendCommandOrDie("CSS.getStyleSheetText", { styleSheetId: styl
eSheetId }, onStyleSheetText); | 6 InspectorTest.sendCommandOrDie("CSS.getStyleSheetText", { styleSheetId: styl
eSheetId }, onStyleSheetText); |
7 function onStyleSheetText(result) | 7 function onStyleSheetText(result) |
8 { | 8 { |
9 InspectorTest.log("==== Style sheet text ===="); | 9 InspectorTest.log("==== Style sheet text ===="); |
10 InspectorTest.log(result.text); | 10 InspectorTest.log(result.text); |
(...skipping 21 matching lines...) Expand all Loading... |
32 InspectorTest.completeTest(); | 32 InspectorTest.completeTest(); |
33 return; | 33 return; |
34 } | 34 } |
35 InspectorTest.log("Expected protocol error: " + message.error.message); | 35 InspectorTest.log("Expected protocol error: " + message.error.message); |
36 callback(); | 36 callback(); |
37 } | 37 } |
38 } | 38 } |
39 | 39 |
40 InspectorTest.setPropertyText = updateStyleSheetRange.bind(null, "CSS.setPropert
yText"); | 40 InspectorTest.setPropertyText = updateStyleSheetRange.bind(null, "CSS.setPropert
yText"); |
41 InspectorTest.setRuleSelector = updateStyleSheetRange.bind(null, "CSS.setRuleSel
ector"); | 41 InspectorTest.setRuleSelector = updateStyleSheetRange.bind(null, "CSS.setRuleSel
ector"); |
| 42 InspectorTest.setMultipleStyleTexts = updateStyleSheetRange.bind(null, "CSS.setM
ultipleStyleTexts"); |
42 InspectorTest.setStyleText = updateStyleSheetRange.bind(null, "CSS.setStyleText"
); | 43 InspectorTest.setStyleText = updateStyleSheetRange.bind(null, "CSS.setStyleText"
); |
43 InspectorTest.setMediaText = updateStyleSheetRange.bind(null, "CSS.setMediaText"
); | 44 InspectorTest.setMediaText = updateStyleSheetRange.bind(null, "CSS.setMediaText"
); |
44 InspectorTest.addRule = updateStyleSheetRange.bind(null, "CSS.addRule"); | 45 InspectorTest.addRule = updateStyleSheetRange.bind(null, "CSS.addRule"); |
45 | 46 |
46 InspectorTest.requestMainFrameId = function(callback) | 47 InspectorTest.requestMainFrameId = function(callback) |
47 { | 48 { |
48 InspectorTest.sendCommandOrDie("Page.enable", {}, pageEnabled); | 49 InspectorTest.sendCommandOrDie("Page.enable", {}, pageEnabled); |
49 | 50 |
50 function pageEnabled() | 51 function pageEnabled() |
51 { | 52 { |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 { | 190 { |
190 if (!omitLog) | 191 if (!omitLog) |
191 InspectorTest.log("Dumping inline style: "); | 192 InspectorTest.log("Dumping inline style: "); |
192 InspectorTest.log("{"); | 193 InspectorTest.log("{"); |
193 InspectorTest.dumpStyle(result.inlineStyle, 0); | 194 InspectorTest.dumpStyle(result.inlineStyle, 0); |
194 InspectorTest.log("}"); | 195 InspectorTest.log("}"); |
195 InspectorTest.loadAndDumpMatchingRulesForNode(nodeId, callback, omitLog) | 196 InspectorTest.loadAndDumpMatchingRulesForNode(nodeId, callback, omitLog) |
196 } | 197 } |
197 } | 198 } |
198 } | 199 } |
OLD | NEW |