| OLD | NEW |
| 1 Verify that mapping is not valid for misaligned sources. | 1 Verify that mapping is not valid for misaligned sources. |
| 2 | 2 |
| 3 INITIAL MODELS | 3 INITIAL MODELS |
| 4 ===== test-edit-insert-property.css ===== | 4 ===== test-edit-insert-property.css ===== |
| 5 .box1.{ | 5 .box1.{ |
| 6 ..color:.red; | 6 ..color:.red; |
| 7 ..margin:.10px;.} | 7 ..margin:.10px;.} |
| 8 | 8 |
| 9 .box2.{ | 9 .box2.{ |
| 10 ..color:.red; | 10 ..color:.red; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 ....font-family:."arial"; | 33 ....font-family:."arial"; |
| 34 } | 34 } |
| 35 | 35 |
| 36 | 36 |
| 37 ------------------------- TEST: testPrependProperty -------------------------- | 37 ------------------------- TEST: testPrependProperty -------------------------- |
| 38 | 38 |
| 39 Edits: | 39 Edits: |
| 40 {1, 2, 1, 7} 'color' => 'border: 1px solid black;color' | 40 {1, 2, 1, 7} 'color' => 'border: 1px solid black;color' |
| 41 ===== test-edit-insert-property.css ===== | 41 ===== test-edit-insert-property.css ===== |
| 42 .box1.{ | 42 .box1.{ |
| 43 ..border:..1px.solid.black; | 43 ..border:.1px.solid.black; |
| 44 ..color:.red; | 44 ..color:.red; |
| 45 ..margin:.10px;.} | 45 ..margin:.10px;.} |
| 46 | 46 |
| 47 .box2.{ | 47 .box2.{ |
| 48 ..border:..1px.solid.black; | 48 ..border:.1px.solid.black; |
| 49 ..color:.red; | 49 ..color:.red; |
| 50 ..margin:.10px;.} | 50 ..margin:.10px;.} |
| 51 | 51 |
| 52 .box3.{ | 52 .box3.{ |
| 53 ..border:..1px.solid.black; | 53 ..border:.1px.solid.black; |
| 54 ..color:.red; | 54 ..color:.red; |
| 55 ..margin:.10px;.} | 55 ..margin:.10px;.} |
| 56 | 56 |
| 57 body.{ | 57 body.{ |
| 58 ..font-family:."arial";.} | 58 ..font-family:."arial";.} |
| 59 | 59 |
| 60 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ | 60 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ |
| 61 | 61 |
| 62 ===== test-edit-insert-property.scss ===== | 62 ===== test-edit-insert-property.scss ===== |
| 63 $color:.red; | 63 $color:.red; |
| 64 | 64 |
| 65 @for.$i.from.1.through.3.{ | 65 @for.$i.from.1.through.3.{ |
| 66 .....box#{$i}.{ | 66 .....box#{$i}.{ |
| 67 ........border:..1px.solid.black; | 67 ........border:.1px.solid.black; |
| 68 ........color:.$color; | 68 ........color:.$color; |
| 69 ........margin:.10px; | 69 ........margin:.10px; |
| 70 ....} | 70 ....} |
| 71 } | 71 } |
| 72 | 72 |
| 73 body.{ | 73 body.{ |
| 74 ....font-family:."arial"; | 74 ....font-family:."arial"; |
| 75 } | 75 } |
| 76 | 76 |
| 77 | 77 |
| 78 ----------------------- TEST: testInsertMiddleProperty ----------------------- | 78 ----------------------- TEST: testInsertMiddleProperty ----------------------- |
| 79 | 79 |
| 80 Edits: | 80 Edits: |
| 81 {1, 9, 1, 13} 'red;' => 'red;border: 1px solid black;' | 81 {1, 9, 1, 13} 'red;' => 'red;border: 1px solid black;' |
| 82 ===== test-edit-insert-property.css ===== | 82 ===== test-edit-insert-property.css ===== |
| 83 .box1.{ | 83 .box1.{ |
| 84 ..color:.red; | 84 ..color:.red; |
| 85 ..border:..1px.solid.black; | 85 ..border:.1px.solid.black; |
| 86 ..margin:.10px;.} | 86 ..margin:.10px;.} |
| 87 | 87 |
| 88 .box2.{ | 88 .box2.{ |
| 89 ..color:.red; | 89 ..color:.red; |
| 90 ..border:..1px.solid.black; | 90 ..border:.1px.solid.black; |
| 91 ..margin:.10px;.} | 91 ..margin:.10px;.} |
| 92 | 92 |
| 93 .box3.{ | 93 .box3.{ |
| 94 ..color:.red; | 94 ..color:.red; |
| 95 ..border:..1px.solid.black; | 95 ..border:.1px.solid.black; |
| 96 ..margin:.10px;.} | 96 ..margin:.10px;.} |
| 97 | 97 |
| 98 body.{ | 98 body.{ |
| 99 ..font-family:."arial";.} | 99 ..font-family:."arial";.} |
| 100 | 100 |
| 101 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ | 101 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ |
| 102 | 102 |
| 103 ===== test-edit-insert-property.scss ===== | 103 ===== test-edit-insert-property.scss ===== |
| 104 $color:.red; | 104 $color:.red; |
| 105 | 105 |
| 106 @for.$i.from.1.through.3.{ | 106 @for.$i.from.1.through.3.{ |
| 107 .....box#{$i}.{ | 107 .....box#{$i}.{ |
| 108 ........color:.$color; | 108 ........color:.$color; |
| 109 ........border:..1px.solid.black; | 109 ........border:.1px.solid.black; |
| 110 ........margin:.10px; | 110 ........margin:.10px; |
| 111 ....} | 111 ....} |
| 112 } | 112 } |
| 113 | 113 |
| 114 body.{ | 114 body.{ |
| 115 ....font-family:."arial"; | 115 ....font-family:."arial"; |
| 116 } | 116 } |
| 117 | 117 |
| 118 | 118 |
| 119 ---------------------- TEST: testInsertTrailingProperty ---------------------- | 119 ---------------------- TEST: testInsertTrailingProperty ---------------------- |
| 120 | 120 |
| 121 Edits: | 121 Edits: |
| 122 {2, 10, 2, 15} '10px;' => '10px;border: 1px solid black;' | 122 {2, 10, 2, 15} '10px;' => '10px;border: 1px solid black;' |
| 123 ===== test-edit-insert-property.css ===== | 123 ===== test-edit-insert-property.css ===== |
| 124 .box1.{ | 124 .box1.{ |
| 125 ..color:.red; | 125 ..color:.red; |
| 126 ..margin:.10px; | 126 ..margin:.10px; |
| 127 ..border:..1px.solid.black;.} | 127 ..border:.1px.solid.black;.} |
| 128 | 128 |
| 129 .box2.{ | 129 .box2.{ |
| 130 ..color:.red; | 130 ..color:.red; |
| 131 ..margin:.10px; | 131 ..margin:.10px; |
| 132 ..border:..1px.solid.black;.} | 132 ..border:.1px.solid.black;.} |
| 133 | 133 |
| 134 .box3.{ | 134 .box3.{ |
| 135 ..color:.red; | 135 ..color:.red; |
| 136 ..margin:.10px; | 136 ..margin:.10px; |
| 137 ..border:..1px.solid.black;.} | 137 ..border:.1px.solid.black;.} |
| 138 | 138 |
| 139 body.{ | 139 body.{ |
| 140 ..font-family:."arial";.} | 140 ..font-family:."arial";.} |
| 141 | 141 |
| 142 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ | 142 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ |
| 143 | 143 |
| 144 ===== test-edit-insert-property.scss ===== | 144 ===== test-edit-insert-property.scss ===== |
| 145 $color:.red; | 145 $color:.red; |
| 146 | 146 |
| 147 @for.$i.from.1.through.3.{ | 147 @for.$i.from.1.through.3.{ |
| 148 .....box#{$i}.{ | 148 .....box#{$i}.{ |
| 149 ........color:.$color; | 149 ........color:.$color; |
| 150 ........margin:.10px; | 150 ........margin:.10px; |
| 151 ........border:..1px.solid.black; | 151 ........border:.1px.solid.black; |
| 152 ....} | 152 ....} |
| 153 } | 153 } |
| 154 | 154 |
| 155 body.{ | 155 body.{ |
| 156 ....font-family:."arial"; | 156 ....font-family:."arial"; |
| 157 } | 157 } |
| 158 | 158 |
| 159 | 159 |
| 160 -------------------- TEST: testInsertDuplicateProperties --------------------- | 160 -------------------- TEST: testInsertDuplicateProperties --------------------- |
| 161 | 161 |
| 162 Edits: | 162 Edits: |
| 163 {1, 2, 1, 7} 'color' => 'border: 1px solid black;color' | 163 {1, 2, 1, 7} 'color' => 'border: 1px solid black;color' |
| 164 {9, 2, 9, 7} 'color' => 'border: 1px solid black;color' | 164 {9, 2, 9, 7} 'color' => 'border: 1px solid black;color' |
| 165 ===== test-edit-insert-property.css ===== | 165 ===== test-edit-insert-property.css ===== |
| 166 .box1.{ | 166 .box1.{ |
| 167 ..border:..1px.solid.black; | 167 ..border:.1px.solid.black; |
| 168 ..color:.red; | 168 ..color:.red; |
| 169 ..margin:.10px;.} | 169 ..margin:.10px;.} |
| 170 | 170 |
| 171 .box2.{ | 171 .box2.{ |
| 172 ..border:..1px.solid.black; | 172 ..border:.1px.solid.black; |
| 173 ..color:.red; | 173 ..color:.red; |
| 174 ..margin:.10px;.} | 174 ..margin:.10px;.} |
| 175 | 175 |
| 176 .box3.{ | 176 .box3.{ |
| 177 ..border:..1px.solid.black; | 177 ..border:.1px.solid.black; |
| 178 ..color:.red; | 178 ..color:.red; |
| 179 ..margin:.10px;.} | 179 ..margin:.10px;.} |
| 180 | 180 |
| 181 body.{ | 181 body.{ |
| 182 ..font-family:."arial";.} | 182 ..font-family:."arial";.} |
| 183 | 183 |
| 184 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ | 184 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ |
| 185 | 185 |
| 186 ===== test-edit-insert-property.scss ===== | 186 ===== test-edit-insert-property.scss ===== |
| 187 $color:.red; | 187 $color:.red; |
| 188 | 188 |
| 189 @for.$i.from.1.through.3.{ | 189 @for.$i.from.1.through.3.{ |
| 190 .....box#{$i}.{ | 190 .....box#{$i}.{ |
| 191 ........border:..1px.solid.black; | 191 ........border:.1px.solid.black; |
| 192 ........color:.$color; | 192 ........color:.$color; |
| 193 ........margin:.10px; | 193 ........margin:.10px; |
| 194 ....} | 194 ....} |
| 195 } | 195 } |
| 196 | 196 |
| 197 body.{ | 197 body.{ |
| 198 ....font-family:."arial"; | 198 ....font-family:."arial"; |
| 199 } | 199 } |
| 200 | 200 |
| 201 | 201 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 ------------- TEST: testInsertDifferentPropertiesDifferentRules -------------- | 292 ------------- TEST: testInsertDifferentPropertiesDifferentRules -------------- |
| 293 | 293 |
| 294 Edits: | 294 Edits: |
| 295 {1, 2, 1, 7} 'color' => 'margin:10px;color' | 295 {1, 2, 1, 7} 'color' => 'margin:10px;color' |
| 296 {10, 10, 10, 15} '10px;' => '10px;border: 1px solid black;' | 296 {10, 10, 10, 15} '10px;' => '10px;border: 1px solid black;' |
| 297 ===== test-edit-insert-property.css ===== | 297 ===== test-edit-insert-property.css ===== |
| 298 .box1.{ | 298 .box1.{ |
| 299 ..margin:.10px; | 299 ..margin:.10px; |
| 300 ..color:.red; | 300 ..color:.red; |
| 301 ..margin:.10px; | 301 ..margin:.10px; |
| 302 ..border:..1px.solid.black;.} | 302 ..border:.1px.solid.black;.} |
| 303 | 303 |
| 304 .box2.{ | 304 .box2.{ |
| 305 ..margin:.10px; | 305 ..margin:.10px; |
| 306 ..color:.red; | 306 ..color:.red; |
| 307 ..margin:.10px; | 307 ..margin:.10px; |
| 308 ..border:..1px.solid.black;.} | 308 ..border:.1px.solid.black;.} |
| 309 | 309 |
| 310 .box3.{ | 310 .box3.{ |
| 311 ..margin:.10px; | 311 ..margin:.10px; |
| 312 ..color:.red; | 312 ..color:.red; |
| 313 ..margin:.10px; | 313 ..margin:.10px; |
| 314 ..border:..1px.solid.black;.} | 314 ..border:.1px.solid.black;.} |
| 315 | 315 |
| 316 body.{ | 316 body.{ |
| 317 ..font-family:."arial";.} | 317 ..font-family:."arial";.} |
| 318 | 318 |
| 319 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ | 319 /*#.sourceMappingURL=test-edit-insert-property.css.map.*/ |
| 320 | 320 |
| 321 ===== test-edit-insert-property.scss ===== | 321 ===== test-edit-insert-property.scss ===== |
| 322 $color:.red; | 322 $color:.red; |
| 323 | 323 |
| 324 @for.$i.from.1.through.3.{ | 324 @for.$i.from.1.through.3.{ |
| 325 .....box#{$i}.{ | 325 .....box#{$i}.{ |
| 326 ........margin:.10px; | 326 ........margin:.10px; |
| 327 ........color:.$color; | 327 ........color:.$color; |
| 328 ........margin:.10px; | 328 ........margin:.10px; |
| 329 ........border:..1px.solid.black; | 329 ........border:.1px.solid.black; |
| 330 ....} | 330 ....} |
| 331 } | 331 } |
| 332 | 332 |
| 333 body.{ | 333 body.{ |
| 334 ....font-family:."arial"; | 334 ....font-family:."arial"; |
| 335 } | 335 } |
| 336 | 336 |
| 337 | 337 |
| OLD | NEW |