Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(262)

Unified Diff: tests/language_strong/is_malformed_type_test.dart

Issue 2770063002: Revert "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language_strong/internal_library_test.dart ('k') | tests/language_strong/issue1363_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7a5ea3fe08c3d95f99f282072835e6294eadc95b..6c85bbac4fdee7551eb379eb116b60910ec3bdb0 100644
--- a/tests/language_strong/is_malformed_type_test.dart
+++ b/tests/language_strong/is_malformed_type_test.dart
@@ -6,10 +6,7 @@
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
@@ -17,7 +14,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);
}
}
@@ -28,7 +25,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);
}
}
@@ -41,7 +38,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);
}
@@ -55,7 +52,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);
}
@@ -68,7 +65,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);
}
@@ -81,7 +78,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);
}
« no previous file with comments | « tests/language_strong/internal_library_test.dart ('k') | tests/language_strong/issue1363_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698