mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
e99a1058cb
r=biesi
16 lines
613 B
JavaScript
16 lines
613 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
* http://creativecommons.org/publicdomain/zero/1.0/
|
|
*/
|
|
|
|
function run_test() {
|
|
var cs = Components.classes["@mozilla.org/network/cache-service;1"].
|
|
getService(Components.interfaces.nsICacheService);
|
|
var nsICache = Components.interfaces.nsICache;
|
|
var session = cs.createSession("client",
|
|
nsICache.STORE_ANYWHERE,
|
|
true);
|
|
var entry = session.openCacheEntry("key", nsICache.STORE_ON_DISK, true);
|
|
entry.deviceID;
|
|
// if the above line does not crash, the test was successful
|
|
}
|