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

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