diff options
author | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
---|---|---|
committer | Matt A. Tobin <email@mattatobin.com> | 2018-02-03 06:00:38 -0500 |
commit | 8148615da179fdd60f19018e13b4e94b95609cc6 (patch) | |
tree | 771fccdd99fa3adf35fdd2c81d8197b415a89b91 /browser/components/sessionstore/test/browser_global_store.js | |
parent | 494802c1be7888025b95260d23db187467d2b9dd (diff) | |
download | UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.gz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.lz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.tar.xz UXP-8148615da179fdd60f19018e13b4e94b95609cc6.zip |
Remove browser tests - Part 1: The Tests (except for experiments)
Diffstat (limited to 'browser/components/sessionstore/test/browser_global_store.js')
-rw-r--r-- | browser/components/sessionstore/test/browser_global_store.js | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/browser/components/sessionstore/test/browser_global_store.js b/browser/components/sessionstore/test/browser_global_store.js deleted file mode 100644 index 792154830..000000000 --- a/browser/components/sessionstore/test/browser_global_store.js +++ /dev/null @@ -1,45 +0,0 @@ -/* Any copyright is dedicated to the Public Domain. - http://creativecommons.org/publicdomain/zero/1.0/ */ - -// Tests the API for saving global session data. -add_task(function* () { - const key1 = "Unique name 1: " + Date.now(); - const key2 = "Unique name 2: " + Date.now(); - const value1 = "Unique value 1: " + Math.random(); - const value2 = "Unique value 2: " + Math.random(); - - let global = {}; - global[key1] = value1; - - const testState = { - windows: [ - { - tabs: [ - { entries: [{ url: "about:blank" }] }, - ] - } - ], - global: global - }; - - function testRestoredState() { - is(ss.getGlobalValue(key1), value1, "restored state has global value"); - } - - function testGlobalStore() { - is(ss.getGlobalValue(key2), "", "global value initially not set"); - - ss.setGlobalValue(key2, value1); - is(ss.getGlobalValue(key2), value1, "retreived value matches stored"); - - ss.setGlobalValue(key2, value2); - is(ss.getGlobalValue(key2), value2, "previously stored value was overwritten"); - - ss.deleteGlobalValue(key2); - is(ss.getGlobalValue(key2), "", "global value was deleted"); - } - - yield promiseBrowserState(testState); - testRestoredState(); - testGlobalStore(); -}); |