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

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

Issue 2836733002: dart2js: patch file support cleanup (Closed)
Patch Set: remove js_array change Created 3 years, 8 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
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/core_patch.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/mock_compiler.dart
diff --git a/tests/compiler/dart2js/mock_compiler.dart b/tests/compiler/dart2js/mock_compiler.dart
index f38f38956a7dfc4260ab44a424a16c28234657a0..5c53c74b4e6ab09477e6b832b192bc8f0085ff95 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -62,7 +62,6 @@ class MockCompiler extends Compiler {
final int expectedErrors;
final Map<String, SourceFile> sourceFiles;
Node parsedTree;
- final String testedPatchVersion;
final LibrarySourceProvider librariesOverride;
final DiagnosticCollector diagnosticCollector = new DiagnosticCollector();
final ResolvedUriTranslator resolvedUriTranslator =
@@ -87,10 +86,8 @@ class MockCompiler extends Compiler {
int this.expectedWarnings,
int this.expectedErrors,
api.CompilerOutput outputProvider,
- String patchVersion,
LibrarySourceProvider this.librariesOverride})
: sourceFiles = new Map<String, SourceFile>(),
- testedPatchVersion = patchVersion,
super(
options: new CompilerOptions(
entryPoint: new Uri(scheme: 'mock'),
@@ -135,10 +132,6 @@ class MockCompiler extends Compiler {
buildLibrarySource(DEFAULT_LOOKUP_MAP_LIBRARY));
}
- String get patchVersion {
- return testedPatchVersion != null ? testedPatchVersion : super.patchVersion;
- }
-
/// Initialize the mock compiler with an empty main library.
Future<Uri> init([String mainSource = ""]) {
Uri uri = new Uri(scheme: "mock");
« no previous file with comments | « sdk/lib/_internal/js_runtime/lib/core_patch.dart ('k') | tests/compiler/dart2js/patch_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698