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

Unified Diff: tests/compiler/dart2js_extra/17856_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/17645_test.dart ('k') | tests/compiler/dart2js_extra/18383_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js_extra/17856_test.dart
diff --git a/tests/compiler/dart2js_extra/17856_test.dart b/tests/compiler/dart2js_extra/17856_test.dart
index 1e6fa63cd96b53bb46e9860d069d6659ebf0fd99..aa5a243308d2ac23167d101c2c7fad1896119a72 100644
--- a/tests/compiler/dart2js_extra/17856_test.dart
+++ b/tests/compiler/dart2js_extra/17856_test.dart
@@ -7,7 +7,7 @@ import "package:expect/expect.dart";
// Regression test for Issue 17856.
void main() {
- var all = { "a": new A(), "b": new B() };
+ var all = {"a": new A(), "b": new B()};
A a = all["a"];
a.load();
@@ -16,22 +16,20 @@ void main() {
class A {
Loader _loader = new Loader();
- load() => _loader.loadAll({
- 'a1': {}
- });
+ load() => _loader.loadAll({'a1': {}});
}
class B {
Loader _loader = new Loader();
load() => _loader.loadAll({
- 'a2': new DateTime.now(),
- });
+ 'a2': new DateTime.now(),
+ });
}
class Loader {
loadAll(Map assets) {
- for(String key in assets.keys) {
+ for (String key in assets.keys) {
Expect.isTrue(assets[key] is Map);
}
}
« no previous file with comments | « tests/compiler/dart2js_extra/17645_test.dart ('k') | tests/compiler/dart2js_extra/18383_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698