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

Side by Side Diff: tests/compiler/dart2js_foreign/native_class_inheritance4_test.dart

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 // Additional Dart code may be 'placed on' hidden native classes. With 5 // Additional Dart code may be 'placed on' hidden native classes. With
6 // inheritance, the superclass method must not be reached by a call on the 6 // inheritance, the superclass method must not be reached by a call on the
7 // subclass. 7 // subclass.
8 8
9 import "package:expect/expect.dart";
10 import 'native_metadata.dart'; 9 import 'native_metadata.dart';
11 10
12 @Native("*A") 11 @Native("*A")
13 class A { 12 class A {
14 var _field; 13 var _field;
15 14
16 int get X => _field; 15 int get X => _field;
17 void set X(int x) { _field = x; } 16 void set X(int x) { _field = x; }
18 17
19 int method(int z) => _field + z; 18 int method(int z) => _field + z;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 } 141 }
143 142
144 main() { 143 main() {
145 testBasicA_dynamic(); 144 testBasicA_dynamic();
146 testBasicA_typed(); 145 testBasicA_typed();
147 testBasicB_dynamic(); 146 testBasicB_dynamic();
148 testBasicB_typed(); 147 testBasicB_typed();
149 testAB_dynamic(); 148 testAB_dynamic();
150 testAB_typed(); 149 testAB_typed();
151 } 150 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698