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

Side by Side Diff: tests/lib_strong/html/js_typed_interop_anonymous_unreachable_exp_test.dart

Issue 2850783002: Dart SDK Spelling b, c, and d. (Closed)
Patch Set: Created 3 years, 7 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 // SharedOptions=--experimental-trust-js-interop-type-annotations 5 // SharedOptions=--experimental-trust-js-interop-type-annotations
6 6
7 // Same test as js_typed_interop_anonymous_unreachable, but using the 7 // Same test as js_typed_interop_anonymous_unreachable, but using the
8 // --experimental-trust-js-interop-type-annotations flag. 8 // --experimental-trust-js-interop-type-annotations flag.
9 @JS() 9 @JS()
10 library js_typed_interop_anonymous_unreachable_exp_test; 10 library js_typed_interop_anonymous_unreachable_exp_test;
11 11
12 import 'dart:html'; 12 import 'dart:html';
13 import 'dart:js' as js; 13 import 'dart:js' as js;
14 14
15 import 'package:js/js.dart'; 15 import 'package:js/js.dart';
16 import 'package:expect/minitest.dart'; 16 import 'package:expect/minitest.dart';
17 17
18 @JS() 18 @JS()
19 @anonymous 19 @anonymous
20 class Literal { 20 class Literal {
21 external factory Literal({int x, String y, num z}); 21 external factory Literal({int x, String y, num z});
22 22
23 external int get x; 23 external int get x;
24 external String get y; 24 external String get y;
25 external num get z; 25 external num get z;
26 } 26 }
27 27
28 main() { 28 main() {
29 test('nothing to do', () { 29 test('nothing to do', () {
30 // This test is empty, but it is a regression for Issue# 24974: dartjs 30 // This test is empty, but it is a regression for Issue# 24974: dart2js
31 // would crash trying to compile code that used @anonymous and that was 31 // would crash trying to compile code that used @anonymous and that was
32 // not reachable from main. 32 // not reachable from main.
33 }); 33 });
34 } 34 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698