summaryrefslogtreecommitdiffstats
path: root/netwerk/test/unit/test_cache2-00-service-get.js
blob: 0d348a81deaef62324f22993edc83505b40d0f83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"use strict";

function run_test() {
  // Just check the contract ID alias works well.
  try {
    var serviceA = Services.cache2;
    Assert.ok(serviceA);
    var serviceB = Services.cache2;
    Assert.ok(serviceB);

    Assert.equal(serviceA, serviceB);
  } catch (ex) {
    do_throw("Cannot instantiate cache storage service: " + ex);
  }
}