Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(537)

Side by Side Diff: LayoutTests/http/tests/inspector-protocol/css-protocol-test.js

Issue 1181213007: DevTools: introduce CSS.setStyleText, we'll migrate setPropertyText to it later. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: win fixed Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-set-inline-style-text.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.setStyleText = updateStyleSheetRange.bind(null, "CSS.setStyleText" );
42 InspectorTest.setMediaText = updateStyleSheetRange.bind(null, "CSS.setMediaText" ); 43 InspectorTest.setMediaText = updateStyleSheetRange.bind(null, "CSS.setMediaText" );
43 InspectorTest.addRule = updateStyleSheetRange.bind(null, "CSS.addRule"); 44 InspectorTest.addRule = updateStyleSheetRange.bind(null, "CSS.addRule");
44 45
45 InspectorTest.requestMainFrameId = function(callback) 46 InspectorTest.requestMainFrameId = function(callback)
46 { 47 {
47 InspectorTest.sendCommandOrDie("Page.enable", {}, pageEnabled); 48 InspectorTest.sendCommandOrDie("Page.enable", {}, pageEnabled);
48 49
49 function pageEnabled() 50 function pageEnabled()
50 { 51 {
51 InspectorTest.sendCommandOrDie("Page.getResourceTree", {}, resourceTreeL oaded); 52 InspectorTest.sendCommandOrDie("Page.getResourceTree", {}, resourceTreeL oaded);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 { 145 {
145 InspectorTest.requestNodeId(documentNodeId, selector, nodeIdLoaded); 146 InspectorTest.requestNodeId(documentNodeId, selector, nodeIdLoaded);
146 147
147 function nodeIdLoaded(nodeId) 148 function nodeIdLoaded(nodeId)
148 { 149 {
149 InspectorTest.loadAndDumpMatchingRulesForNode(nodeId, callback); 150 InspectorTest.loadAndDumpMatchingRulesForNode(nodeId, callback);
150 } 151 }
151 } 152 }
152 153
153 } 154 }
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/inspector-protocol/css/css-set-inline-style-text.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698