| OLD | NEW |
| (Empty) |
| 1 ==== Initial style sheet text ==== | |
| 2 * { | |
| 3 box-sizing: border-box; | |
| 4 } | |
| 5 | |
| 6 html, body, div, a { | |
| 7 /* resetting some properties */ | |
| 8 padding: 0; | |
| 9 margin: 0; | |
| 10 border: 0; | |
| 11 display: flex; /* flex FTW! */ | |
| 12 } | |
| 13 | |
| 14 p:first-letter { | |
| 15 font-size: 200%; | |
| 16 } | |
| 17 | |
| 18 .empty-rule { | |
| 19 } | |
| 20 | |
| 21 | |
| 22 Running test: testEditProperty | |
| 23 ==== Style sheet text ==== | |
| 24 * { | |
| 25 box-sizing: border-box; | |
| 26 } | |
| 27 | |
| 28 html, body, div, a { | |
| 29 /* resetting some properties */ | |
| 30 padding: 0; | |
| 31 content: 'EDITED PROPERTY'; | |
| 32 border: 0; | |
| 33 display: flex; /* flex FTW! */ | |
| 34 } | |
| 35 | |
| 36 p:first-letter { | |
| 37 font-size: 200%; | |
| 38 } | |
| 39 | |
| 40 .empty-rule { | |
| 41 } | |
| 42 | |
| 43 | |
| 44 Running test: testBreakingCommentEditProperty | |
| 45 Expected protocol error: SyntaxError The property '/*<--OPENED COMMENT' could no
t be set. | |
| 46 | |
| 47 Running test: testInsertFirstProperty | |
| 48 ==== Style sheet text ==== | |
| 49 * { | |
| 50 box-sizing: border-box; | |
| 51 } | |
| 52 | |
| 53 html, body, div, a { | |
| 54 /* resetting some properties */ | |
| 55 content: 'INSERTED PROPERTY'; | |
| 56 padding: 0; | |
| 57 margin: 0; | |
| 58 border: 0; | |
| 59 display: flex; /* flex FTW! */ | |
| 60 } | |
| 61 | |
| 62 p:first-letter { | |
| 63 font-size: 200%; | |
| 64 } | |
| 65 | |
| 66 .empty-rule { | |
| 67 } | |
| 68 | |
| 69 | |
| 70 Running test: testInsertLastProperty | |
| 71 ==== Style sheet text ==== | |
| 72 * { | |
| 73 box-sizing: border-box; | |
| 74 } | |
| 75 | |
| 76 html, body, div, a { | |
| 77 /* resetting some properties */ | |
| 78 padding: 0; | |
| 79 margin: 0; | |
| 80 border: 0; | |
| 81 display: flex; /* flex FTW! */ | |
| 82 content: 'INSERTED PROPERTY'; | |
| 83 } | |
| 84 | |
| 85 p:first-letter { | |
| 86 font-size: 200%; | |
| 87 } | |
| 88 | |
| 89 .empty-rule { | |
| 90 } | |
| 91 | |
| 92 | |
| 93 Running test: testInsertMultipleProperties | |
| 94 ==== Style sheet text ==== | |
| 95 * { | |
| 96 box-sizing: border-box; | |
| 97 } | |
| 98 | |
| 99 html, body, div, a { | |
| 100 /* resetting some properties */ | |
| 101 padding: 0; | |
| 102 margin: 0; | |
| 103 content: 'INSERTED #1';content: 'INSERTED #2'; | |
| 104 border: 0; | |
| 105 display: flex; /* flex FTW! */ | |
| 106 } | |
| 107 | |
| 108 p:first-letter { | |
| 109 font-size: 200%; | |
| 110 } | |
| 111 | |
| 112 .empty-rule { | |
| 113 } | |
| 114 | |
| 115 | |
| 116 Running test: testInsertPropertyInEmptyRule | |
| 117 ==== Style sheet text ==== | |
| 118 * { | |
| 119 box-sizing: border-box; | |
| 120 } | |
| 121 | |
| 122 html, body, div, a { | |
| 123 /* resetting some properties */ | |
| 124 padding: 0; | |
| 125 margin: 0; | |
| 126 border: 0; | |
| 127 display: flex; /* flex FTW! */ | |
| 128 } | |
| 129 | |
| 130 p:first-letter { | |
| 131 font-size: 200%; | |
| 132 } | |
| 133 | |
| 134 .empty-rule { | |
| 135 content: 'INSERTED PROPERTY'; | |
| 136 } | |
| 137 | |
| 138 | |
| 139 Running test: testInsertPropertyOutsideRule | |
| 140 Expected protocol error: Source range didn't match any existing property source
range nor any property insertion point | |
| 141 | |
| 142 Running test: testInsertBreakingPropertyInLastEmptyRule | |
| 143 Expected protocol error: SyntaxError The property 'content: 'INSERTED PROPERTY'/
*' could not be set. | |
| 144 | |
| 145 Running test: testDisableProperty | |
| 146 ==== Style sheet text ==== | |
| 147 * { | |
| 148 box-sizing: border-box; | |
| 149 } | |
| 150 | |
| 151 html, body, div, a { | |
| 152 /* resetting some properties */ | |
| 153 padding: 0; | |
| 154 /* margin: 0; */ | |
| 155 border: 0; | |
| 156 display: flex; /* flex FTW! */ | |
| 157 } | |
| 158 | |
| 159 p:first-letter { | |
| 160 font-size: 200%; | |
| 161 } | |
| 162 | |
| 163 .empty-rule { | |
| 164 } | |
| 165 | |
| 166 | |
| 167 Running test: testRedo | |
| 168 ==== Style sheet text ==== | |
| 169 * { | |
| 170 box-sizing: border-box; | |
| 171 } | |
| 172 | |
| 173 html, body, div, a { | |
| 174 /* resetting some properties */ | |
| 175 padding: 0; | |
| 176 margin: 0; | |
| 177 border: 0; | |
| 178 display: flex; /* flex FTW! */ | |
| 179 align-items: center; | |
| 180 } | |
| 181 | |
| 182 p:first-letter { | |
| 183 font-size: 200%; | |
| 184 } | |
| 185 | |
| 186 .empty-rule { | |
| 187 } | |
| 188 | |
| 189 ==== Style sheet text ==== | |
| 190 * { | |
| 191 box-sizing: border-box; | |
| 192 } | |
| 193 | |
| 194 html, body, div, a { | |
| 195 /* resetting some properties */ | |
| 196 padding: 0; | |
| 197 margin: 0; | |
| 198 border: 0; | |
| 199 display: flex; /* flex FTW! */ | |
| 200 align-items: center; | |
| 201 } | |
| 202 | |
| 203 p:first-letter { | |
| 204 font-size: 200%; | |
| 205 } | |
| 206 | |
| 207 .empty-rule { | |
| 208 } | |
| 209 | |
| 210 | |
| 211 Running test: testInvalidParameters | |
| 212 Expected protocol error: range.startLine must be a non-negative integer | |
| 213 | |
| 214 Running test: testNegativeRangeParameters | |
| 215 Expected protocol error: range.startLine must be a non-negative integer | |
| 216 | |
| 217 Running test: testStartLineOutOfBounds | |
| 218 Expected protocol error: Specified range is out of bounds | |
| 219 | |
| 220 Running test: testEndLineOutOfBounds | |
| 221 Expected protocol error: Specified range is out of bounds | |
| 222 | |
| 223 Running test: testStartColumnBeyondLastLineCharacter | |
| 224 Expected protocol error: Specified range is out of bounds | |
| 225 | |
| 226 Running test: testEndColumnBeyondLastLineCharacter | |
| 227 Expected protocol error: Specified range is out of bounds | |
| 228 | |
| 229 Running test: testInsertBeyondLastCharacterOfLastLine | |
| 230 Expected protocol error: Specified range is out of bounds | |
| 231 | |
| 232 Running test: testReversedRange | |
| 233 Expected protocol error: Range start must not succeed its end | |
| 234 | |
| OLD | NEW |