diff options
author | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-04 01:58:43 +0100 |
---|---|---|
committer | janekptacijarabaci <janekptacijarabaci@seznam.cz> | 2018-03-04 01:58:43 +0100 |
commit | e78a87b4188fd266d6ec9662c95ef147dbbd92cd (patch) | |
tree | 0b0cf0ab3b3596ea43e57e59dfaca46c4ff2324c /devtools/client/storage/test/browser_storage_cookies_domain_port.js | |
parent | a53fe8f5c92ceeb091df55ce41b69f49f7d6c6d6 (diff) | |
download | UXP-e78a87b4188fd266d6ec9662c95ef147dbbd92cd.tar UXP-e78a87b4188fd266d6ec9662c95ef147dbbd92cd.tar.gz UXP-e78a87b4188fd266d6ec9662c95ef147dbbd92cd.tar.lz UXP-e78a87b4188fd266d6ec9662c95ef147dbbd92cd.tar.xz UXP-e78a87b4188fd266d6ec9662c95ef147dbbd92cd.zip |
moebius#346: Storage Inspector should trim port from hosts for cookies
Issue #31
https://github.com/MoonchildProductions/moebius/pull/346
Diffstat (limited to 'devtools/client/storage/test/browser_storage_cookies_domain_port.js')
-rw-r--r-- | devtools/client/storage/test/browser_storage_cookies_domain_port.js | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/devtools/client/storage/test/browser_storage_cookies_domain_port.js b/devtools/client/storage/test/browser_storage_cookies_domain_port.js new file mode 100644 index 000000000..a5bc2e5be --- /dev/null +++ b/devtools/client/storage/test/browser_storage_cookies_domain_port.js @@ -0,0 +1,29 @@ +/* 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 that cookies with domain equal to full host name and port are listed. +// E.g., ".example.org:8000" vs. example.org:8000). + +add_task(function* () { + yield openTabAndSetupStorage(MAIN_DOMAIN_WITH_PORT + "storage-cookies.html"); + + yield checkState([ + [ + ["cookies", "http://test1.example.org:8000"], + [ + getCookieId("test1", ".test1.example.org", "/browser"), + getCookieId("test2", "test1.example.org", "/browser"), + getCookieId("test3", ".test1.example.org", "/browser"), + getCookieId("test4", "test1.example.org", "/browser"), + getCookieId("test5", ".test1.example.org", "/browser") + ] + ], + ]); + + yield finishTests(); +}); |