Index: tests/compiler/dart2js/source_mapping_test.dart |
diff --git a/tests/compiler/dart2js/source_mapping_test.dart b/tests/compiler/dart2js/source_mapping_test.dart |
index 8d404f85d1338bbede6d83ee38add9fe292e9e30..b219719c67ecfdf73c74a0827ec1218819df1d5d 100644 |
--- a/tests/compiler/dart2js/source_mapping_test.dart |
+++ b/tests/compiler/dart2js/source_mapping_test.dart |
@@ -28,7 +28,7 @@ void testSourceMapLocations(String codeWithMarkers) { |
} |
String code = codeWithMarkers.replaceAll('@', ''); |
- SourceFile sourceFile = new SourceFile('<test script>', code); |
+ SourceFile sourceFile = new StringSourceFile('<test script>', code); |
asyncTest(() => compileAll(sourceFile).then((CodeBuffer buffer) { |
Set<int> locations = new Set<int>(); |
buffer.forEachSourceLocation((int offset, var sourcePosition) { |
@@ -41,7 +41,7 @@ void testSourceMapLocations(String codeWithMarkers) { |
int expectedLocation = expectedLocations[i]; |
if (!locations.contains(expectedLocation)) { |
int originalLocation = expectedLocation + i; |
- SourceFile sourceFileWithMarkers = new SourceFile('<test script>', |
+ SourceFile sourceFileWithMarkers = new StringSourceFile('<test script>', |
codeWithMarkers); |
kasperl
2013/10/18 06:44:57
Fix indentation.
lukas
2013/10/18 08:39:46
Done.
|
String message = sourceFileWithMarkers.getLocationMessage( |
'Missing location', originalLocation, originalLocation + 1, true, |