1 /* Any copyright is dedicated to the Public Domain.
2 http://creativecommons.org/publicdomain/zero/1.0/ */
4 add_task(async function () {
5 Assert.ok("console" in this);
7 let p = new Promise(resolve => {
8 function consoleListener() {
9 addConsoleStorageListener(this);
12 consoleListener.prototype = {
14 let obj = aSubject.wrappedJSObject;
15 Assert.ok(obj.arguments[0] === 42, "Message received!");
16 Assert.ok(obj.ID === "jsm", "The ID is JSM");
17 Assert.ok(obj.innerID.endsWith("test_basic.js"), "The innerID matches");
19 removeConsoleStorageListener(this);
24 new consoleListener();