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

Unified Diff: tests/compiler/dart2js_native/field_type_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
Index: tests/compiler/dart2js_native/field_type_test.dart
diff --git a/tests/compiler/dart2js_native/field_type_test.dart b/tests/compiler/dart2js_native/field_type_test.dart
index 75297ad3602f94a627c21a150e9fbe7b2e921561..ebb83c66f106b8ed0eb22fb728a0af7fb63284c9 100644
--- a/tests/compiler/dart2js_native/field_type_test.dart
+++ b/tests/compiler/dart2js_native/field_type_test.dart
@@ -11,10 +11,9 @@ import "package:expect/expect.dart";
@Native("Node")
class Node {
-
final Node parentNode;
- ModelSource _modelSource; // If null, inherited from parent.
+ ModelSource _modelSource; // If null, inherited from parent.
ModelSource get modelSource {
for (Node node = this; node != null; node = node.parentNode) {
@@ -26,7 +25,7 @@ class Node {
// Copy of above code renamed with suffix '2'.
- ModelSource _modelSource2; // If null, inherited from parent.
+ ModelSource _modelSource2; // If null, inherited from parent.
ModelSource get modelSource2 {
for (Node node = this; node != null; node = node.parentNode) {
@@ -37,7 +36,7 @@ class Node {
}
}
-makeNode(parent) native;
+makeNode(parent) native ;
class ModelSource {
var name;
@@ -51,7 +50,6 @@ function Node(parent){ this.parentNode = parent; }
makeNode = function(p){return new Node(p);};
""";
-
main() {
setup();
@@ -60,13 +58,13 @@ main() {
var n3 = makeNode(n2);
var m1 = new ModelSource('1');
- n2._modelSource = null; // null write.
- n2._modelSource = m1; // Non-null write.
+ n2._modelSource = null; // null write.
+ n2._modelSource = m1; // Non-null write.
var x1 = n3.modelSource;
Expect.identical(m1, x1);
var m2 = new ModelSource('2');
- n2._modelSource2 = m2; // The only write is non-null.
+ n2._modelSource2 = m2; // The only write is non-null.
var x2 = n3.modelSource2;
Expect.identical(m2, x2);
}
« no previous file with comments | « tests/compiler/dart2js_native/field_type2_test.dart ('k') | tests/compiler/dart2js_native/fixup_get_tag_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698