fix(edge): get client app to work on edge (#35040)

This commit is contained in:
Valeriy
2019-02-03 19:49:27 +03:00
committed by mrugesh mohapatra
parent e71b82c7a4
commit cc6e1fdbf4
7 changed files with 105 additions and 54 deletions

View File

@ -291,11 +291,9 @@ async function createTestRunnerForDOMChallenge(
await context.setContent(build);
await context.evaluate(
async(sources, loadEnzyme) => {
document.__source = sources && 'index' in sources ? sources['index'] : '';
document.__getUserInput = fileName => sources[fileName];
document.__frameReady = () => {};
document.__loadEnzyme = loadEnzyme;
await document.__initTestFrame();
const code = sources && 'index' in sources ? sources['index'] : '';
const getUserInput = fileName => sources[fileName];
await document.__initTestFrame({ code, getUserInput, loadEnzyme });
},
sources,
loadEnzyme