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

Side by Side Diff: tests/language/external_test.dart

Issue 25673003: Fix language/external_test. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('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 4
5 class Foo { 5 class Foo {
6 var x; 6 var x;
7 f() {} 7 f() {}
8 8
9 external var x01; /// 01: compile-time error 9 external var x01; /// 01: compile-time error
10 external int x02; /// 02: compile-time error 10 external int x02; /// 02: compile-time error
(...skipping 19 matching lines...) Expand all
30 // Try calling an unpatched external function. 30 // Try calling an unpatched external function.
31 var foo = new Foo(); 31 var foo = new Foo();
32 try { /// 10: continued 32 try { /// 10: continued
33 foo.f05(); /// 10: continued 33 foo.f05(); /// 10: continued
34 } on String catch (exc) { /// 10: continued 34 } on String catch (exc) { /// 10: continued
35 if (exc == "External implementation missing.") { /// 10: continued 35 if (exc == "External implementation missing.") { /// 10: continued
36 throw exc; /// 10: continued 36 throw exc; /// 10: continued
37 } /// 10: continued 37 } /// 10: continued
38 } /// 10: continued 38 } /// 10: continued
39 39
40 new Foo().f11(); /// 11: continued
41 new Foo().f12(); /// 12: continued
42
40 try { /// 13: continued 43 try { /// 13: continued
41 Foo.f13(); /// 13: continued 44 Foo.f13(); /// 13: continued
42 } on String catch (exc) { /// 13: continued 45 } on String catch (exc) { /// 13: continued
43 if (exc == "External implementation missing.") { /// 13: continued 46 if (exc == "External implementation missing.") { /// 13: continued
44 throw exc; /// 13: continued 47 throw exc; /// 13: continued
45 } /// 13: continued 48 } /// 13: continued
46 } /// 13: continued 49 } /// 13: continued
47 50
48 // Try calling an unpatched external constructor. 51 // Try calling an unpatched external constructor.
49 try { /// 20: continued 52 try { /// 20: continued
50 var foo = new Foo.n09(); /// 20: continued 53 var foo = new Foo.n09(); /// 20: continued
51 } on String catch (exc) { /// 20: continued 54 } on String catch (exc) { /// 20: continued
52 if (exc == "External implementation missing.") { /// 20: continued 55 if (exc == "External implementation missing.") { /// 20: continued
53 throw exc; /// 20: continued 56 throw exc; /// 20: continued
54 } /// 20: continued 57 } /// 20: continued
55 } /// 20: continued 58 } /// 20: continued
59
60 new Foo.n21(); /// 21: continued
61 new Foo.n22(); /// 22: continued
62 new Foo.n23(); /// 23: continued
63
64 t06(1); /// 30: continued
65 t07(1); /// 31: continued
56 } 66 }
OLDNEW
« no previous file with comments | « no previous file | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698