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

Unified Diff: tests/compiler/dart2js/source_mapping_test.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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: 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,

Powered by Google App Engine
This is Rietveld 408576698