summaryrefslogtreecommitdiffstats
path: root/netwerk/test/browser/browser_bug1535877.js
blob: 0bd0a98d116386ebaa36fec2259f87f59790d3cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

add_task(_ => {
  try {
    Cc["@mozilla.org/network/effective-tld-service;1"].createInstance(
      Ci.nsISupports
    );
  } catch (e) {
    is(
      e.result,
      Cr.NS_ERROR_XPC_CI_RETURNED_FAILURE,
      "Component creation as an instance fails with expected code"
    );
  }
});