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

Unified Diff: dart/tests/compiler/dart2js_native/subclassing_super_call_test.dart

Issue 60293003: Version 0.8.10.5 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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 | « dart/tests/compiler/dart2js_native/dart2js_native.status ('k') | dart/tests/html/html.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tests/compiler/dart2js_native/subclassing_super_call_test.dart
===================================================================
--- dart/tests/compiler/dart2js_native/subclassing_super_call_test.dart (revision 29908)
+++ dart/tests/compiler/dart2js_native/subclassing_super_call_test.dart (working copy)
@@ -15,13 +15,13 @@
class N2 extends N1 native "N2" {
N2.init();
- var text;
+ String text;
foo() native;
}
class AA extends N2 {
AA.init() : super.init();
- var afield;
+ String afield;
afun() => 'afun:$afield';
}
@@ -63,8 +63,8 @@
JS('', '#(#)', constructor, b1);
JS('', '#(#)', constructor, b2);
- b1.text = 'one';
- b2.text = 'two';
+ b1.text = inscrutable('one');
+ b2.text = inscrutable('two');
print('b1.text ${inscrutable(b1).text}');
print('b2.text ${inscrutable(b2).text}');
@@ -73,16 +73,16 @@
print('b2.foo() ${inscrutable(b2).foo()}');
Expect.equals('one', b1.text);
- Expect.equals('two', b1.text);
+ Expect.equals('two', b2.text);
Expect.equals('foo:one', b1.foo());
Expect.equals('foo:two', b2.foo());
- inscrutable(b1).text = 'three';
- inscrutable(b2).text = 'four';
+ inscrutable(b1).text = inscrutable('three');
+ inscrutable(b2).text = inscrutable('four');
Expect.equals('three', inscrutable(b1).text);
- Expect.equals('four', inscrutable(b1).text);
+ Expect.equals('four', inscrutable(b2).text);
Expect.equals('foo:three', inscrutable(b1).foo());
Expect.equals('foo:four', inscrutable(b2).foo());
@@ -97,8 +97,8 @@
JS('', '#(#)', constructor, b1);
JS('', '#(#)', constructor, b2);
- b1.afield = 'one';
- b2.afield = 'two';
+ b1.afield = inscrutable('one');
+ b2.afield = inscrutable('two');
print('b1.afield ${inscrutable(b1).afield}');
print('b2.afield ${inscrutable(b2).afield}');
@@ -107,17 +107,17 @@
print('b2.afun() ${inscrutable(b2).afun()}');
Expect.equals('one', b1.afield);
- Expect.equals('two', b1.afield);
+ Expect.equals('two', b2.afield);
Expect.equals('afun:one', b1.afun());
Expect.equals('afun:two', b2.afun());
- inscrutable(b1).afield = 'three';
- inscrutable(b2).afield = 'four';
+ inscrutable(b1).afield = inscrutable('three');
+ inscrutable(b2).afield = inscrutable('four');
Expect.equals('three', inscrutable(b1).afield);
- Expect.equals('four', inscrutable(b1).afield);
+ Expect.equals('four', inscrutable(b2).afield);
Expect.equals('afun:three', inscrutable(b1).afun());
Expect.equals('afun:four', inscrutable(b2).afun());
« no previous file with comments | « dart/tests/compiler/dart2js_native/dart2js_native.status ('k') | dart/tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698