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

Unified Diff: tests/utils/dummy_compiler_test.dart

Issue 832363002: Remove Compiler.assembledCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittest Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/try/web/web_compiler_test_case.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/dummy_compiler_test.dart
diff --git a/tests/utils/dummy_compiler_test.dart b/tests/utils/dummy_compiler_test.dart
index 2e858f0287f498f0dc923ad58c23f83ba2584502..cf573377c0a749a875fd87903f3467d0499008a7 100644
--- a/tests/utils/dummy_compiler_test.dart
+++ b/tests/utils/dummy_compiler_test.dart
@@ -52,13 +52,13 @@ void handler(Uri uri, int begin, int end, String message, Diagnostic kind) {
main() {
asyncStart();
- Future<String> result =
+ Future<CompilationResult> result =
compile(new Uri(scheme: 'main'),
new Uri(scheme: 'lib', path: '/'),
new Uri(scheme: 'package', path: '/'),
provider, handler);
- result.then((String code) {
- if (code == null) {
+ result.then((CompilationResult result) {
+ if (!result.isSuccess) {
throw 'Compilation failed';
}
}, onError: (e, s) {
« no previous file with comments | « tests/try/web/web_compiler_test_case.dart ('k') | tests/utils/recursive_import_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698