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

Unified Diff: tests/corelib/splay_tree_from_iterable_test.dart

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Added !$checked to section predicate in co19 status file Created 3 years, 5 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/corelib/list_removeat_test.dart ('k') | tests/language/function_type/function_type0_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/splay_tree_from_iterable_test.dart
diff --git a/tests/corelib/splay_tree_from_iterable_test.dart b/tests/corelib/splay_tree_from_iterable_test.dart
index c60293a1eed5a7bd9a33d3d124b0eec40cc59b92..5db4c1b9a36d73687cfacfc2ec0e4e135ff3d874 100644
--- a/tests/corelib/splay_tree_from_iterable_test.dart
+++ b/tests/corelib/splay_tree_from_iterable_test.dart
@@ -121,9 +121,7 @@ void genericTypeTest() {
// Test in checked mode with explicitly given types.
void typedTest() {
- bool isCheckedMode = false;
- assert((isCheckedMode = true));
- if (!isCheckedMode) return;
+ if (!typeAssertionsEnabled) return;
// Assign functions to untyped function variables.
Function key = (int v) => "$v";
« no previous file with comments | « tests/corelib/list_removeat_test.dart ('k') | tests/language/function_type/function_type0_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698