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

Side by Side Diff: tests/language/js_properties_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
« no previous file with comments | « tests/language/issue7525_test.dart ('k') | tests/language/label_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 // Test that JavaScript properties on Object can still be classes in 4 // Test that JavaScript properties on Object can still be classes in
5 // Dart. 5 // Dart.
6 6
7 import "package:expect/expect.dart";
8
9 void main() { 7 void main() {
10 Expect.equals(42, new __defineGetter__().hello()); 8 Expect.equals(42, new __defineGetter__().hello());
11 Expect.equals(42, new __defineSetter__().hello()); 9 Expect.equals(42, new __defineSetter__().hello());
12 Expect.equals(42, new __lookupGetter__().hello()); 10 Expect.equals(42, new __lookupGetter__().hello());
13 Expect.equals(42, new __lookupSetter__().hello()); 11 Expect.equals(42, new __lookupSetter__().hello());
14 Expect.equals(42, new constructor().hello()); 12 Expect.equals(42, new constructor().hello());
15 Expect.equals(42, new hasOwnProperty().hello()); 13 Expect.equals(42, new hasOwnProperty().hello());
16 Expect.equals(42, new isPrototypeOf().hello()); 14 Expect.equals(42, new isPrototypeOf().hello());
17 Expect.equals(42, new propertyIsEnumerable().hello()); 15 Expect.equals(42, new propertyIsEnumerable().hello());
18 Expect.equals(42, new toLocaleString().hello()); 16 Expect.equals(42, new toLocaleString().hello());
19 Expect.equals(42, new toString().hello()); 17 Expect.equals(42, new toString().hello());
20 Expect.equals(42, new valueOf().hello()); 18 Expect.equals(42, new valueOf().hello());
21 } 19 }
22 20
23 class Hello { 21 class Hello {
24 int hello() => 42; 22 int hello() => 42;
25 } 23 }
26 24
27 class __defineGetter__ extends Hello {} 25 class __defineGetter__ extends Hello {}
28 class __defineSetter__ extends Hello {} 26 class __defineSetter__ extends Hello {}
29 class __lookupGetter__ extends Hello {} 27 class __lookupGetter__ extends Hello {}
30 class __lookupSetter__ extends Hello {} 28 class __lookupSetter__ extends Hello {}
31 class constructor extends Hello {} 29 class constructor extends Hello {}
32 class hasOwnProperty extends Hello {} 30 class hasOwnProperty extends Hello {}
33 class isPrototypeOf extends Hello {} 31 class isPrototypeOf extends Hello {}
34 class propertyIsEnumerable extends Hello {} 32 class propertyIsEnumerable extends Hello {}
35 class toLocaleString extends Hello {} 33 class toLocaleString extends Hello {}
36 class toString extends Hello {} 34 class toString extends Hello {}
37 class valueOf extends Hello {} 35 class valueOf extends Hello {}
OLDNEW
« no previous file with comments | « tests/language/issue7525_test.dart ('k') | tests/language/label_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698