drousso@apple.com | 0e56fed | 2017-06-07 23:53:10 +0000 | [diff] [blame^] | 1 | Testing that CSS.addRule works for all types of stylesheets. |
| 2 | |
| 3 | |
| 4 | == Running test suite: CSS.addRule |
| 5 | -- Running test case: CSS.addRule.InNonExistingInspectorStyleSheet |
| 6 | PASS: Rule selector should be "body" |
| 7 | PASS: Rule range should be [0:0,0:4] |
| 8 | PASS: Rule origin should be "inspector" |
| 9 | |
| 10 | -- Running test case: CSS.addRule.InExistingInspectorStyleSheet |
| 11 | PASS: Rule selector should be "div" |
| 12 | PASS: Rule range should be [1:0,1:3] |
| 13 | PASS: Rule origin should be "inspector" |
| 14 | |
| 15 | -- Running test case: CSS.addRule.ExternalStyleSheet |
| 16 | PASS: Rule selector should be "div" |
| 17 | PASS: Rule range should be [2:0,2:3] |
| 18 | PASS: Rule origin should be "regular" |
| 19 | |
| 20 | -- Running test case: CSS.addRule.BadStyleSheetId |
| 21 | PASS: No target stylesheet found |
| 22 | |