1 The test verifies functionality of protocol method CSS.addRule.
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: testAddRuleToStyleSheetBeginning
28 ==== Style sheet text ====
29 #test { content: 'EDITED'; }#test {
30 box-sizing: border-box;
34 /* resetting some properties */
38 display: flex; /* flex FTW! */
41 @media (min-width: 1px) {
51 Dumping matched rules:
56 box-sizing: border-box;
64 @media (min-width: 1px)
68 @media (min-width: 1px)
71 Dumping inherited rules:
73 Running test: testAddRuleToStyleSheetEnding
74 ==== Style sheet text ====
76 box-sizing: border-box;
80 /* resetting some properties */
84 display: flex; /* flex FTW! */
87 @media (min-width: 1px) {
95 #test { content: 'EDITED'; }
97 Dumping matched rules:
99 box-sizing: border-box;
103 font-family: "Arial";
107 @media (min-width: 1px)
111 @media (min-width: 1px)
117 Dumping inherited rules:
119 Running test: testAddRuleToStyleSheetCenter
120 ==== Style sheet text ====
122 box-sizing: border-box;
126 /* resetting some properties */
128 font-family: "Arial";
130 display: flex; /* flex FTW! */
132 #test { content: 'EDITED'; }
133 @media (min-width: 1px) {
143 Dumping matched rules:
145 box-sizing: border-box;
149 font-family: "Arial";
156 @media (min-width: 1px)
160 @media (min-width: 1px)
163 Dumping inherited rules:
165 Running test: testAddRuleToRuleEnding
166 ==== Style sheet text ====
168 box-sizing: border-box;
174 /* resetting some properties */
176 font-family: "Arial";
178 display: flex; /* flex FTW! */
181 @media (min-width: 1px) {
191 Dumping matched rules:
193 box-sizing: border-box;
200 font-family: "Arial";
204 @media (min-width: 1px)
208 @media (min-width: 1px)
211 Dumping inherited rules:
213 Running test: testAddRuleWithFormatting
214 ==== Style sheet text ====
216 box-sizing: border-box;
224 /* resetting some properties */
226 font-family: "Arial";
228 display: flex; /* flex FTW! */
231 @media (min-width: 1px) {
241 Dumping matched rules:
243 box-sizing: border-box;
250 font-family: "Arial";
254 @media (min-width: 1px)
258 @media (min-width: 1px)
261 Dumping inherited rules:
263 Running test: testAddRuleToMediaRuleBeginning
264 ==== Style sheet text ====
266 box-sizing: border-box;
270 /* resetting some properties */
272 font-family: "Arial";
274 display: flex; /* flex FTW! */
277 @media (min-width: 1px) {#test { content: 'EDITED'; }
287 Dumping matched rules:
289 box-sizing: border-box;
293 font-family: "Arial";
297 @media (min-width: 1px)
301 @media (min-width: 1px)
305 @media (min-width: 1px)
308 Dumping inherited rules:
310 Running test: testAddRuleToMediaRuleCenter
311 ==== Style sheet text ====
313 box-sizing: border-box;
317 /* resetting some properties */
319 font-family: "Arial";
321 display: flex; /* flex FTW! */
324 @media (min-width: 1px) {
328 #test { content: 'EDITED'; }
334 Dumping matched rules:
336 box-sizing: border-box;
340 font-family: "Arial";
344 @media (min-width: 1px)
348 @media (min-width: 1px)
352 @media (min-width: 1px)
355 Dumping inherited rules:
357 Running test: testAddRuleToMediaRuleEnd
358 ==== Style sheet text ====
360 box-sizing: border-box;
364 /* resetting some properties */
366 font-family: "Arial";
368 display: flex; /* flex FTW! */
371 @media (min-width: 1px) {
378 #test { content: 'EDITED'; }}
381 Dumping matched rules:
383 box-sizing: border-box;
387 font-family: "Arial";
391 @media (min-width: 1px)
395 @media (min-width: 1px)
398 @media (min-width: 1px)
402 Dumping inherited rules:
404 Running test: testInvalidRule
405 Expected protocol error: SyntaxError Rule text is not valid.
407 Running test: testAddingRuleInsideSelector
408 Expected protocol error: NotFoundError Cannot insert rule inside rule selector.
410 Running test: testAddingRuleBeforeRuleBody
411 Expected protocol error: NotFoundError Cannot insert rule inside rule selector.
413 Running test: testAddingRuleInsideMedia1
414 Expected protocol error: NotFoundError Cannot insert rule inside rule selector.
416 Running test: testAddingRuleInsideMedia2
417 Expected protocol error: NotFoundError Cannot insert rule inside rule selector.
419 Running test: testAddingRuleBeforeMediaBody
420 Expected protocol error: NotFoundError Cannot insert rule inside rule selector.
422 Running test: testAddingRuleInsideStyleRule
423 Expected protocol error: NotFoundError Cannot insert rule in non-media rule.