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); |
} |