| Index: tests/language_strong/is_malformed_type_test.dart
|
| diff --git a/tests/language_strong/is_malformed_type_test.dart b/tests/language_strong/is_malformed_type_test.dart
|
| index 6c85bbac4fdee7551eb379eb116b60910ec3bdb0..7a5ea3fe08c3d95f99f282072835e6294eadc95b 100644
|
| --- a/tests/language_strong/is_malformed_type_test.dart
|
| +++ b/tests/language_strong/is_malformed_type_test.dart
|
| @@ -6,7 +6,10 @@
|
| import "package:expect/expect.dart";
|
|
|
| var evalCount = 0;
|
| -testEval(x) { evalCount++; return x; }
|
| +testEval(x) {
|
| + evalCount++;
|
| + return x;
|
| +}
|
|
|
| test99(e) {
|
| // Test that a runtime error is thrown when the 'is' operator checks for a
|
| @@ -14,7 +17,7 @@ test99(e) {
|
| try {
|
| if (e is Undefined) Expect.fail("unreachable"); // //# 99: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| }
|
| }
|
| @@ -25,7 +28,7 @@ test98(e) {
|
| try {
|
| if (e as Undefined) Expect.fail("unreachable"); // //# 98: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| }
|
| }
|
| @@ -38,7 +41,7 @@ test97(e) {
|
| evalCount = 0;
|
| if (e is Undefined && testEval(e)) Expect.fail("unreachable"); // //# 97: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| Expect.equals(0, evalCount);
|
| }
|
| @@ -52,7 +55,7 @@ test96(e) {
|
| evalCount = 0;
|
| if (e as Undefined && testEval(e)) Expect.fail("unreachable"); // //# 96: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| Expect.equals(0, evalCount);
|
| }
|
| @@ -65,7 +68,7 @@ test95(e) {
|
| evalCount = 0;
|
| if (testEval(e) is Undefined) Expect.fail("unreachable"); // //# 95: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| Expect.equals(1, evalCount);
|
| }
|
| @@ -78,7 +81,7 @@ test94(e) {
|
| evalCount = 0;
|
| if (testEval(e) as Undefined) Expect.fail("unreachable"); // //# 94: continued
|
| Expect.fail("unreachable");
|
| - } catch(exc) {
|
| + } catch (exc) {
|
| Expect.isTrue(exc is TypeError);
|
| Expect.equals(1, evalCount);
|
| }
|
|
|