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

Unified Diff: tests/language/is_malformed_type_test.dart

Issue 192723002: Fix is_malformed_test annotations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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 | « no previous file | tests/language/language_analyzer.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/is_malformed_type_test.dart
===================================================================
--- tests/language/is_malformed_type_test.dart (revision 33476)
+++ tests/language/is_malformed_type_test.dart (working copy)
@@ -12,7 +12,7 @@
// Test that a runtime error is thrown when the 'is' operator checks for a
// malformed type.
try {
- if (e is Undefined) Expect.fail("unreachable");
+ if (e is Undefined) Expect.fail("unreachable"); /// 99: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -23,7 +23,7 @@
// Test that a runtime error is thrown when the 'as' operator checks for a
// malformed type.
try {
- if (e as Undefined) Expect.fail("unreachable");
+ if (e as Undefined) Expect.fail("unreachable"); /// 98: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -36,7 +36,7 @@
// with malformed type is parsed, but not executed at runtime.
// Regression test for issue 16985.
evalCount = 0;
- if (e is Undefined && testEval(e)) Expect.fail("unreachable");
+ if (e is Undefined && testEval(e)) Expect.fail("unreachable"); /// 97: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -50,7 +50,7 @@
// with malformed type is parsed, but not executed at runtime.
// Regression test for issue 16985.
evalCount = 0;
- if (e as Undefined && testEval(e)) Expect.fail("unreachable");
+ if (e as Undefined && testEval(e)) Expect.fail("unreachable"); /// 96: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -63,7 +63,7 @@
// runtime error is thrown.
try {
evalCount = 0;
- if (testEval(e) is Undefined) Expect.fail("unreachable");
+ if (testEval(e) is Undefined) Expect.fail("unreachable"); /// 95: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -76,7 +76,7 @@
// runtime error is thrown.
try {
evalCount = 0;
- if (testEval(e) as Undefined) Expect.fail("unreachable");
+ if (testEval(e) as Undefined) Expect.fail("unreachable"); /// 94: continued
Expect.fail("unreachable");
} catch(exc) {
Expect.isTrue(exc is TypeError);
@@ -85,10 +85,10 @@
}
main() {
- test99("99 bottles"); /// 99: ok
- test98("98 bottles"); /// 98: ok
- test97("97 bottles"); /// 97: ok
- test96("96 bottles"); /// 96: ok
- test95("95 bottles"); /// 95: ok
- test94("94 bottles"); /// 94: ok
+ test99("99 bottles"); /// 99: static type warning
+ test98("98 bottles"); /// 98: static type warning
+ test97("97 bottles"); /// 97: static type warning
+ test96("96 bottles"); /// 96: static type warning
+ test95("95 bottles"); /// 95: static type warning
+ test94("94 bottles"); /// 94: static type warning
}
« no previous file with comments | « no previous file | tests/language/language_analyzer.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698