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

Side by Side Diff: LayoutTests/inspector-protocol/stylesheet-tracking-restart.html

Issue 653263004: DevTools: CSSAgent::enable should report an error if DOM agent hasn't been enabled (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: comments addressed Created 6 years, 2 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
OLDNEW
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
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698