diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-02 15:26:16 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-02 15:26:16 +0100 |
commit | f0175fb7abd0aad3054236fb1a0cc430c6d05db9 (patch) | |
tree | d2c2abdec133cfb7cbb11b0843a6018678cd67cf /devtools/client/storage/test/browser_storage_dom_cache_disabled.js | |
parent | 4240e91e328b12c1b7f47b813e20c5671f4d8593 (diff) | |
download | UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.gz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.lz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.tar.xz UXP-f0175fb7abd0aad3054236fb1a0cc430c6d05db9.zip |
Bug 1321820: Storage Inspector fails with dom.caches.enabled=false
Issue #31
Diffstat (limited to 'devtools/client/storage/test/browser_storage_dom_cache_disabled.js')
-rw-r--r-- | devtools/client/storage/test/browser_storage_dom_cache_disabled.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/devtools/client/storage/test/browser_storage_dom_cache_disabled.js b/devtools/client/storage/test/browser_storage_dom_cache_disabled.js new file mode 100644 index 000000000..db0aca392 --- /dev/null +++ b/devtools/client/storage/test/browser_storage_dom_cache_disabled.js @@ -0,0 +1,37 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + +/* import-globals-from ../../framework/test/shared-head.js */ + +"use strict"; + +// Test the storage inspector when dom.caches.enabled=false. + +add_task(function* () { + // Disable the DOM cache + Services.prefs.setBoolPref(DOM_CACHE, false); + + yield openTabAndSetupStorage(MAIN_DOMAIN + "storage-listings.html"); + + const state = [ + [["localStorage", "http://test1.example.org"], + ["ls1", "ls2"]], + [["localStorage", "http://sectest1.example.org"], + ["iframe-u-ls1"]], + [["localStorage", "https://sectest1.example.org"], + ["iframe-s-ls1"]], + [["sessionStorage", "http://test1.example.org"], + ["ss1"]], + [["sessionStorage", "http://sectest1.example.org"], + ["iframe-u-ss1", "iframe-u-ss2"]], + [["sessionStorage", "https://sectest1.example.org"], + ["iframe-s-ss1"]], + [["indexedDB", "http://test1.example.org", "idb1 (default)", "obj1"], + [1, 2, 3]], + ]; + + yield checkState(state); + + yield finishTests(); +}); |