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

Unified Diff: tests/compiler/dart2js_extra/21166_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 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/compiler/dart2js_extra/19191_test.dart ('k') | tests/compiler/dart2js_extra/21351_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/21166_test.dart
diff --git a/tests/compiler/dart2js_extra/21166_test.dart b/tests/compiler/dart2js_extra/21166_test.dart
index bc8f63bf16180f22207086fa8ad4978cec970d4b..b060c1fdb576dcccc889080c1392ff3ff05f470a 100644
--- a/tests/compiler/dart2js_extra/21166_test.dart
+++ b/tests/compiler/dart2js_extra/21166_test.dart
@@ -8,9 +8,10 @@
var a = [];
void doStuff() {
- if (a.length) { // This triggers a TypeConversion to bool in checked mode.
+ if (a.length) {
+ // This triggers a TypeConversion to bool in checked mode.
var element = a[0]; // This triggers a bounds check but a.length will have
- a.remove(element); // type [empty].
+ a.remove(element); // type [empty].
}
}
@@ -21,5 +22,3 @@ main() {
doStuff(); // This is expected to fail but not crash the compiler.
} catch (_) {}
}
-
-
« no previous file with comments | « tests/compiler/dart2js_extra/19191_test.dart ('k') | tests/compiler/dart2js_extra/21351_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698