зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1563597 - Fix lint errors. r=jdai
--HG-- extra : amend_source : 9ded5b32117f5d390d50b90d71e22d215d121f32
This commit is contained in:
Родитель
5e17231bd2
Коммит
20d813093c
|
@ -2,6 +2,7 @@
|
|||
http://creativecommons.org/publicdomain/zero/1.0/ */
|
||||
"use strict";
|
||||
|
||||
/* eslint-disable no-unused-vars */
|
||||
declTest("test observer triggering actor creation", {
|
||||
async test(browser) {
|
||||
await ContentTask.spawn(browser, {}, async function() {
|
||||
|
@ -64,7 +65,8 @@ declTest("observers don't notify with wrong window", {
|
|||
});
|
||||
|
||||
declTest("observers notify with audio-playback", {
|
||||
url: "http://example.com/browser/dom/ipc/tests/JSWindowActor/file_mediaPlayback.html",
|
||||
url:
|
||||
"http://example.com/browser/dom/ipc/tests/JSWindowActor/file_mediaPlayback.html",
|
||||
|
||||
async test(browser) {
|
||||
await ContentTask.spawn(browser, {}, async function() {
|
||||
|
@ -76,10 +78,11 @@ declTest("observers notify with audio-playback", {
|
|||
ok(actorChild, "JSWindowActorChild should have value.");
|
||||
|
||||
let observePromise = new Promise(resolve => {
|
||||
actorChild.done = ({subject, topic, data}) => resolve({subject, topic, data});
|
||||
actorChild.done = ({ subject, topic, data }) =>
|
||||
resolve({ subject, topic, data });
|
||||
});
|
||||
|
||||
let {subject, topic, data} = await observePromise;
|
||||
let { subject, topic, data } = await observePromise;
|
||||
is(topic, "audio-playback", "Topic matches");
|
||||
is(data, "active", "Data matches");
|
||||
});
|
||||
|
|
|
@ -39,7 +39,7 @@ class TestChild extends JSWindowActorChild {
|
|||
observe(subject, topic, data) {
|
||||
switch (topic) {
|
||||
case "audio-playback":
|
||||
this.done({subject, topic, data});
|
||||
this.done({ subject, topic, data });
|
||||
break;
|
||||
default:
|
||||
this.lastObserved = { subject, topic, data };
|
||||
|
|
Загрузка…
Ссылка в новой задаче