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

Unified Diff: tests/utils/src/DummyCompilerTest.dart

Issue 10170040: test rename overhaul: step 11 - tests/utils (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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/utils/src/DartdocTest.dart ('k') | tests/utils/src/JsonTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/utils/src/DummyCompilerTest.dart
diff --git a/tests/utils/src/DummyCompilerTest.dart b/tests/utils/src/DummyCompilerTest.dart
deleted file mode 100644
index 042d9d008f2f2b263deaf4b9311460af05dabf7e..0000000000000000000000000000000000000000
--- a/tests/utils/src/DummyCompilerTest.dart
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-// Smoke test of the dart2js compiler API.
-
-#import('../../../lib/compiler/compiler.dart');
-#import('dart:uri');
-
-Future<String> provider(Uri uri) {
- Completer<String> completer = new Completer<String>();
- String source;
- if (uri.scheme == "main") {
- source = "main() {}";
- } else if (uri.scheme == "lib") {
- if (uri.path.endsWith("/core.dart")) {
- source = """#library('core');
- class Object{}
- class bool {}
- class num {}
- class int {}
- class double{}
- class String{}
- class Function{}
- class List {}
- class Closure {}
- class Dynamic {}
- class Null {}
- eqNull(a) {}
- eqNullB(a) {}""";
- } else {
- source = "#library('lib');";
- }
- } else {
- throw "unexpected URI $uri";
- }
- completer.complete(source);
- return completer.future;
-}
-
-void handler(Uri uri, int begin, int end, String message, bool fatal) {
- print(message);
-}
-
-main() {
- String code = compile(new Uri(scheme: 'main'), new Uri(scheme: 'lib'),
- provider, handler).value;
- if (code === null) {
- throw 'Compilation failed';
- }
-}
« no previous file with comments | « tests/utils/src/DartdocTest.dart ('k') | tests/utils/src/JsonTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698