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

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

Issue 17759007: First pass at asynchronous input loading in dart2js. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 6 import
7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart' 7 '../../../sdk/lib/_internal/compiler/implementation/types/types.dart'
8 show TypeMask; 8 show TypeMask;
9 9
10 import 'compiler_helper.dart'; 10 import 'compiler_helper.dart';
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 var b = new B(0, inscrutable(0) == 0 ? 2 : "horse"); 44 var b = new B(0, inscrutable(0) == 0 ? 2 : "horse");
45 var c = inscrutable(0) == 0 ? a : "kurt"; 45 var c = inscrutable(0) == 0 ? a : "kurt";
46 var d = inscrutable(0) == 0 ? b : "gert"; 46 var d = inscrutable(0) == 0 ? b : "gert";
47 if (c == d) { 47 if (c == d) {
48 print("hestfisk"); 48 print("hestfisk");
49 } 49 }
50 } 50 }
51 """; 51 """;
52 52
53 void main() { 53 void main() {
54 String generated = compileAll(TEST); 54 compileAll(TEST).then((generated) {
55 if (generated.contains(r'=== true')) { 55 if (generated.contains(r'=== true')) {
56 print(generated); 56 print(generated);
57 Expect.fail("missing elision of '=== true'"); 57 Expect.fail("missing elision of '=== true'");
58 } 58 }
59 });
59 } 60 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698