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

Side by Side Diff: tests/compiler/dart2js_extra/js_interop_error_test.dart

Issue 1318043005: Support user generated custom native JS classes. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: ptal Created 5 years, 2 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 import "package:js/js.dart";
sra1 2015/10/06 21:42:18 Add a few more tests in the dart2js_native directo
Jacob 2015/10/13 01:19:24 Done. However put tests in test/html with the othe
7
8 class Bar { }
9
10 @Js()
11 class Foo extends Bar {
12 external get bar;
13 }
14
15 @Js()
16 class Baz {
17 Baz() {}
18 external get foo;
19 void bar() { }
20 get baz;
21 }
6 22
7 void main() { 23 void main() {
8 int x = 327680; 24 /// 01: compile-time error
9 int r = 65536; 25 var b = new Bar();
10 for (var i = 0; i < 200; i++) {
11 Expect.equals(r, x ~/ 5);
12 x *= 10;
13 r *= 10;
14 }
15 } 26 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698