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

Side by Side Diff: tests/compiler/dart2js/mock_compiler.dart

Issue 1485823004: Merge CL for js-interop crash fix. Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 unified diff | Download patch
« no previous file with comments | « tests/compiler/dart2js/interop_anonymous_unreachable_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library mock_compiler; 5 library mock_compiler;
6 6
7 import "package:expect/expect.dart"; 7 import "package:expect/expect.dart";
8 import 'dart:async'; 8 import 'dart:async';
9 import 'dart:collection'; 9 import 'dart:collection';
10 10
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 int maxConcreteTypeSize: 5, 80 int maxConcreteTypeSize: 5,
81 bool disableTypeInference: false, 81 bool disableTypeInference: false,
82 bool analyzeAll: false, 82 bool analyzeAll: false,
83 bool analyzeOnly: false, 83 bool analyzeOnly: false,
84 bool emitJavaScript: true, 84 bool emitJavaScript: true,
85 bool preserveComments: false, 85 bool preserveComments: false,
86 // Our unit tests check code generation output that is 86 // Our unit tests check code generation output that is
87 // affected by inlining support. 87 // affected by inlining support.
88 bool disableInlining: true, 88 bool disableInlining: true,
89 bool trustTypeAnnotations: false, 89 bool trustTypeAnnotations: false,
90 bool trustJSInteropTypeAnnotations: false,
90 bool enableAsyncAwait: false, 91 bool enableAsyncAwait: false,
91 int this.expectedWarnings, 92 int this.expectedWarnings,
92 int this.expectedErrors, 93 int this.expectedErrors,
93 api.CompilerOutputProvider outputProvider, 94 api.CompilerOutputProvider outputProvider,
94 String patchVersion, 95 String patchVersion,
95 LibrarySourceProvider this.librariesOverride}) 96 LibrarySourceProvider this.librariesOverride})
96 : sourceFiles = new Map<String, SourceFile>(), 97 : sourceFiles = new Map<String, SourceFile>(),
97 testedPatchVersion = patchVersion, 98 testedPatchVersion = patchVersion,
98 super(enableTypeAssertions: enableTypeAssertions, 99 super(enableTypeAssertions: enableTypeAssertions,
99 enableUserAssertions: enableUserAssertions, 100 enableUserAssertions: enableUserAssertions,
100 enableAssertMessage: true, 101 enableAssertMessage: true,
101 enableMinification: enableMinification, 102 enableMinification: enableMinification,
102 maxConcreteTypeSize: maxConcreteTypeSize, 103 maxConcreteTypeSize: maxConcreteTypeSize,
103 disableTypeInferenceFlag: disableTypeInference, 104 disableTypeInferenceFlag: disableTypeInference,
104 analyzeAllFlag: analyzeAll, 105 analyzeAllFlag: analyzeAll,
105 analyzeOnly: analyzeOnly, 106 analyzeOnly: analyzeOnly,
106 emitJavaScript: emitJavaScript, 107 emitJavaScript: emitJavaScript,
107 preserveComments: preserveComments, 108 preserveComments: preserveComments,
108 trustTypeAnnotations: trustTypeAnnotations, 109 trustTypeAnnotations: trustTypeAnnotations,
110 trustJSInteropTypeAnnotations: trustJSInteropTypeAnnotations,
109 diagnosticOptions: 111 diagnosticOptions:
110 new DiagnosticOptions(showPackageWarnings: true), 112 new DiagnosticOptions(showPackageWarnings: true),
111 outputProvider: new LegacyCompilerOutput(outputProvider)) { 113 outputProvider: new LegacyCompilerOutput(outputProvider)) {
112 this.disableInlining = disableInlining; 114 this.disableInlining = disableInlining;
113 115
114 deferredLoadTask = new MockDeferredLoadTask(this); 116 deferredLoadTask = new MockDeferredLoadTask(this);
115 117
116 clearMessages(); 118 clearMessages();
117 119
118 registerSource(Uris.dart_core, 120 registerSource(Uris.dart_core,
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 trustTypeAnnotations: trustTypeAnnotations, 470 trustTypeAnnotations: trustTypeAnnotations,
469 enableTypeAssertions: enableTypeAssertions, 471 enableTypeAssertions: enableTypeAssertions,
470 enableUserAssertions: enableUserAssertions, 472 enableUserAssertions: enableUserAssertions,
471 expectedErrors: expectedErrors, 473 expectedErrors: expectedErrors,
472 expectedWarnings: expectedWarnings, 474 expectedWarnings: expectedWarnings,
473 outputProvider: outputProvider); 475 outputProvider: outputProvider);
474 compiler.registerSource(uri, code); 476 compiler.registerSource(uri, code);
475 compiler.diagnosticHandler = createHandler(compiler, code); 477 compiler.diagnosticHandler = createHandler(compiler, code);
476 return compiler; 478 return compiler;
477 } 479 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/interop_anonymous_unreachable_test.dart ('k') | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698