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

Unified Diff: tests/compiler/dart2js/mirror_helper_rename_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/mirror_helper_rename_test.dart
diff --git a/tests/compiler/dart2js/mirror_helper_rename_test.dart b/tests/compiler/dart2js/mirror_helper_rename_test.dart
index 9b82355e9972dfeab80075e9dd90140af445897b..10a1e22f7699430766225c485c3b506b8ffd1463 100644
--- a/tests/compiler/dart2js/mirror_helper_rename_test.dart
+++ b/tests/compiler/dart2js/mirror_helper_rename_test.dart
@@ -16,10 +16,6 @@ import
'../../../sdk/lib/_internal/compiler/implementation/dart_backend/dart_backend.dart';
import
'../../../sdk/lib/_internal/compiler/implementation/mirror_renamer/mirror_renamer.dart';
-import
- '../../../sdk/lib/_internal/compiler/implementation/scanner/scannerlib.dart'
-show
- SourceString;
main() {
testWithMirrorHelperLibrary(minify: true);
@@ -46,7 +42,7 @@ void testWithMirrorHelperLibrary({bool minify}) {
DartBackend backend = compiler.backend;
MirrorRenamer mirrorRenamer = backend.mirrorRenamer;
Map<Node, String> renames = backend.renames;
- Map<String, SourceString> symbols = mirrorRenamer.symbols;
+ Map<String, String> symbols = mirrorRenamer.symbols;
Expect.isFalse(null == backend.mirrorHelperLibrary);
Expect.isFalse(null == backend.mirrorHelperGetNameFunction);
@@ -55,10 +51,10 @@ void testWithMirrorHelperLibrary({bool minify}) {
if (symbols.containsKey(renames[n])) {
if(n.toString() == 'getName') {
Expect.equals(
- const SourceString(MirrorRenamer.MIRROR_HELPER_GET_NAME_FUNCTION),
+ MirrorRenamer.MIRROR_HELPER_GET_NAME_FUNCTION,
symbols[renames[n]]);
} else {
- Expect.equals(n.toString(), symbols[renames[n]].stringValue);
+ Expect.equals(n.toString(), symbols[renames[n]]);
}
}
}
@@ -74,7 +70,7 @@ void testWithMirrorHelperLibrary({bool minify}) {
Expect.equals(2, i.length);
}
- String mapMatch = 'const<String,SourceString>';
+ String mapMatch = 'const<String,String>';
i = mapMatch.allMatches(output);
Expect.equals(1, i.length);
}));

Powered by Google App Engine
This is Rietveld 408576698