summaryrefslogtreecommitdiffstats
path: root/dom/ipc/tests/JSWindowActor/browser_registerWindowActor.js
blob: 838fa653b42de2ae6b1233e8b862548aa9697008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";

declTest("double register", {
  async test() {
    SimpleTest.doesThrow(
      () => ChromeUtils.registerWindowActor("TestWindow", windowActorOptions),
      "Should throw if register has duplicate name."
    );
  },
});