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); |