зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1605854 - Remove toSource from fission tests. r=kmag,botond
Differential Revision: https://phabricator.services.mozilla.com/D58485 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
188c9b376a
Коммит
d1b15f3063
|
@ -50,7 +50,7 @@ async function setup_in_oopif() {
|
|||
|
||||
const iframePromise = promiseOneEvent("OOPIF:SetupDone", null);
|
||||
|
||||
await FissionTestHelper.sendToOopif(testframe, setup.toSource() + "()");
|
||||
await FissionTestHelper.sendToOopif(testframe, `(${setup})()`);
|
||||
await iframePromise;
|
||||
}
|
||||
|
||||
|
@ -67,7 +67,7 @@ async function observe_styling_in_oopif(aFrameCount) {
|
|||
}
|
||||
|
||||
const iframePromise = promiseOneEvent("OOPIF:StyleCount", null);
|
||||
await FissionTestHelper.sendToOopif(testframe, observe_styling.toSource() + `(${aFrameCount})`);
|
||||
await FissionTestHelper.sendToOopif(testframe, `(${observe_styling})(${aFrameCount})`);
|
||||
|
||||
const styleCountData = await iframePromise;
|
||||
return styleCountData.data;
|
||||
|
|
|
@ -46,7 +46,7 @@ async function setup_in_oopif() {
|
|||
|
||||
const iframePromise = promiseOneEvent("OOPIF:SetupDone", null);
|
||||
|
||||
await FissionTestHelper.sendToOopif(testframe, setup.toSource() + "()");
|
||||
await FissionTestHelper.sendToOopif(testframe, `(${setup})()`);
|
||||
const rectData = await iframePromise;
|
||||
return rectData.data;
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ async function observe_styling_in_oopif(aFrameCount) {
|
|||
}
|
||||
|
||||
const iframePromise = promiseOneEvent("OOPIF:StyleCount", null);
|
||||
await FissionTestHelper.sendToOopif(testframe, observe_styling.toSource() + `(${aFrameCount})`);
|
||||
await FissionTestHelper.sendToOopif(testframe, `(${observe_styling})(${aFrameCount})`);
|
||||
|
||||
const styleCountData = await iframePromise;
|
||||
return styleCountData.data;
|
||||
|
|
|
@ -41,7 +41,7 @@ let code_for_oopif_to_run = function() {
|
|||
async function* test() {
|
||||
let iframeElement = document.getElementById("testframe");
|
||||
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, code_for_oopif_to_run.toSource() + "()");
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, `(${code_for_oopif_to_run})()`);
|
||||
dump("OOPIF response: " + JSON.stringify(iframeResponse) + "\n");
|
||||
ok(iframeResponse, "code_for_oopif_to_run successfully installed");
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ async function* test() {
|
|||
|
||||
let iframeElement = document.getElementById("testframe");
|
||||
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, code_for_oopif_to_run.toSource() + "()");
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, `(${code_for_oopif_to_run})()`);
|
||||
dump("OOPIF response: " + JSON.stringify(iframeResponse) + "\n");
|
||||
ok(iframeResponse, "code_for_oopif_to_run successfully installed");
|
||||
|
||||
|
|
|
@ -44,7 +44,7 @@ function failsafe() {
|
|||
async function* test() {
|
||||
let iframeElement = document.getElementById("testframe");
|
||||
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, code_for_oopif_to_run.toSource() + "()");
|
||||
let iframeResponse = await FissionTestHelper.sendToOopif(iframeElement, `(${code_for_oopif_to_run})()`);
|
||||
dump("OOPIF response: " + JSON.stringify(iframeResponse) + "\n");
|
||||
ok(iframeResponse, "code_for_oopif_to_run successfully installed");
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче