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

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: 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
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: {
vsm 2015/06/03 15:37:47 indent seems a little weird here.
Jennifer Messerly 2015/06/03 16:24:11 that's what dart_style does. I think Bob is on it
+ 'dart:foobar': '$testDirectory/checker/dart_foobar.dart'
+ }));
}
« pubspec.yaml ('K') | « pubspec.yaml ('k') | test/checker/dart_foobar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698