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

Side by Side Diff: tests/utils/dummy_compiler_test.dart

Issue 368983003: Add better error reporting to utils tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/utils/recursive_import_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) 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 // VMOptions= 4 // VMOptions=
5 // VMOptions=--print-object-histogram 5 // VMOptions=--print-object-histogram
6 6
7 // Smoke test of the dart2js compiler API. 7 // Smoke test of the dart2js compiler API.
8 library dummy_compiler; 8 library dummy_compiler;
9 9
10 import 'dart:async'; 10 import 'dart:async';
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 asyncStart(); 54 asyncStart();
55 Future<String> result = 55 Future<String> result =
56 compile(new Uri(scheme: 'main'), 56 compile(new Uri(scheme: 'main'),
57 new Uri(scheme: 'lib', path: '/'), 57 new Uri(scheme: 'lib', path: '/'),
58 new Uri(scheme: 'package', path: '/'), 58 new Uri(scheme: 'package', path: '/'),
59 provider, handler); 59 provider, handler);
60 result.then((String code) { 60 result.then((String code) {
61 if (code == null) { 61 if (code == null) {
62 throw 'Compilation failed'; 62 throw 'Compilation failed';
63 } 63 }
64 }, onError: (e) { 64 }, onError: (e, s) {
65 throw 'Compilation failed: $e'; 65 throw 'Compilation failed: $e\n$s';
66 }).then(asyncSuccess); 66 }).then(asyncSuccess);
67 } 67 }
OLDNEW
« no previous file with comments | « no previous file | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698