| Index: tests/corelib/const_list_literal_test.dart
|
| diff --git a/tests/corelib/const_list_literal_test.dart b/tests/corelib/const_list_literal_test.dart
|
| index 01658a9f75f900729c059a332ca8e5e7ddb3a375..33bc487c37db48016988d19dfb259bb9aef7fa5f 100644
|
| --- a/tests/corelib/const_list_literal_test.dart
|
| +++ b/tests/corelib/const_list_literal_test.dart
|
| @@ -13,7 +13,7 @@ class ConstListLiteralTest {
|
| var exception = null;
|
| try {
|
| list.add(4);
|
| - } catch (UnsupportedOperationException e) {
|
| + } on UnsupportedOperationException catch (e) {
|
| exception = e;
|
| }
|
| Expect.equals(true, exception != null);
|
| @@ -23,7 +23,7 @@ class ConstListLiteralTest {
|
| exception = null;
|
| try {
|
| list.addAll([4, 5]);
|
| - } catch (UnsupportedOperationException e) {
|
| + } on UnsupportedOperationException catch (e) {
|
| exception = e;
|
| }
|
| Expect.equals(true, exception != null);
|
| @@ -32,7 +32,7 @@ class ConstListLiteralTest {
|
| exception = null;
|
| try {
|
| list[0] = 0;
|
| - } catch (UnsupportedOperationException e) {
|
| + } on UnsupportedOperationException catch (e) {
|
| exception = e;
|
| }
|
| Expect.equals(true, exception != null);
|
| @@ -41,7 +41,7 @@ class ConstListLiteralTest {
|
| exception = null;
|
| try {
|
| list.sort((a, b) => a < b);
|
| - } catch (UnsupportedOperationException e) {
|
| + } on UnsupportedOperationException catch (e) {
|
| exception = e;
|
| }
|
| Expect.equals(true, exception != null);
|
| @@ -53,7 +53,7 @@ class ConstListLiteralTest {
|
| exception = null;
|
| try {
|
| list.setRange(0, 1, [1], 0);
|
| - } catch (UnsupportedOperationException e) {
|
| + } on UnsupportedOperationException catch (e) {
|
| exception = e;
|
| }
|
| Expect.equals(true, exception != null);
|
|
|