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:
Tom Schuster 2020-01-07 13:15:59 +00:00
Родитель 188c9b376a
Коммит d1b15f3063
5 изменённых файлов: 7 добавлений и 7 удалений

Просмотреть файл

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