summaryrefslogtreecommitdiffstats
path: root/dom/ipc/tests/JSProcessActor/browser_registerProcessActor.js
blob: 1fa4e1c17c79eebe9c40352e87182be2eeb47226 (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.registerContentActor(
          "TestProcessActor",
          processActorOptions[fileExt]
        ),
      "Should throw if register has duplicate name."
    );
  },
});