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

Unified Diff: tests/compiler/dart2js/unused_empty_map_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/unparser_test.dart ('k') | tests/compiler/dart2js/uri_extras_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/unused_empty_map_test.dart
diff --git a/tests/compiler/dart2js/unused_empty_map_test.dart b/tests/compiler/dart2js/unused_empty_map_test.dart
index 5f806bca9b3c80a33c66ba3c53e4f863384c9724..8ba21680426b27b1f60a0a441e8c8444263cb350 100644
--- a/tests/compiler/dart2js/unused_empty_map_test.dart
+++ b/tests/compiler/dart2js/unused_empty_map_test.dart
@@ -8,12 +8,14 @@ import 'package:expect/expect.dart';
import 'package:async_helper/async_helper.dart';
import 'memory_compiler.dart';
-const TEST_SOURCE = const {"main.dart": r"""
+const TEST_SOURCE = const {
+ "main.dart": r"""
void main() {
var x = {};
return;
}
-"""};
+"""
+};
const HASHMAP_EMPTY_CONSTRUCTOR = r"LinkedHashMap_LinkedHashMap$_empty";
@@ -21,7 +23,7 @@ main() {
asyncTest(() async {
var collector = new OutputCollector();
var result = await runCompiler(
- memorySourceFiles: TEST_SOURCE, outputProvider: collector);
+ memorySourceFiles: TEST_SOURCE, outputProvider: collector);
var compiler = result.compiler;
String generated = collector.getOutput('', 'js');
Expect.isFalse(generated.contains(HASHMAP_EMPTY_CONSTRUCTOR));
« no previous file with comments | « tests/compiler/dart2js/unparser_test.dart ('k') | tests/compiler/dart2js/uri_extras_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698