1 The test verifies functionality of protocol method CSS.setStyleText.
3 ==== Initial style sheet text ====
5 box-sizing: border-box;
9 /* resetting some properties */
13 display: flex; /* flex FTW! */
16 @media (min-width: 1px) {
27 Running test: testBasicSetStyle
28 ==== Style sheet text ====
34 /* resetting some properties */
38 display: flex; /* flex FTW! */
41 @media (min-width: 1px) {
51 Dumping matched rules:
61 @media (min-width: 1px)
65 @media (min-width: 1px)
68 Dumping inherited rules:
70 Running test: testSetStyleTwice
71 ==== Style sheet text ====
79 /* resetting some properties */
83 display: flex; /* flex FTW! */
86 @media (min-width: 1px) {
96 Dumping matched rules:
108 font-family: "Arial";
112 @media (min-width: 1px)
116 @media (min-width: 1px)
119 Dumping inherited rules:
120 ==== Style sheet text ====
128 /* resetting some properties */
130 font-family: "Arial";
132 display: flex; /* flex FTW! */
135 @media (min-width: 1px) {
145 Dumping matched rules:
157 font-family: "Arial";
161 @media (min-width: 1px)
165 @media (min-width: 1px)
168 Dumping inherited rules:
169 ==== Style sheet text ====
177 /* resetting some properties */
179 font-family: "Arial";
181 display: flex; /* flex FTW! */
184 @media (min-width: 1px) {
194 Dumping matched rules:
206 font-family: "Arial";
210 @media (min-width: 1px)
214 @media (min-width: 1px)
217 Dumping inherited rules:
219 Running test: testSetStylePoorContent
220 Expected protocol error: SyntaxError Style text is not valid.
221 Dumping matched rules:
223 box-sizing: border-box;
227 font-family: "Arial";
231 @media (min-width: 1px)
235 @media (min-width: 1px)
238 Dumping inherited rules:
240 Running test: testSetStyleInMedia
241 ==== Style sheet text ====
243 box-sizing: border-box;
247 /* resetting some properties */
249 font-family: "Arial";
251 display: flex; /* flex FTW! */
254 @media (min-width: 1px) {
266 Dumping matched rules:
268 box-sizing: border-box;
272 font-family: "Arial";
276 @media (min-width: 1px)
281 @media (min-width: 1px)
284 Dumping inherited rules:
286 Running test: testDeleteStyleBody
287 ==== Style sheet text ====
289 box-sizing: border-box;
293 /* resetting some properties */
295 font-family: "Arial";
297 display: flex; /* flex FTW! */
300 @media (min-width: 1px) {
308 Dumping matched rules:
310 box-sizing: border-box;
314 font-family: "Arial";
318 @media (min-width: 1px)
321 @media (min-width: 1px)
324 Dumping inherited rules:
326 Running test: testSetStylePoorRange
327 Expected protocol error: Specified range is out of bounds
328 Dumping matched rules:
330 box-sizing: border-box;
334 font-family: "Arial";
338 @media (min-width: 1px)
342 @media (min-width: 1px)
345 Dumping inherited rules:
347 Running test: testSetStyleOpenComment
348 Expected protocol error: SyntaxError Style text is not valid.
349 Dumping matched rules:
351 box-sizing: border-box;
355 font-family: "Arial";
359 @media (min-width: 1px)
363 @media (min-width: 1px)
366 Dumping inherited rules:
368 Running test: testSetStyleOfRemovedRule
369 ERROR: NotFoundError Source range didn't match existing style source range