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

Unified Diff: tests/compiler/dart2js/constant_value_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: 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
Index: tests/compiler/dart2js/constant_value_test.dart
diff --git a/tests/compiler/dart2js/constant_value_test.dart b/tests/compiler/dart2js/constant_value_test.dart
index 5c5bec689f3a124ee0fa5dfd7d3ceed6c4910f10..1558032ab8ba85175c064b788bff363920aefffb 100644
--- a/tests/compiler/dart2js/constant_value_test.dart
+++ b/tests/compiler/dart2js/constant_value_test.dart
@@ -26,14 +26,10 @@ void main() {
ClassElement C = env.getElement('C');
FieldElement field1 = C.lookupLocalMember('field1');
FieldElement field2 = C.lookupLocalMember('field2');
- ConstantValue value1 = new ConstructedConstantValue(C.rawType, {
- field1: new IntConstantValue(0),
- field2: new IntConstantValue(1),
- });
- ConstantValue value2 = new ConstructedConstantValue(C.rawType, {
- field2: new IntConstantValue(1),
- field1: new IntConstantValue(0),
- });
+ ConstantValue value1 = new ConstructedConstantValue(C.rawType,
+ {field1: new IntConstantValue(0), field2: new IntConstantValue(1),});
+ ConstantValue value2 = new ConstructedConstantValue(C.rawType,
+ {field2: new IntConstantValue(1), field1: new IntConstantValue(0),});
Expect.equals(value1.hashCode, value2.hashCode, "Hashcode mismatch.");
Expect.equals(value1, value2, "Value mismatch.");
});

Powered by Google App Engine
This is Rietveld 408576698