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

Unified Diff: tests/language/src/Instanceof3Test.dart

Issue 10198033: Add more subtype checks, and repeat them so that any inlined checks can be tested as well (first te… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
Index: tests/language/src/Instanceof3Test.dart
===================================================================
--- tests/language/src/Instanceof3Test.dart (revision 7030)
+++ tests/language/src/Instanceof3Test.dart (working copy)
@@ -16,7 +16,7 @@
}
}
-main() {
+testAll() {
{
bool got_type_error = false;
var x = null;
@@ -84,3 +84,10 @@
Expect.isTrue(got_type_error == isCheckedMode());
}
}
+
+main() {
+ // Repeat type checks so that inlined tests can be tested as well.
+ for (int i = 0; i < 5; i++) {
+ testAll();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698