KJS: change asserter to DefaultAsserter for JS Backend tests
It required for fix JsCodegenBoxTestGenerated. Right now QUnitAsserter used as default asserter in kotlin-test and we don't want to change it now to avoid breaking stdlib-js tests and maybe user code.
This commit is contained in:
@@ -190,6 +190,10 @@ public final class RhinoUtils {
|
||||
runFileWithRhino(DIST_DIR_JS_PATH + "kotlin.js", context, scope);
|
||||
runFileWithRhino(DIST_DIR_JS_PATH + "kotlin-test.js", context, scope);
|
||||
|
||||
context.evaluateString(scope,
|
||||
"this['kotlin-test'].kotlin.test._asserter = new this['kotlin-test'].kotlin.test.DefaultAsserter();",
|
||||
"change asserter to DefaultAsserter", 1, null);
|
||||
|
||||
//runFileWithRhino(pathToTestFilesRoot() + "jshint.js", context, scope);
|
||||
for (String jsLibrary : jsLibraries) {
|
||||
runFileWithRhino(jsLibrary, context, scope);
|
||||
|
||||
Reference in New Issue
Block a user