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

Unified Diff: test/checker/checker_test.dart

Issue 1150143006: fixes #201, add support for custom URL mapping (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: remove options change Created 5 years, 7 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 | « pubspec.yaml ('k') | test/checker/dart_foobar.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/checker/checker_test.dart
diff --git a/test/checker/checker_test.dart b/test/checker/checker_test.dart
index fd5f8c023e142026637e620577fe3c0a34f95698..aa4aafa75cf7f9fa2669ec6e38951f07a9c11221 100644
--- a/test/checker/checker_test.dart
+++ b/test/checker/checker_test.dart
@@ -8,6 +8,7 @@ library dev_compiler.test.checker_test;
import 'package:test/test.dart';
import 'package:dev_compiler/src/testing.dart';
+import '../test_util.dart' show testDirectory;
void main() {
test('ternary operator', () {
@@ -2895,7 +2896,7 @@ void main() {
int foo(int x) => x;
int bar(int x, int y) => x + y;
-
+
void main() {
bool b;
b = /*severe:InvalidRuntimeCheckError*/foo is I2I;
@@ -2931,4 +2932,15 @@ void main() {
'''
});
});
+
+ test('custom URL mappings', () => testChecker({
+ '/main.dart': '''
+ import 'dart:foobar' show Baz;
+ main() {
+ print(Baz.quux);
+ }'''
+ },
+ customUrlMappings: {
+ 'dart:foobar': '$testDirectory/checker/dart_foobar.dart'
+ }));
}
« no previous file with comments | « pubspec.yaml ('k') | test/checker/dart_foobar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698