Index: tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart |
diff --git a/tests/compiler/dart2js/source_map_d2js_validity_test.dart b/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart |
similarity index 64% |
copy from tests/compiler/dart2js/source_map_d2js_validity_test.dart |
copy to tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart |
index 4fb5e0a1804ef7a1d08e9a898876ce833977f55d..2b7191ff45ed078268f57418134ac5a9d0605d53 100644 |
--- a/tests/compiler/dart2js/source_map_d2js_validity_test.dart |
+++ b/tests/compiler/dart2js/source_map_deferred_d2js_validity_test.dart |
@@ -16,17 +16,21 @@ void main() { |
entry.compileFunc = alt.compile; |
asyncTest(() => createTempDir().then((Directory tmpDir) { |
- print( |
- 'Compiling tests/compiler/dart2js/source_map_validator_test_file.dart'); |
+ String file = |
+ 'tests/compiler/dart2js/source_map_deferred_validator_test_file.dart'; |
+ print("Compiling $file"); |
Future result = entry.internalMain( |
- ['tests/compiler/dart2js/source_map_validator_test_file.dart', |
+ [file, |
'-o${tmpDir.path}/out.js', |
'--library-root=sdk']); |
return result.then((_) { |
Compiler compiler = alt.compiler; |
- Uri uri = |
- new Uri.file('${tmpDir.path}/out.js', windows: Platform.isWindows); |
- validateSourceMap(uri, compiler); |
+ Uri mainUri = new Uri.file('${tmpDir.path}/out.js', |
+ windows: Platform.isWindows); |
+ Uri deferredUri = new Uri.file('${tmpDir.path}/out.js_1.part.js', |
+ windows: Platform.isWindows); |
+ validateSourceMap(mainUri, compiler); |
+ validateSourceMap(deferredUri, compiler); |
print("Deleting '${tmpDir.path}'."); |
tmpDir.deleteSync(recursive: true); |