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:
Zalim Bashorov
2017-04-19 20:33:37 +03:00
parent 2f4119a8ae
commit baef649fe4
@@ -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);