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

Unified Diff: test/testing.dart

Issue 1243503007: fixes #221, initial sync*, async, async* implementation (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/js_test_tools/mocha/mocha.js ('k') | tool/input_sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/testing.dart
diff --git a/test/testing.dart b/test/testing.dart
index 297d2057e4ae057a6989ff632b92e8cf58fc9141..5c66f96a5d4b524a21d6918db0ccb1f493e5cebb 100644
--- a/test/testing.dart
+++ b/test/testing.dart
@@ -29,8 +29,18 @@ import 'package:dev_compiler/src/utils.dart';
/// Shared analysis context used for compilation.
final realSdkContext = createAnalysisContextWithSources(new StrongModeOptions(),
- new SourceResolverOptions(dartSdkPath: getSdkDir().path))
- ..analysisOptions = (new AnalysisOptionsImpl()..cacheSize = 512);
+ new SourceResolverOptions(
+ dartSdkPath: getSdkDir().path,
+ customUrlMappings: {
+ 'package:expect/expect.dart': _testCodegenPath('expect.dart'),
+ 'package:async_helper/async_helper.dart':
+ _testCodegenPath('async_helper.dart'),
+ 'package:unittest/unittest.dart': _testCodegenPath('unittest.dart'),
+ 'package:dom/dom.dart': _testCodegenPath('sunflower', 'dom.dart')
+}))..analysisOptions = (new AnalysisOptionsImpl()..cacheSize = 512);
+
+String _testCodegenPath(String p1, [String p2]) =>
+ path.join(testDirectory, 'codegen', p1, p2);
final String testDirectory =
path.dirname((reflectClass(_TestUtils).owner as LibraryMirror).uri.path);
« no previous file with comments | « test/js_test_tools/mocha/mocha.js ('k') | tool/input_sdk/lib/async/stream_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698