| OLD | NEW |
| (Empty) |
| 1 Tests undo/redo operations in the editor model. | |
| 2 | |
| 3 | |
| 4 Running: testUndoRedoTab | |
| 5 Text before edit: | |
| 6 1 | |
| 7 2 | |
| 8 3 | |
| 9 | |
| 10 Text after edit: | |
| 11 1 | |
| 12 |2 | |
| 13 3 | |
| 14 | |
| 15 Text after undo: | |
| 16 1 | |
| 17 |2 | |
| 18 3 | |
| 19 | |
| 20 Text after redo: | |
| 21 1 | |
| 22 |2 | |
| 23 3 | |
| 24 | |
| 25 | |
| 26 Running: testConsecutiveCharactersAndNewLines | |
| 27 Text before edit: | |
| 28 function foo() | |
| 29 { | |
| 30 | |
| 31 } | |
| 32 | |
| 33 Text after edit: | |
| 34 function foo() | |
| 35 { | |
| 36 bar(); | |
| 37 baz(); | |
| 38 foo();| | |
| 39 } | |
| 40 | |
| 41 Text after first undo: | |
| 42 function foo() | |
| 43 { | |
| 44 bar(); | |
| 45 baz();| | |
| 46 } | |
| 47 | |
| 48 Text after second undo: | |
| 49 function foo() | |
| 50 { | |
| 51 bar();| | |
| 52 } | |
| 53 | |
| 54 Text after third undo: | |
| 55 function foo() | |
| 56 { | |
| 57 | | |
| 58 } | |
| 59 | |
| 60 Text after first redo: | |
| 61 function foo() | |
| 62 { | |
| 63 bar();| | |
| 64 } | |
| 65 | |
| 66 Text after second redo: | |
| 67 function foo() | |
| 68 { | |
| 69 bar(); | |
| 70 baz();| | |
| 71 } | |
| 72 | |
| 73 Text after third redo: | |
| 74 function foo() | |
| 75 { | |
| 76 bar(); | |
| 77 baz(); | |
| 78 foo();| | |
| 79 } | |
| 80 | |
| 81 | |
| 82 Running: testEditRangeWithTheSameTextAsOriginal | |
| 83 Text before edit: | |
| 84 function foo() | |
| 85 { | |
| 86 | |
| 87 } | |
| 88 | |
| 89 Text after edit: | |
| 90 function foo() | |
| 91 { | |
| 92 bar(); | |
| 93 baz(); | |
| 94 foo();| | |
| 95 } | |
| 96 | |
| 97 Text after paste of the same text: | |
| 98 function foo() | |
| 99 { | |
| 100 bar(); | |
| 101 baz(); | |
| 102 foo();| | |
| 103 } | |
| 104 | |
| 105 Text after first undo: | |
| 106 function foo() | |
| 107 { | |
| 108 bar(); | |
| 109 > baz(); | |
| 110 < foo(); | |
| 111 } | |
| 112 | |
| 113 Text after second undo: | |
| 114 function foo() | |
| 115 { | |
| 116 bar(); | |
| 117 baz();| | |
| 118 } | |
| 119 | |
| 120 Text after first redo: | |
| 121 function foo() | |
| 122 { | |
| 123 bar(); | |
| 124 baz(); | |
| 125 foo();| | |
| 126 } | |
| 127 | |
| 128 Text after second redo: | |
| 129 function foo() | |
| 130 { | |
| 131 bar(); | |
| 132 baz(); | |
| 133 | foo(); | |
| 134 } | |
| 135 | |
| 136 | |
| 137 Running: testDelete | |
| 138 Text before edit: | |
| 139 function foo() | |
| 140 { | |
| 141 | |
| 142 } | |
| 143 | |
| 144 Text after edit: | |
| 145 function foo() | |
| 146 { | |
| 147 bar(); | |
| 148 baz(); | |
| 149 foo();| | |
| 150 } | |
| 151 | |
| 152 Text after deletes: | |
| 153 function foo() | |
| 154 { | |
| 155 | | |
| 156 } | |
| 157 | |
| 158 Text after first undo: | |
| 159 function foo() | |
| 160 { | |
| 161 | bar(); | |
| 162 baz(); | |
| 163 foo(); | |
| 164 } | |
| 165 | |
| 166 Text after second undo: | |
| 167 function foo() | |
| 168 { | |
| 169 bar(); | |
| 170 baz();| | |
| 171 } | |
| 172 | |
| 173 Text after first redo: | |
| 174 function foo() | |
| 175 { | |
| 176 bar(); | |
| 177 baz(); | |
| 178 foo();| | |
| 179 } | |
| 180 | |
| 181 Text after second redo: | |
| 182 function foo() | |
| 183 { | |
| 184 | | |
| 185 } | |
| 186 | |
| 187 | |
| 188 Running: testBackspace | |
| 189 Text before edit: | |
| 190 function foo() | |
| 191 { | |
| 192 | |
| 193 } | |
| 194 | |
| 195 Text after edit: | |
| 196 function foo() | |
| 197 { | |
| 198 bar(); | |
| 199 baz(); | |
| 200 foo();| | |
| 201 } | |
| 202 | |
| 203 Text after backspaces: | |
| 204 function foo() | |
| 205 { | |
| 206 | | |
| 207 } | |
| 208 | |
| 209 Text after first undo: | |
| 210 function foo() | |
| 211 { | |
| 212 bar(); | |
| 213 baz(); | |
| 214 foo();| | |
| 215 } | |
| 216 | |
| 217 Text after second undo: | |
| 218 function foo() | |
| 219 { | |
| 220 bar(); | |
| 221 baz();| | |
| 222 } | |
| 223 | |
| 224 Text after first redo: | |
| 225 function foo() | |
| 226 { | |
| 227 bar(); | |
| 228 baz(); | |
| 229 foo();| | |
| 230 } | |
| 231 | |
| 232 Text after second redo: | |
| 233 function foo() | |
| 234 { | |
| 235 | | |
| 236 } | |
| 237 | |
| 238 | |
| 239 Running: testBackspaceAndDeleteInDifferentLines | |
| 240 Text before edit: | |
| 241 function foo() | |
| 242 { | |
| 243 | |
| 244 } | |
| 245 | |
| 246 Text after edit: | |
| 247 function foo() | |
| 248 { | |
| 249 bar(); | |
| 250 baz(); | |
| 251 foo();| | |
| 252 } | |
| 253 | |
| 254 Text after backspace: | |
| 255 function foo() | |
| 256 { | |
| 257 bar(); | |
| 258 baz(); | |
| 259 foo()| | |
| 260 } | |
| 261 | |
| 262 Text after delete: | |
| 263 function foo() | |
| 264 { | |
| 265 | bar(); | |
| 266 baz(); | |
| 267 foo() | |
| 268 } | |
| 269 | |
| 270 Text after first undo: | |
| 271 function foo() | |
| 272 { | |
| 273 | bar(); | |
| 274 baz(); | |
| 275 foo() | |
| 276 } | |
| 277 | |
| 278 Text after second undo: | |
| 279 function foo() | |
| 280 { | |
| 281 bar(); | |
| 282 baz(); | |
| 283 foo();| | |
| 284 } | |
| 285 | |
| 286 Text after third undo: | |
| 287 function foo() | |
| 288 { | |
| 289 bar(); | |
| 290 baz();| | |
| 291 } | |
| 292 | |
| 293 Text after first redo: | |
| 294 function foo() | |
| 295 { | |
| 296 bar(); | |
| 297 baz(); | |
| 298 foo();| | |
| 299 } | |
| 300 | |
| 301 Text after second redo: | |
| 302 function foo() | |
| 303 { | |
| 304 bar(); | |
| 305 baz(); | |
| 306 foo()| | |
| 307 } | |
| 308 | |
| 309 Text after third redo: | |
| 310 function foo() | |
| 311 { | |
| 312 | bar(); | |
| 313 baz(); | |
| 314 foo() | |
| 315 } | |
| 316 | |
| 317 | |
| 318 Running: testPasteSeveralTimes | |
| 319 Text before edit: | |
| 320 function foo() | |
| 321 { | |
| 322 | |
| 323 } | |
| 324 | |
| 325 Text after edit: | |
| 326 function foo() | |
| 327 { | |
| 328 bar(); | |
| 329 baz(); | |
| 330 foo();| | |
| 331 } | |
| 332 | |
| 333 Text after first paste: | |
| 334 function foo() | |
| 335 { | |
| 336 bar(); | |
| 337 baz(); | |
| 338 foo();42| | |
| 339 } | |
| 340 | |
| 341 Text after second paste: | |
| 342 function foo() | |
| 343 { | |
| 344 bar(); | |
| 345 baz(); | |
| 346 foo();4242| | |
| 347 } | |
| 348 | |
| 349 Text after first undo: | |
| 350 function foo() | |
| 351 { | |
| 352 bar(); | |
| 353 baz(); | |
| 354 foo();42| | |
| 355 } | |
| 356 | |
| 357 Text after second undo: | |
| 358 function foo() | |
| 359 { | |
| 360 bar(); | |
| 361 baz(); | |
| 362 foo();| | |
| 363 } | |
| 364 | |
| 365 Text after third undo: | |
| 366 function foo() | |
| 367 { | |
| 368 bar(); | |
| 369 baz();| | |
| 370 } | |
| 371 | |
| 372 Text after first redo: | |
| 373 function foo() | |
| 374 { | |
| 375 bar(); | |
| 376 baz(); | |
| 377 foo();| | |
| 378 } | |
| 379 | |
| 380 Text after second redo: | |
| 381 function foo() | |
| 382 { | |
| 383 bar(); | |
| 384 baz(); | |
| 385 foo();42| | |
| 386 } | |
| 387 | |
| 388 Text after third redo: | |
| 389 function foo() | |
| 390 { | |
| 391 bar(); | |
| 392 baz(); | |
| 393 foo();4242| | |
| 394 } | |
| 395 | |
| 396 | |
| 397 Running: testSelectionAfterUndoRedo | |
| 398 Text before edit: | |
| 399 function foo() | |
| 400 { | |
| 401 | |
| 402 } | |
| 403 | |
| 404 Text after backspace: | |
| 405 function foo() | |
| 406 {| | |
| 407 } | |
| 408 | |
| 409 Text after first undo: | |
| 410 function foo() | |
| 411 { | |
| 412 | | |
| 413 } | |
| 414 | |
| 415 Text after first redo: | |
| 416 function foo() | |
| 417 {| | |
| 418 } | |
| 419 | |
| 420 Text after second undo: | |
| 421 function foo() | |
| 422 {> | |
| 423 < | |
| 424 } | |
| 425 | |
| 426 Text after deleting selection: | |
| 427 function foo() | |
| 428 {| | |
| 429 } | |
| 430 | |
| 431 Text after first undo: | |
| 432 function foo() | |
| 433 {> | |
| 434 < | |
| 435 } | |
| 436 | |
| 437 Text after first redo: | |
| 438 function foo() | |
| 439 {| | |
| 440 } | |
| 441 | |
| 442 Text after second undo: | |
| 443 function foo() | |
| 444 {> | |
| 445 < | |
| 446 } | |
| 447 | |
| 448 | |
| OLD | NEW |