Bug 1563597 - Fix lint errors. r=jdai

--HG--
extra : amend_source : 9ded5b32117f5d390d50b90d71e22d215d121f32
This commit is contained in:
Cosmin Sabou 2019-07-23 19:50:19 +03:00
parent 5e17231bd2
commit 20d813093c
2 changed files with 7 additions and 4 deletions

View File

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

View File

@ -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 };