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

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

Issue 1342213003: Add optional message to assert in Dart2js - continued (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add --assert-message flag Created 5 years, 3 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 | « tests/compiler/dart2js/js_backend_cps_ir.dart ('k') | tests/compiler/dart2js/mock_libraries.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 b52951c119409a518164fa2bc0ec4ded923cf3e0..06265f4982ce8066c1fdc6febb37a6a360d8355c 100644
--- a/tests/compiler/dart2js/mock_compiler.dart
+++ b/tests/compiler/dart2js/mock_compiler.dart
@@ -74,6 +74,7 @@ class MockCompiler extends Compiler {
MockCompiler.internal(
{Map<String, String> coreSource,
bool enableTypeAssertions: false,
+ bool enableUserAssertions: false,
bool enableMinification: false,
bool enableConcreteTypeInference: false,
int maxConcreteTypeSize: 5,
@@ -95,6 +96,8 @@ class MockCompiler extends Compiler {
: sourceFiles = new Map<String, SourceFile>(),
testedPatchVersion = patchVersion,
super(enableTypeAssertions: enableTypeAssertions,
+ enableUserAssertions: enableUserAssertions,
+ enableAssertMessage: true,
enableMinification: enableMinification,
enableConcreteTypeInference: enableConcreteTypeInference,
maxConcreteTypeSize: maxConcreteTypeSize,
@@ -447,6 +450,7 @@ MockCompiler compilerFor(String code, Uri uri,
bool minify: false,
bool trustTypeAnnotations: false,
bool enableTypeAssertions: false,
+ bool enableUserAssertions: false,
int expectedErrors,
int expectedWarnings,
api.CompilerOutputProvider outputProvider}) {
@@ -458,6 +462,7 @@ MockCompiler compilerFor(String code, Uri uri,
enableMinification: minify,
trustTypeAnnotations: trustTypeAnnotations,
enableTypeAssertions: enableTypeAssertions,
+ enableUserAssertions: enableUserAssertions,
expectedErrors: expectedErrors,
expectedWarnings: expectedWarnings,
outputProvider: outputProvider);
« no previous file with comments | « tests/compiler/dart2js/js_backend_cps_ir.dart ('k') | tests/compiler/dart2js/mock_libraries.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698