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

Unified Diff: tests/language/assertion_initializer_test.dart

Issue 2986093002: Revert two Kernel changes that were causing test failures. (Closed)
Patch Set: Revert "Migrate language/async_backwards... ... language/async_star_take..." 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/language/assertion_initializer_const_function_test.dart ('k') | tests/language/assertion_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/assertion_initializer_test.dart
diff --git a/tests/language_2/assertion_initializer_test.dart b/tests/language/assertion_initializer_test.dart
similarity index 97%
rename from tests/language_2/assertion_initializer_test.dart
rename to tests/language/assertion_initializer_test.dart
index 1eec4b1a365f2e8b21dd3792076ffa0cf6ec4c12..45369802b96bc1545aad154329cfb6076e259fdf 100644
--- a/tests/language_2/assertion_initializer_test.dart
+++ b/tests/language/assertion_initializer_test.dart
@@ -85,10 +85,10 @@ main() {
}
void test(int x, int y) {
- bool assertionsEnabled = false;
- assert(assertionsEnabled = true);
+ bool checkedMode = false;
+ assert(checkedMode = true);
- bool Function(C Function()) doTest = (assertionsEnabled && x >= y)
+ bool Function(C Function()) doTest = (checkedMode && x >= y)
? (f) { Expect.throws(f, (e) => e is AssertionError); }
: (f) { Expect.equals(x, f().x); };
« no previous file with comments | « tests/language/assertion_initializer_const_function_test.dart ('k') | tests/language/assertion_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698