blob: 6a8b2e10c9bf6b510baf35be38f0dfb6f56ceea9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
function run_test()
{
// Just check the contract ID alias works well.
try {
var serviceA = Components.classes["@mozilla.org/netwerk/cache-storage-service;1"]
.getService(Components.interfaces.nsICacheStorageService);
do_check_true(serviceA);
var serviceB = Components.classes["@mozilla.org/network/cache-storage-service;1"]
.getService(Components.interfaces.nsICacheStorageService);
do_check_true(serviceB);
do_check_eq(serviceA, serviceB);
} catch (ex) {
do_throw("Cannot instantiate cache storage service: " + ex);
}
}
|