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

Unified Diff: tests/compiler/dart2js/use_strict_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/uri_retention_test.dart ('k') | tests/compiler/dart2js/user_crash_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/use_strict_test.dart
diff --git a/tests/compiler/dart2js/use_strict_test.dart b/tests/compiler/dart2js/use_strict_test.dart
index d3eb09b756a6b6a9e594b827ef5a8573d261da42..0461fb75b020d4126aecbfd50a9ad79896af4cd9 100644
--- a/tests/compiler/dart2js/use_strict_test.dart
+++ b/tests/compiler/dart2js/use_strict_test.dart
@@ -9,7 +9,7 @@ import 'memory_compiler.dart';
// Use strict does not allow parameters or locals named "arguments" or "eval".
const MEMORY_SOURCE_FILES = const {
- 'main.dart': '''
+ 'main.dart': '''
class A {
final arguments;
final eval;
@@ -42,7 +42,8 @@ const MEMORY_SOURCE_FILES = const {
for (int i = 0; i < list.length; i++) {
print(list[i].foo(i, i + 1));
}
- }'''};
+ }'''
+};
main() {
OutputCollector collector = new OutputCollector();
@@ -54,9 +55,8 @@ main() {
// Skip comments.
List<String> lines = jsOutput.split("\n");
RegExp commentLine = new RegExp(r' *//');
- String filtered = lines
- .where((String line) => !commentLine.hasMatch(line))
- .join("\n");
+ String filtered =
+ lines.where((String line) => !commentLine.hasMatch(line)).join("\n");
// TODO(floitsch): we will need to adjust this filter if we start using
// 'eval' or 'arguments' ourselves. Currently we disallow any 'eval' or
« no previous file with comments | « tests/compiler/dart2js/uri_retention_test.dart ('k') | tests/compiler/dart2js/user_crash_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698