| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // Library tag to be able to run in html test framework. | 5 // Library tag to be able to run in html test framework. |
| 6 library byte_array_test; | 6 library byte_array_test; |
| 7 | 7 |
| 8 import "package:expect/expect.dart"; | 8 import "package:expect/expect.dart"; |
| 9 import 'dart:typeddata'; | 9 import 'dart:typeddata'; |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 Expect.throws(() { array[10]; }, | 24 Expect.throws(() { array[10]; }, |
| 25 (e) { return e is RangeError; }); | 25 (e) { return e is RangeError; }); |
| 26 Expect.throws(() { array[10] = 0; }, | 26 Expect.throws(() { array[10] = 0; }, |
| 27 (e) { return e is RangeError; }); | 27 (e) { return e is RangeError; }); |
| 28 Expect.throws(() { array.add(0); }, | 28 Expect.throws(() { array.add(0); }, |
| 29 (e) { return e is UnsupportedError; }); | 29 (e) { return e is UnsupportedError; }); |
| 30 Expect.throws(() { array.addAll([0]); }, | 30 Expect.throws(() { array.addAll([0]); }, |
| 31 (e) { return e is UnsupportedError; }); | 31 (e) { return e is UnsupportedError; }); |
| 32 Expect.throws(() { array.clear(); }, | 32 Expect.throws(() { array.clear(); }, |
| 33 (e) { return e is UnsupportedError; }); | 33 (e) { return e is UnsupportedError; }); |
| 34 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 35 (e) { return e is UnsupportedError; }); | |
| 36 Expect.throws(() { array.length = 0; }, | 34 Expect.throws(() { array.length = 0; }, |
| 37 (e) { return e is UnsupportedError; }); | 35 (e) { return e is UnsupportedError; }); |
| 38 Expect.throws(() { array.removeLast(); }, | 36 Expect.throws(() { array.removeLast(); }, |
| 39 (e) { return e is UnsupportedError; }); | 37 (e) { return e is UnsupportedError; }); |
| 40 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 38 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 41 (e) { return e is UnsupportedError; }); | 39 (e) { return e is UnsupportedError; }); |
| 42 for (int i = 0; i < array.length; ++i) { | 40 for (int i = 0; i < array.length; ++i) { |
| 43 array[i] = 1 + i; | 41 array[i] = 1 + i; |
| 44 } | 42 } |
| 45 Expect.listEquals([1, 2, 3, 4, 5, | 43 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 Expect.throws(() { array[10]; }, | 114 Expect.throws(() { array[10]; }, |
| 117 (e) { return e is RangeError; }); | 115 (e) { return e is RangeError; }); |
| 118 Expect.throws(() { array[10] = 0; }, | 116 Expect.throws(() { array[10] = 0; }, |
| 119 (e) { return e is RangeError; }); | 117 (e) { return e is RangeError; }); |
| 120 Expect.throws(() { array.add(0); }, | 118 Expect.throws(() { array.add(0); }, |
| 121 (e) { return e is UnsupportedError; }); | 119 (e) { return e is UnsupportedError; }); |
| 122 Expect.throws(() { array.addAll([0]); }, | 120 Expect.throws(() { array.addAll([0]); }, |
| 123 (e) { return e is UnsupportedError; }); | 121 (e) { return e is UnsupportedError; }); |
| 124 Expect.throws(() { array.clear(); }, | 122 Expect.throws(() { array.clear(); }, |
| 125 (e) { return e is UnsupportedError; }); | 123 (e) { return e is UnsupportedError; }); |
| 126 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 127 (e) { return e is UnsupportedError; }); | |
| 128 Expect.throws(() { array.length = 0; }, | 124 Expect.throws(() { array.length = 0; }, |
| 129 (e) { return e is UnsupportedError; }); | 125 (e) { return e is UnsupportedError; }); |
| 130 Expect.throws(() { array.removeLast(); }, | 126 Expect.throws(() { array.removeLast(); }, |
| 131 (e) { return e is UnsupportedError; }); | 127 (e) { return e is UnsupportedError; }); |
| 132 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 128 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 133 (e) { return e is UnsupportedError; }); | 129 (e) { return e is UnsupportedError; }); |
| 134 for (int i = 0; i < array.length; ++i) { | 130 for (int i = 0; i < array.length; ++i) { |
| 135 array[i] = 1 + i; | 131 array[i] = 1 + i; |
| 136 } | 132 } |
| 137 Expect.listEquals([1, 2, 3, 4, 5, | 133 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 Expect.throws(() { array[10]; }, | 193 Expect.throws(() { array[10]; }, |
| 198 (e) { return e is RangeError; }); | 194 (e) { return e is RangeError; }); |
| 199 Expect.throws(() { array[10] = 0; }, | 195 Expect.throws(() { array[10] = 0; }, |
| 200 (e) { return e is RangeError; }); | 196 (e) { return e is RangeError; }); |
| 201 Expect.throws(() { array.add(0); }, | 197 Expect.throws(() { array.add(0); }, |
| 202 (e) { return e is UnsupportedError; }); | 198 (e) { return e is UnsupportedError; }); |
| 203 Expect.throws(() { array.addAll([0]); }, | 199 Expect.throws(() { array.addAll([0]); }, |
| 204 (e) { return e is UnsupportedError; }); | 200 (e) { return e is UnsupportedError; }); |
| 205 Expect.throws(() { array.clear(); }, | 201 Expect.throws(() { array.clear(); }, |
| 206 (e) { return e is UnsupportedError; }); | 202 (e) { return e is UnsupportedError; }); |
| 207 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 208 (e) { return e is UnsupportedError; }); | |
| 209 Expect.throws(() { array.length = 0; }, | 203 Expect.throws(() { array.length = 0; }, |
| 210 (e) { return e is UnsupportedError; }); | 204 (e) { return e is UnsupportedError; }); |
| 211 Expect.throws(() { array.removeLast(); }, | 205 Expect.throws(() { array.removeLast(); }, |
| 212 (e) { return e is UnsupportedError; }); | 206 (e) { return e is UnsupportedError; }); |
| 213 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 207 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 214 (e) { return e is UnsupportedError; }); | 208 (e) { return e is UnsupportedError; }); |
| 215 for (int i = 0; i < array.length; ++i) { | 209 for (int i = 0; i < array.length; ++i) { |
| 216 array[i] = -1 + i; | 210 array[i] = -1 + i; |
| 217 } | 211 } |
| 218 Expect.listEquals([0, 0, 1, 2, 3, 4, 5, 6, 7, 8], array); | 212 Expect.listEquals([0, 0, 1, 2, 3, 4, 5, 6, 7, 8], array); |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 Expect.throws(() { array[10]; }, | 268 Expect.throws(() { array[10]; }, |
| 275 (e) { return e is RangeError; }); | 269 (e) { return e is RangeError; }); |
| 276 Expect.throws(() { array[10] = 0; }, | 270 Expect.throws(() { array[10] = 0; }, |
| 277 (e) { return e is RangeError; }); | 271 (e) { return e is RangeError; }); |
| 278 Expect.throws(() { array.add(0); }, | 272 Expect.throws(() { array.add(0); }, |
| 279 (e) { return e is UnsupportedError; }); | 273 (e) { return e is UnsupportedError; }); |
| 280 Expect.throws(() { array.addAll([0]); }, | 274 Expect.throws(() { array.addAll([0]); }, |
| 281 (e) { return e is UnsupportedError; }); | 275 (e) { return e is UnsupportedError; }); |
| 282 Expect.throws(() { array.clear(); }, | 276 Expect.throws(() { array.clear(); }, |
| 283 (e) { return e is UnsupportedError; }); | 277 (e) { return e is UnsupportedError; }); |
| 284 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 285 (e) { return e is UnsupportedError; }); | |
| 286 Expect.throws(() { array.length = 0; }, | 278 Expect.throws(() { array.length = 0; }, |
| 287 (e) { return e is UnsupportedError; }); | 279 (e) { return e is UnsupportedError; }); |
| 288 Expect.throws(() { array.removeLast(); }, | 280 Expect.throws(() { array.removeLast(); }, |
| 289 (e) { return e is UnsupportedError; }); | 281 (e) { return e is UnsupportedError; }); |
| 290 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 282 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 291 (e) { return e is UnsupportedError; }); | 283 (e) { return e is UnsupportedError; }); |
| 292 for (int i = 0; i < array.length; ++i) { | 284 for (int i = 0; i < array.length; ++i) { |
| 293 array[i] = 1 + i; | 285 array[i] = 1 + i; |
| 294 } | 286 } |
| 295 Expect.listEquals([1, 2, 3, 4, 5, | 287 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 Expect.throws(() { array[10]; }, | 359 Expect.throws(() { array[10]; }, |
| 368 (e) { return e is RangeError; }); | 360 (e) { return e is RangeError; }); |
| 369 Expect.throws(() { array[10] = 0; }, | 361 Expect.throws(() { array[10] = 0; }, |
| 370 (e) { return e is RangeError; }); | 362 (e) { return e is RangeError; }); |
| 371 Expect.throws(() { array.add(0); }, | 363 Expect.throws(() { array.add(0); }, |
| 372 (e) { return e is UnsupportedError; }); | 364 (e) { return e is UnsupportedError; }); |
| 373 Expect.throws(() { array.addAll([0]); }, | 365 Expect.throws(() { array.addAll([0]); }, |
| 374 (e) { return e is UnsupportedError; }); | 366 (e) { return e is UnsupportedError; }); |
| 375 Expect.throws(() { array.clear(); }, | 367 Expect.throws(() { array.clear(); }, |
| 376 (e) { return e is UnsupportedError; }); | 368 (e) { return e is UnsupportedError; }); |
| 377 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 378 (e) { return e is UnsupportedError; }); | |
| 379 Expect.throws(() { array.length = 0; }, | 369 Expect.throws(() { array.length = 0; }, |
| 380 (e) { return e is UnsupportedError; }); | 370 (e) { return e is UnsupportedError; }); |
| 381 Expect.throws(() { array.removeLast(); }, | 371 Expect.throws(() { array.removeLast(); }, |
| 382 (e) { return e is UnsupportedError; }); | 372 (e) { return e is UnsupportedError; }); |
| 383 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 373 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 384 (e) { return e is UnsupportedError; }); | 374 (e) { return e is UnsupportedError; }); |
| 385 for (int i = 0; i < array.length; ++i) { | 375 for (int i = 0; i < array.length; ++i) { |
| 386 array[i] = 1 + i; | 376 array[i] = 1 + i; |
| 387 } | 377 } |
| 388 Expect.listEquals([1, 2, 3, 4, 5, | 378 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 Expect.throws(() { array[10]; }, | 438 Expect.throws(() { array[10]; }, |
| 449 (e) { return e is RangeError; }); | 439 (e) { return e is RangeError; }); |
| 450 Expect.throws(() { array[10] = 0; }, | 440 Expect.throws(() { array[10] = 0; }, |
| 451 (e) { return e is RangeError; }); | 441 (e) { return e is RangeError; }); |
| 452 Expect.throws(() { array.add(0); }, | 442 Expect.throws(() { array.add(0); }, |
| 453 (e) { return e is UnsupportedError; }); | 443 (e) { return e is UnsupportedError; }); |
| 454 Expect.throws(() { array.addAll([0]); }, | 444 Expect.throws(() { array.addAll([0]); }, |
| 455 (e) { return e is UnsupportedError; }); | 445 (e) { return e is UnsupportedError; }); |
| 456 Expect.throws(() { array.clear(); }, | 446 Expect.throws(() { array.clear(); }, |
| 457 (e) { return e is UnsupportedError; }); | 447 (e) { return e is UnsupportedError; }); |
| 458 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 459 (e) { return e is UnsupportedError; }); | |
| 460 Expect.throws(() { array.length = 0; }, | 448 Expect.throws(() { array.length = 0; }, |
| 461 (e) { return e is UnsupportedError; }); | 449 (e) { return e is UnsupportedError; }); |
| 462 Expect.throws(() { array.removeLast(); }, | 450 Expect.throws(() { array.removeLast(); }, |
| 463 (e) { return e is UnsupportedError; }); | 451 (e) { return e is UnsupportedError; }); |
| 464 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 452 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 465 (e) { return e is UnsupportedError; }); | 453 (e) { return e is UnsupportedError; }); |
| 466 for (int i = 0; i < array.length; ++i) { | 454 for (int i = 0; i < array.length; ++i) { |
| 467 array[i] = 1 + i; | 455 array[i] = 1 + i; |
| 468 } | 456 } |
| 469 Expect.listEquals([1, 2, 3, 4, 5, | 457 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 Expect.throws(() { array[10]; }, | 535 Expect.throws(() { array[10]; }, |
| 548 (e) { return e is RangeError; }); | 536 (e) { return e is RangeError; }); |
| 549 Expect.throws(() { array[10] = 0; }, | 537 Expect.throws(() { array[10] = 0; }, |
| 550 (e) { return e is RangeError; }); | 538 (e) { return e is RangeError; }); |
| 551 Expect.throws(() { array.add(0); }, | 539 Expect.throws(() { array.add(0); }, |
| 552 (e) { return e is UnsupportedError; }); | 540 (e) { return e is UnsupportedError; }); |
| 553 Expect.throws(() { array.addAll([0]); }, | 541 Expect.throws(() { array.addAll([0]); }, |
| 554 (e) { return e is UnsupportedError; }); | 542 (e) { return e is UnsupportedError; }); |
| 555 Expect.throws(() { array.clear(); }, | 543 Expect.throws(() { array.clear(); }, |
| 556 (e) { return e is UnsupportedError; }); | 544 (e) { return e is UnsupportedError; }); |
| 557 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 558 (e) { return e is UnsupportedError; }); | |
| 559 Expect.throws(() { array.length = 0; }, | 545 Expect.throws(() { array.length = 0; }, |
| 560 (e) { return e is UnsupportedError; }); | 546 (e) { return e is UnsupportedError; }); |
| 561 Expect.throws(() { array.removeLast(); }, | 547 Expect.throws(() { array.removeLast(); }, |
| 562 (e) { return e is UnsupportedError; }); | 548 (e) { return e is UnsupportedError; }); |
| 563 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 549 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 564 (e) { return e is UnsupportedError; }); | 550 (e) { return e is UnsupportedError; }); |
| 565 for (int i = 0; i < array.length; ++i) { | 551 for (int i = 0; i < array.length; ++i) { |
| 566 array[i] = 1 + i; | 552 array[i] = 1 + i; |
| 567 } | 553 } |
| 568 Expect.listEquals([1, 2, 3, 4, 5, | 554 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 Expect.throws(() { array[10]; }, | 618 Expect.throws(() { array[10]; }, |
| 633 (e) { return e is RangeError; }); | 619 (e) { return e is RangeError; }); |
| 634 Expect.throws(() { array[10] = 0; }, | 620 Expect.throws(() { array[10] = 0; }, |
| 635 (e) { return e is RangeError; }); | 621 (e) { return e is RangeError; }); |
| 636 Expect.throws(() { array.add(0); }, | 622 Expect.throws(() { array.add(0); }, |
| 637 (e) { return e is UnsupportedError; }); | 623 (e) { return e is UnsupportedError; }); |
| 638 Expect.throws(() { array.addAll([0]); }, | 624 Expect.throws(() { array.addAll([0]); }, |
| 639 (e) { return e is UnsupportedError; }); | 625 (e) { return e is UnsupportedError; }); |
| 640 Expect.throws(() { array.clear(); }, | 626 Expect.throws(() { array.clear(); }, |
| 641 (e) { return e is UnsupportedError; }); | 627 (e) { return e is UnsupportedError; }); |
| 642 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 643 (e) { return e is UnsupportedError; }); | |
| 644 Expect.throws(() { array.length = 0; }, | 628 Expect.throws(() { array.length = 0; }, |
| 645 (e) { return e is UnsupportedError; }); | 629 (e) { return e is UnsupportedError; }); |
| 646 Expect.throws(() { array.removeLast(); }, | 630 Expect.throws(() { array.removeLast(); }, |
| 647 (e) { return e is UnsupportedError; }); | 631 (e) { return e is UnsupportedError; }); |
| 648 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 632 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 649 (e) { return e is UnsupportedError; }); | 633 (e) { return e is UnsupportedError; }); |
| 650 for (int i = 0; i < array.length; ++i) { | 634 for (int i = 0; i < array.length; ++i) { |
| 651 array[i] = 1 + i; | 635 array[i] = 1 + i; |
| 652 } | 636 } |
| 653 Expect.listEquals([1, 2, 3, 4, 5, | 637 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 732 Expect.throws(() { array[10]; }, | 716 Expect.throws(() { array[10]; }, |
| 733 (e) { return e is RangeError; }); | 717 (e) { return e is RangeError; }); |
| 734 Expect.throws(() { array[10] = 0; }, | 718 Expect.throws(() { array[10] = 0; }, |
| 735 (e) { return e is RangeError; }); | 719 (e) { return e is RangeError; }); |
| 736 Expect.throws(() { array.add(0); }, | 720 Expect.throws(() { array.add(0); }, |
| 737 (e) { return e is UnsupportedError; }); | 721 (e) { return e is UnsupportedError; }); |
| 738 Expect.throws(() { array.addAll([0]); }, | 722 Expect.throws(() { array.addAll([0]); }, |
| 739 (e) { return e is UnsupportedError; }); | 723 (e) { return e is UnsupportedError; }); |
| 740 Expect.throws(() { array.clear(); }, | 724 Expect.throws(() { array.clear(); }, |
| 741 (e) { return e is UnsupportedError; }); | 725 (e) { return e is UnsupportedError; }); |
| 742 Expect.throws(() { array.insertRange(0, array.length, 0); }, | |
| 743 (e) { return e is UnsupportedError; }); | |
| 744 Expect.throws(() { array.length = 0; }, | 726 Expect.throws(() { array.length = 0; }, |
| 745 (e) { return e is UnsupportedError; }); | 727 (e) { return e is UnsupportedError; }); |
| 746 Expect.throws(() { array.removeLast(); }, | 728 Expect.throws(() { array.removeLast(); }, |
| 747 (e) { return e is UnsupportedError; }); | 729 (e) { return e is UnsupportedError; }); |
| 748 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 730 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 749 (e) { return e is UnsupportedError; }); | 731 (e) { return e is UnsupportedError; }); |
| 750 for (int i = 0; i < array.length; ++i) { | 732 for (int i = 0; i < array.length; ++i) { |
| 751 array[i] = 1 + i; | 733 array[i] = 1 + i; |
| 752 } | 734 } |
| 753 Expect.listEquals([1, 2, 3, 4, 5, | 735 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 Expect.throws(() { array[10]; }, | 798 Expect.throws(() { array[10]; }, |
| 817 (e) { return e is RangeError; }); | 799 (e) { return e is RangeError; }); |
| 818 Expect.throws(() { array[10] = 0.0; }, | 800 Expect.throws(() { array[10] = 0.0; }, |
| 819 (e) { return e is RangeError; }); | 801 (e) { return e is RangeError; }); |
| 820 Expect.throws(() { array.add(0.0); }, | 802 Expect.throws(() { array.add(0.0); }, |
| 821 (e) { return e is UnsupportedError; }); | 803 (e) { return e is UnsupportedError; }); |
| 822 Expect.throws(() { array.addAll([0]); }, | 804 Expect.throws(() { array.addAll([0]); }, |
| 823 (e) { return e is UnsupportedError; }); | 805 (e) { return e is UnsupportedError; }); |
| 824 Expect.throws(() { array.clear(); }, | 806 Expect.throws(() { array.clear(); }, |
| 825 (e) { return e is UnsupportedError; }); | 807 (e) { return e is UnsupportedError; }); |
| 826 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | |
| 827 (e) { return e is UnsupportedError; }); | |
| 828 Expect.throws(() { array.length = 0; }, | 808 Expect.throws(() { array.length = 0; }, |
| 829 (e) { return e is UnsupportedError; }); | 809 (e) { return e is UnsupportedError; }); |
| 830 Expect.throws(() { array.removeLast(); }, | 810 Expect.throws(() { array.removeLast(); }, |
| 831 (e) { return e is UnsupportedError; }); | 811 (e) { return e is UnsupportedError; }); |
| 832 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 812 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 833 (e) { return e is UnsupportedError; }); | 813 (e) { return e is UnsupportedError; }); |
| 834 for (int i = 0; i < array.length; ++i) { | 814 for (int i = 0; i < array.length; ++i) { |
| 835 array[i] = 1.0 + i; | 815 array[i] = 1.0 + i; |
| 836 } | 816 } |
| 837 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 817 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 Expect.throws(() { array[10]; }, | 867 Expect.throws(() { array[10]; }, |
| 888 (e) { return e is RangeError; }); | 868 (e) { return e is RangeError; }); |
| 889 Expect.throws(() { array[10] = 0.0; }, | 869 Expect.throws(() { array[10] = 0.0; }, |
| 890 (e) { return e is RangeError; }); | 870 (e) { return e is RangeError; }); |
| 891 Expect.throws(() { array.add(0.0); }, | 871 Expect.throws(() { array.add(0.0); }, |
| 892 (e) { return e is UnsupportedError; }); | 872 (e) { return e is UnsupportedError; }); |
| 893 Expect.throws(() { array.addAll([0]); }, | 873 Expect.throws(() { array.addAll([0]); }, |
| 894 (e) { return e is UnsupportedError; }); | 874 (e) { return e is UnsupportedError; }); |
| 895 Expect.throws(() { array.clear(); }, | 875 Expect.throws(() { array.clear(); }, |
| 896 (e) { return e is UnsupportedError; }); | 876 (e) { return e is UnsupportedError; }); |
| 897 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | |
| 898 (e) { return e is UnsupportedError; }); | |
| 899 Expect.throws(() { array.length = 0; }, | 877 Expect.throws(() { array.length = 0; }, |
| 900 (e) { return e is UnsupportedError; }); | 878 (e) { return e is UnsupportedError; }); |
| 901 Expect.throws(() { array.removeLast(); }, | 879 Expect.throws(() { array.removeLast(); }, |
| 902 (e) { return e is UnsupportedError; }); | 880 (e) { return e is UnsupportedError; }); |
| 903 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 881 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 904 (e) { return e is UnsupportedError; }); | 882 (e) { return e is UnsupportedError; }); |
| 905 for (int i = 0; i < array.length; ++i) { | 883 for (int i = 0; i < array.length; ++i) { |
| 906 array[i] = 1.0 + i; | 884 array[i] = 1.0 + i; |
| 907 } | 885 } |
| 908 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 886 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1131 Expect.throws(() { view[view.length]; }, | 1109 Expect.throws(() { view[view.length]; }, |
| 1132 (e) { return e is RangeError; }); | 1110 (e) { return e is RangeError; }); |
| 1133 Expect.throws(() { view[10] = 0; }, | 1111 Expect.throws(() { view[10] = 0; }, |
| 1134 (e) { return e is RangeError; }); | 1112 (e) { return e is RangeError; }); |
| 1135 Expect.throws(() { view.add(0); }, | 1113 Expect.throws(() { view.add(0); }, |
| 1136 (e) { return e is UnsupportedError; }); | 1114 (e) { return e is UnsupportedError; }); |
| 1137 Expect.throws(() { view.addAll([0]); }, | 1115 Expect.throws(() { view.addAll([0]); }, |
| 1138 (e) { return e is UnsupportedError; }); | 1116 (e) { return e is UnsupportedError; }); |
| 1139 Expect.throws(() { view.clear(); }, | 1117 Expect.throws(() { view.clear(); }, |
| 1140 (e) { return e is UnsupportedError; }); | 1118 (e) { return e is UnsupportedError; }); |
| 1141 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1142 (e) { return e is UnsupportedError; }); | |
| 1143 Expect.throws(() { view.length = 0; }, | 1119 Expect.throws(() { view.length = 0; }, |
| 1144 (e) { return e is UnsupportedError; }); | 1120 (e) { return e is UnsupportedError; }); |
| 1145 Expect.throws(() { view.removeLast(); }, | 1121 Expect.throws(() { view.removeLast(); }, |
| 1146 (e) { return e is UnsupportedError; }); | 1122 (e) { return e is UnsupportedError; }); |
| 1147 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1123 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1148 (e) { return e is UnsupportedError; }); | 1124 (e) { return e is UnsupportedError; }); |
| 1149 for (int i = 0; i < view.length; ++i) { | 1125 for (int i = 0; i < view.length; ++i) { |
| 1150 view[i] = 1 + i; | 1126 view[i] = 1 + i; |
| 1151 } | 1127 } |
| 1152 Expect.listEquals([1, 2, 3, 4, 5, | 1128 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1262 Expect.throws(() { view[view.length]; }, | 1238 Expect.throws(() { view[view.length]; }, |
| 1263 (e) { return e is RangeError; }); | 1239 (e) { return e is RangeError; }); |
| 1264 Expect.throws(() { view[view.length] = 0; }, | 1240 Expect.throws(() { view[view.length] = 0; }, |
| 1265 (e) { return e is RangeError; }); | 1241 (e) { return e is RangeError; }); |
| 1266 Expect.throws(() { view.add(0); }, | 1242 Expect.throws(() { view.add(0); }, |
| 1267 (e) { return e is UnsupportedError; }); | 1243 (e) { return e is UnsupportedError; }); |
| 1268 Expect.throws(() { view.addAll([0]); }, | 1244 Expect.throws(() { view.addAll([0]); }, |
| 1269 (e) { return e is UnsupportedError; }); | 1245 (e) { return e is UnsupportedError; }); |
| 1270 Expect.throws(() { view.clear(); }, | 1246 Expect.throws(() { view.clear(); }, |
| 1271 (e) { return e is UnsupportedError; }); | 1247 (e) { return e is UnsupportedError; }); |
| 1272 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1273 (e) { return e is UnsupportedError; }); | |
| 1274 Expect.throws(() { view.length = 0; }, | 1248 Expect.throws(() { view.length = 0; }, |
| 1275 (e) { return e is UnsupportedError; }); | 1249 (e) { return e is UnsupportedError; }); |
| 1276 Expect.throws(() { view.removeLast(); }, | 1250 Expect.throws(() { view.removeLast(); }, |
| 1277 (e) { return e is UnsupportedError; }); | 1251 (e) { return e is UnsupportedError; }); |
| 1278 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1252 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1279 (e) { return e is UnsupportedError; }); | 1253 (e) { return e is UnsupportedError; }); |
| 1280 for (int i = 0; i < view.length; ++i) { | 1254 for (int i = 0; i < view.length; ++i) { |
| 1281 view[i] = 1 + i; | 1255 view[i] = 1 + i; |
| 1282 } | 1256 } |
| 1283 Expect.listEquals([1, 2, 3, 4, 5, | 1257 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1373 Expect.throws(() { view[view.length]; }, | 1347 Expect.throws(() { view[view.length]; }, |
| 1374 (e) { return e is RangeError; }); | 1348 (e) { return e is RangeError; }); |
| 1375 Expect.throws(() { view[10] = 0; }, | 1349 Expect.throws(() { view[10] = 0; }, |
| 1376 (e) { return e is RangeError; }); | 1350 (e) { return e is RangeError; }); |
| 1377 Expect.throws(() { view.add(0); }, | 1351 Expect.throws(() { view.add(0); }, |
| 1378 (e) { return e is UnsupportedError; }); | 1352 (e) { return e is UnsupportedError; }); |
| 1379 Expect.throws(() { view.addAll([0]); }, | 1353 Expect.throws(() { view.addAll([0]); }, |
| 1380 (e) { return e is UnsupportedError; }); | 1354 (e) { return e is UnsupportedError; }); |
| 1381 Expect.throws(() { view.clear(); }, | 1355 Expect.throws(() { view.clear(); }, |
| 1382 (e) { return e is UnsupportedError; }); | 1356 (e) { return e is UnsupportedError; }); |
| 1383 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1384 (e) { return e is UnsupportedError; }); | |
| 1385 Expect.throws(() { view.length = 0; }, | 1357 Expect.throws(() { view.length = 0; }, |
| 1386 (e) { return e is UnsupportedError; }); | 1358 (e) { return e is UnsupportedError; }); |
| 1387 Expect.throws(() { view.removeLast(); }, | 1359 Expect.throws(() { view.removeLast(); }, |
| 1388 (e) { return e is UnsupportedError; }); | 1360 (e) { return e is UnsupportedError; }); |
| 1389 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1361 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1390 (e) { return e is UnsupportedError; }); | 1362 (e) { return e is UnsupportedError; }); |
| 1391 for (int i = 0; i < view.length; ++i) { | 1363 for (int i = 0; i < view.length; ++i) { |
| 1392 view[i] = 1 + i; | 1364 view[i] = 1 + i; |
| 1393 } | 1365 } |
| 1394 Expect.listEquals([1, 2, 3, 4, 5, | 1366 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1512 Expect.throws(() { view[view.length]; }, | 1484 Expect.throws(() { view[view.length]; }, |
| 1513 (e) { return e is RangeError; }); | 1485 (e) { return e is RangeError; }); |
| 1514 Expect.throws(() { view[view.length] = 0; }, | 1486 Expect.throws(() { view[view.length] = 0; }, |
| 1515 (e) { return e is RangeError; }); | 1487 (e) { return e is RangeError; }); |
| 1516 Expect.throws(() { view.add(0); }, | 1488 Expect.throws(() { view.add(0); }, |
| 1517 (e) { return e is UnsupportedError; }); | 1489 (e) { return e is UnsupportedError; }); |
| 1518 Expect.throws(() { view.addAll([0]); }, | 1490 Expect.throws(() { view.addAll([0]); }, |
| 1519 (e) { return e is UnsupportedError; }); | 1491 (e) { return e is UnsupportedError; }); |
| 1520 Expect.throws(() { view.clear(); }, | 1492 Expect.throws(() { view.clear(); }, |
| 1521 (e) { return e is UnsupportedError; }); | 1493 (e) { return e is UnsupportedError; }); |
| 1522 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1523 (e) { return e is UnsupportedError; }); | |
| 1524 Expect.throws(() { view.length = 0; }, | 1494 Expect.throws(() { view.length = 0; }, |
| 1525 (e) { return e is UnsupportedError; }); | 1495 (e) { return e is UnsupportedError; }); |
| 1526 Expect.throws(() { view.removeLast(); }, | 1496 Expect.throws(() { view.removeLast(); }, |
| 1527 (e) { return e is UnsupportedError; }); | 1497 (e) { return e is UnsupportedError; }); |
| 1528 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1498 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1529 (e) { return e is UnsupportedError; }); | 1499 (e) { return e is UnsupportedError; }); |
| 1530 for (int i = 0; i < view.length; ++i) { | 1500 for (int i = 0; i < view.length; ++i) { |
| 1531 view[i] = 1 + i; | 1501 view[i] = 1 + i; |
| 1532 } | 1502 } |
| 1533 Expect.listEquals([1, 2, 3, 4, 5, | 1503 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1629 Expect.throws(() { view[view.length]; }, | 1599 Expect.throws(() { view[view.length]; }, |
| 1630 (e) { return e is RangeError; }); | 1600 (e) { return e is RangeError; }); |
| 1631 Expect.throws(() { view[10] = 0; }, | 1601 Expect.throws(() { view[10] = 0; }, |
| 1632 (e) { return e is RangeError; }); | 1602 (e) { return e is RangeError; }); |
| 1633 Expect.throws(() { view.add(0); }, | 1603 Expect.throws(() { view.add(0); }, |
| 1634 (e) { return e is UnsupportedError; }); | 1604 (e) { return e is UnsupportedError; }); |
| 1635 Expect.throws(() { view.addAll([0]); }, | 1605 Expect.throws(() { view.addAll([0]); }, |
| 1636 (e) { return e is UnsupportedError; }); | 1606 (e) { return e is UnsupportedError; }); |
| 1637 Expect.throws(() { view.clear(); }, | 1607 Expect.throws(() { view.clear(); }, |
| 1638 (e) { return e is UnsupportedError; }); | 1608 (e) { return e is UnsupportedError; }); |
| 1639 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1640 (e) { return e is UnsupportedError; }); | |
| 1641 Expect.throws(() { view.length = 0; }, | 1609 Expect.throws(() { view.length = 0; }, |
| 1642 (e) { return e is UnsupportedError; }); | 1610 (e) { return e is UnsupportedError; }); |
| 1643 Expect.throws(() { view.removeLast(); }, | 1611 Expect.throws(() { view.removeLast(); }, |
| 1644 (e) { return e is UnsupportedError; }); | 1612 (e) { return e is UnsupportedError; }); |
| 1645 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1613 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1646 (e) { return e is UnsupportedError; }); | 1614 (e) { return e is UnsupportedError; }); |
| 1647 for (int i = 0; i < view.length; ++i) { | 1615 for (int i = 0; i < view.length; ++i) { |
| 1648 view[i] = 1 + i; | 1616 view[i] = 1 + i; |
| 1649 } | 1617 } |
| 1650 Expect.listEquals([1, 2, 3, 4, 5, | 1618 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1785 Expect.throws(() { view[view.length]; }, | 1753 Expect.throws(() { view[view.length]; }, |
| 1786 (e) { return e is RangeError; }); | 1754 (e) { return e is RangeError; }); |
| 1787 Expect.throws(() { view[view.length] = 0; }, | 1755 Expect.throws(() { view[view.length] = 0; }, |
| 1788 (e) { return e is RangeError; }); | 1756 (e) { return e is RangeError; }); |
| 1789 Expect.throws(() { view.add(0); }, | 1757 Expect.throws(() { view.add(0); }, |
| 1790 (e) { return e is UnsupportedError; }); | 1758 (e) { return e is UnsupportedError; }); |
| 1791 Expect.throws(() { view.addAll([0]); }, | 1759 Expect.throws(() { view.addAll([0]); }, |
| 1792 (e) { return e is UnsupportedError; }); | 1760 (e) { return e is UnsupportedError; }); |
| 1793 Expect.throws(() { view.clear(); }, | 1761 Expect.throws(() { view.clear(); }, |
| 1794 (e) { return e is UnsupportedError; }); | 1762 (e) { return e is UnsupportedError; }); |
| 1795 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1796 (e) { return e is UnsupportedError; }); | |
| 1797 Expect.throws(() { view.length = 0; }, | 1763 Expect.throws(() { view.length = 0; }, |
| 1798 (e) { return e is UnsupportedError; }); | 1764 (e) { return e is UnsupportedError; }); |
| 1799 Expect.throws(() { view.removeLast(); }, | 1765 Expect.throws(() { view.removeLast(); }, |
| 1800 (e) { return e is UnsupportedError; }); | 1766 (e) { return e is UnsupportedError; }); |
| 1801 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1767 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1802 (e) { return e is UnsupportedError; }); | 1768 (e) { return e is UnsupportedError; }); |
| 1803 for (int i = 0; i < view.length; ++i) { | 1769 for (int i = 0; i < view.length; ++i) { |
| 1804 view[i] = 1 + i; | 1770 view[i] = 1 + i; |
| 1805 } | 1771 } |
| 1806 Expect.listEquals([1, 2, 3, 4, 5, | 1772 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1918 Expect.throws(() { view[view.length]; }, | 1884 Expect.throws(() { view[view.length]; }, |
| 1919 (e) { return e is RangeError; }); | 1885 (e) { return e is RangeError; }); |
| 1920 Expect.throws(() { view[10] = 0; }, | 1886 Expect.throws(() { view[10] = 0; }, |
| 1921 (e) { return e is RangeError; }); | 1887 (e) { return e is RangeError; }); |
| 1922 Expect.throws(() { view.add(0); }, | 1888 Expect.throws(() { view.add(0); }, |
| 1923 (e) { return e is UnsupportedError; }); | 1889 (e) { return e is UnsupportedError; }); |
| 1924 Expect.throws(() { view.addAll([0]); }, | 1890 Expect.throws(() { view.addAll([0]); }, |
| 1925 (e) { return e is UnsupportedError; }); | 1891 (e) { return e is UnsupportedError; }); |
| 1926 Expect.throws(() { view.clear(); }, | 1892 Expect.throws(() { view.clear(); }, |
| 1927 (e) { return e is UnsupportedError; }); | 1893 (e) { return e is UnsupportedError; }); |
| 1928 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 1929 (e) { return e is UnsupportedError; }); | |
| 1930 Expect.throws(() { view.length = 0; }, | 1894 Expect.throws(() { view.length = 0; }, |
| 1931 (e) { return e is UnsupportedError; }); | 1895 (e) { return e is UnsupportedError; }); |
| 1932 Expect.throws(() { view.removeLast(); }, | 1896 Expect.throws(() { view.removeLast(); }, |
| 1933 (e) { return e is UnsupportedError; }); | 1897 (e) { return e is UnsupportedError; }); |
| 1934 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 1898 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 1935 (e) { return e is UnsupportedError; }); | 1899 (e) { return e is UnsupportedError; }); |
| 1936 for (int i = 0; i < view.length; ++i) { | 1900 for (int i = 0; i < view.length; ++i) { |
| 1937 view[i] = 1 + i; | 1901 view[i] = 1 + i; |
| 1938 } | 1902 } |
| 1939 Expect.listEquals([1, 2, 3, 4, 5, | 1903 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2121 Expect.throws(() { view[view.length]; }, | 2085 Expect.throws(() { view[view.length]; }, |
| 2122 (e) { return e is RangeError; }); | 2086 (e) { return e is RangeError; }); |
| 2123 Expect.throws(() { view[view.length] = 0; }, | 2087 Expect.throws(() { view[view.length] = 0; }, |
| 2124 (e) { return e is RangeError; }); | 2088 (e) { return e is RangeError; }); |
| 2125 Expect.throws(() { view.add(0); }, | 2089 Expect.throws(() { view.add(0); }, |
| 2126 (e) { return e is UnsupportedError; }); | 2090 (e) { return e is UnsupportedError; }); |
| 2127 Expect.throws(() { view.addAll([0]); }, | 2091 Expect.throws(() { view.addAll([0]); }, |
| 2128 (e) { return e is UnsupportedError; }); | 2092 (e) { return e is UnsupportedError; }); |
| 2129 Expect.throws(() { view.clear(); }, | 2093 Expect.throws(() { view.clear(); }, |
| 2130 (e) { return e is UnsupportedError; }); | 2094 (e) { return e is UnsupportedError; }); |
| 2131 Expect.throws(() { view.insertRange(0, view.length, 0); }, | |
| 2132 (e) { return e is UnsupportedError; }); | |
| 2133 Expect.throws(() { view.length = 0; }, | 2095 Expect.throws(() { view.length = 0; }, |
| 2134 (e) { return e is UnsupportedError; }); | 2096 (e) { return e is UnsupportedError; }); |
| 2135 Expect.throws(() { view.removeLast(); }, | 2097 Expect.throws(() { view.removeLast(); }, |
| 2136 (e) { return e is UnsupportedError; }); | 2098 (e) { return e is UnsupportedError; }); |
| 2137 Expect.throws(() { view.removeRange(0, view.length - 1); }, | 2099 Expect.throws(() { view.removeRange(0, view.length - 1); }, |
| 2138 (e) { return e is UnsupportedError; }); | 2100 (e) { return e is UnsupportedError; }); |
| 2139 for (int i = 0; i < view.length; ++i) { | 2101 for (int i = 0; i < view.length; ++i) { |
| 2140 view[i] = 1 + i; | 2102 view[i] = 1 + i; |
| 2141 } | 2103 } |
| 2142 Expect.listEquals([1, 2, 3, 4, 5, | 2104 Expect.listEquals([1, 2, 3, 4, 5, |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2279 Expect.throws(() { view[10]; }, | 2241 Expect.throws(() { view[10]; }, |
| 2280 (e) { return e is RangeError; }); | 2242 (e) { return e is RangeError; }); |
| 2281 Expect.throws(() { view[10] = 0.0; }, | 2243 Expect.throws(() { view[10] = 0.0; }, |
| 2282 (e) { return e is RangeError; }); | 2244 (e) { return e is RangeError; }); |
| 2283 Expect.throws(() { array.add(0.0); }, | 2245 Expect.throws(() { array.add(0.0); }, |
| 2284 (e) { return e is UnsupportedError; }); | 2246 (e) { return e is UnsupportedError; }); |
| 2285 Expect.throws(() { array.addAll([0]); }, | 2247 Expect.throws(() { array.addAll([0]); }, |
| 2286 (e) { return e is UnsupportedError; }); | 2248 (e) { return e is UnsupportedError; }); |
| 2287 Expect.throws(() { array.clear(); }, | 2249 Expect.throws(() { array.clear(); }, |
| 2288 (e) { return e is UnsupportedError; }); | 2250 (e) { return e is UnsupportedError; }); |
| 2289 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | |
| 2290 (e) { return e is UnsupportedError; }); | |
| 2291 Expect.throws(() { array.length = 0; }, | 2251 Expect.throws(() { array.length = 0; }, |
| 2292 (e) { return e is UnsupportedError; }); | 2252 (e) { return e is UnsupportedError; }); |
| 2293 Expect.throws(() { array.removeLast(); }, | 2253 Expect.throws(() { array.removeLast(); }, |
| 2294 (e) { return e is UnsupportedError; }); | 2254 (e) { return e is UnsupportedError; }); |
| 2295 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 2255 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 2296 (e) { return e is UnsupportedError; }); | 2256 (e) { return e is UnsupportedError; }); |
| 2297 for (int i = 0; i < view.length; ++i) { | 2257 for (int i = 0; i < view.length; ++i) { |
| 2298 view[i] = 1.0 + i; | 2258 view[i] = 1.0 + i; |
| 2299 } | 2259 } |
| 2300 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 2260 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2386 Expect.throws(() { view[10]; }, | 2346 Expect.throws(() { view[10]; }, |
| 2387 (e) { return e is RangeError; }); | 2347 (e) { return e is RangeError; }); |
| 2388 Expect.throws(() { view[10] = 0.0; }, | 2348 Expect.throws(() { view[10] = 0.0; }, |
| 2389 (e) { return e is RangeError; }); | 2349 (e) { return e is RangeError; }); |
| 2390 Expect.throws(() { array.add(0.0); }, | 2350 Expect.throws(() { array.add(0.0); }, |
| 2391 (e) { return e is UnsupportedError; }); | 2351 (e) { return e is UnsupportedError; }); |
| 2392 Expect.throws(() { array.addAll([0]); }, | 2352 Expect.throws(() { array.addAll([0]); }, |
| 2393 (e) { return e is UnsupportedError; }); | 2353 (e) { return e is UnsupportedError; }); |
| 2394 Expect.throws(() { array.clear(); }, | 2354 Expect.throws(() { array.clear(); }, |
| 2395 (e) { return e is UnsupportedError; }); | 2355 (e) { return e is UnsupportedError; }); |
| 2396 Expect.throws(() { array.insertRange(0, array.length, 0.0); }, | |
| 2397 (e) { return e is UnsupportedError; }); | |
| 2398 Expect.throws(() { array.length = 0; }, | 2356 Expect.throws(() { array.length = 0; }, |
| 2399 (e) { return e is UnsupportedError; }); | 2357 (e) { return e is UnsupportedError; }); |
| 2400 Expect.throws(() { array.removeLast(); }, | 2358 Expect.throws(() { array.removeLast(); }, |
| 2401 (e) { return e is UnsupportedError; }); | 2359 (e) { return e is UnsupportedError; }); |
| 2402 Expect.throws(() { array.removeRange(0, array.length - 1); }, | 2360 Expect.throws(() { array.removeRange(0, array.length - 1); }, |
| 2403 (e) { return e is UnsupportedError; }); | 2361 (e) { return e is UnsupportedError; }); |
| 2404 for (int i = 0; i < view.length; ++i) { | 2362 for (int i = 0; i < view.length; ++i) { |
| 2405 view[i] = 1.0 + i; | 2363 view[i] = 1.0 + i; |
| 2406 } | 2364 } |
| 2407 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, | 2365 Expect.listEquals([1.0, 2.0, 3.0, 4.0, 5.0, |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2473 | 2431 |
| 2474 testByteList(); | 2432 testByteList(); |
| 2475 } | 2433 } |
| 2476 } | 2434 } |
| 2477 | 2435 |
| 2478 main() { | 2436 main() { |
| 2479 for (var i=0; i<1000; i++) { | 2437 for (var i=0; i<1000; i++) { |
| 2480 ByteArrayTest.testMain(); | 2438 ByteArrayTest.testMain(); |
| 2481 } | 2439 } |
| 2482 } | 2440 } |
| OLD | NEW |