Index: tests/language/assertion_test.dart |
diff --git a/tests/language/assertion_test.dart b/tests/language/assertion_test.dart |
index b2e015f6116648d325f37a01974bad5b02114ec8..8761bd64a3bbb1674941675ad28db87aa24829c5 100644 |
--- a/tests/language/assertion_test.dart |
+++ b/tests/language/assertion_test.dart |
@@ -10,7 +10,7 @@ class AssertionTest { |
int i = 0; |
try { |
assert(true); |
- } catch (AssertionError error) { |
+ } on AssertionError catch (error) { |
i = 1; |
} |
return i; |
@@ -20,7 +20,7 @@ class AssertionTest { |
int i = 0; |
try { |
assert(false); |
- } catch (AssertionError error) { |
+ } on AssertionError catch (error) { |
i = 1; |
} |
return i; |
@@ -35,17 +35,17 @@ class AssertionTest { |
int i = 0; |
try { |
assert(x); |
- } catch (AssertionError error) { |
+ } on AssertionError catch (error) { |
i = 1; |
} |
- return i; |
+ return i; |
} |
static testClosure() { |
int i = 0; |
try { |
assert(() => false); |
- } catch (AssertionError error) { |
+ } on AssertionError catch (error) { |
i = 1; |
} |
return i; |
@@ -56,7 +56,7 @@ class AssertionTest { |
try { |
var x = () => false; |
assert(x); |
- } catch (AssertionError error) { |
+ } on AssertionError catch (error) { |
i = 1; |
} |
return i; |