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

Side by Side Diff: tests/html/js_typed_interop_anonymous2_exp_test.dart

Issue 1871573002: Breaking Change: Support @JS at library level (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Updated to WebKit updated tests Created 4 years, 8 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
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tests/html/js_typed_interop_anonymous2_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) 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 // SharedOptions=--experimental-trust-js-interop-type-annotations 5 // SharedOptions=--experimental-trust-js-interop-type-annotations
6 6
7 // Same test as js_typed_interop_anonymous2, but using the 7 // Same test as js_typed_interop_anonymous2, but using the
8 // --experimental-trust-js-interop-type-annotations flag. 8 // --experimental-trust-js-interop-type-annotations flag.
9 @JS()
9 library js_typed_interop_anonymous2_exp_test; 10 library js_typed_interop_anonymous2_exp_test;
10 11
11 import 'dart:html'; 12 import 'dart:html';
12 import 'dart:js' as js; 13 import 'dart:js' as js;
13 14
14 import 'package:js/js.dart'; 15 import 'package:js/js.dart';
15 import 'package:unittest/unittest.dart'; 16 import 'package:unittest/unittest.dart';
16 import 'package:unittest/html_config.dart'; 17 import 'package:unittest/html_config.dart';
17 18
18 @JS() @anonymous 19 @JS() @anonymous
(...skipping 24 matching lines...) Expand all
43 main() { 44 main() {
44 useHtmlConfiguration(); 45 useHtmlConfiguration();
45 46
46 test('simple', () { 47 test('simple', () {
47 var b = new B(); 48 var b = new B();
48 var a = new A(b: b); 49 var a = new A(b: b);
49 expect(a.b, equals(b)); 50 expect(a.b, equals(b));
50 expect(b.c, isNull); 51 expect(b.c, isNull);
51 }); 52 });
52 } 53 }
OLDNEW
« no previous file with comments | « sdk/lib/js/dartium/js_dartium.dart ('k') | tests/html/js_typed_interop_anonymous2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698