Files
tenfourfox/devtools/client/commandline/test/browser_cmd_cookie_host.js
Cameron Kaiser c9b2922b70 hello FPR
2017-04-19 00:56:45 -07:00

40 lines
1013 B
JavaScript

/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
// Tests that the cookie command works for host with a port specified
const TEST_URI = "http://mochi.test:8888/browser/devtools/client/commandline/"+
"test/browser_cmd_cookie.html";
function test() {
helpers.addTabWithToolbar(TEST_URI, function(options) {
return helpers.audit(options, [
{
setup: 'cookie list',
exec: {
output: [ /zap=zep/, /zip=zop/ ],
}
},
{
setup: "cookie set zup banana",
check: {
args: {
name: { value: 'zup' },
value: { value: 'banana' },
}
},
exec: {
output: ""
}
},
{
setup: "cookie list",
exec: {
output: [ /zap=zep/, /zip=zop/, /zup=banana/, /Edit/ ]
}
}
]);
}).then(finish, helpers.handleError);
}