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

Unified Diff: tests/corelib/splay_tree_from_iterable_test.dart

Issue 2879153005: Add support to dart2js for option --enable-asserts. (Closed)
Patch Set: Formatting Created 3 years, 7 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/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";

Powered by Google App Engine
This is Rietveld 408576698