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

Side by Side Diff: tests/compiler/dart2js/source_mapping_test.dart

Issue 21540002: Remove support for remaining deprecated features. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 4 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
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 import "package:expect/expect.dart"; 5 import "package:expect/expect.dart";
6 6
7 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart"; 7 import "../../../sdk/lib/_internal/compiler/implementation/dart2jslib.dart";
8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart'; 8 import '../../../sdk/lib/_internal/compiler/implementation/source_file.dart';
9 import "mock_compiler.dart"; 9 import "mock_compiler.dart";
10 import 'parser_helper.dart'; 10 import 'parser_helper.dart';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 @void main() { print(test(15)); @} 54 @void main() { print(test(15)); @}
55 // The 'if' has been added to avoid inlining of 'test'. 55 // The 'if' has been added to avoid inlining of 'test'.
56 @int test(int x) { if (x != null) return x; else return null; @}'''; 56 @int test(int x) { if (x != null) return x; else return null; @}''';
57 57
58 String RETURN_TEST = 'void main() { print(((x) { @return x; })(0)); }'; 58 String RETURN_TEST = 'void main() { print(((x) { @return x; })(0)); }';
59 59
60 String NOT_TEST = 'void main() { ((x) { if (@!x) print(x); })(false); }'; 60 String NOT_TEST = 'void main() { ((x) { if (@!x) print(x); })(false); }';
61 61
62 String UNARY_TEST = 'void main() { ((x, y) { print(@-x + @~y); })(1,2); }'; 62 String UNARY_TEST = 'void main() { ((x, y) { print(@-x + @~y); })(1,2); }';
63 63
64 String BINARY_TEST = 'void main() { ((x, y) { if (x @!== y) print(x @* y); })(1, 2); }'; 64 String BINARY_TEST = 'void main() { ((x, y) { if (x @!= y) print(x @* y); })(1,2 ); }';
65 65
66 String SEND_TEST = ''' 66 String SEND_TEST = '''
67 void main() { 67 void main() {
68 @staticSend(0); 68 @staticSend(0);
69 NewSend o = @new NewSend(); 69 NewSend o = @new NewSend();
70 @o.dynamicSend(0); 70 @o.dynamicSend(0);
71 var closureSend = (x) { print(x); }; 71 var closureSend = (x) { print(x); };
72 @closureSend(0); 72 @closureSend(0);
73 } 73 }
74 // The 'if' has been added to avoid inlining of 'staticSend'. 74 // The 'if' has been added to avoid inlining of 'staticSend'.
(...skipping 26 matching lines...) Expand all
101 testSourceMapLocations(FUNCTIONS_TEST); 101 testSourceMapLocations(FUNCTIONS_TEST);
102 testSourceMapLocations(RETURN_TEST); 102 testSourceMapLocations(RETURN_TEST);
103 testSourceMapLocations(NOT_TEST); 103 testSourceMapLocations(NOT_TEST);
104 testSourceMapLocations(UNARY_TEST); 104 testSourceMapLocations(UNARY_TEST);
105 testSourceMapLocations(BINARY_TEST); 105 testSourceMapLocations(BINARY_TEST);
106 testSourceMapLocations(SEND_TEST); 106 testSourceMapLocations(SEND_TEST);
107 testSourceMapLocations(SEND_SET_TEST); 107 testSourceMapLocations(SEND_SET_TEST);
108 testSourceMapLocations(LOOP_TEST); 108 testSourceMapLocations(LOOP_TEST);
109 testSourceMapLocations(INTERCEPTOR_TEST); 109 testSourceMapLocations(INTERCEPTOR_TEST);
110 } 110 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/deprecated_features_test.dart ('k') | tests/language/unsupported_operators_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698