mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-08 12:37:37 +00:00
17 lines
612 B
JavaScript
17 lines
612 B
JavaScript
|
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);
|
||
|
}
|
||
|
}
|