1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 // This test verifies that the cookieshave the correct store Id in spanning
7 var SET_REMOVE_COOKIE = {
16 expirationDate: 12345678900,
20 chrome.test.runTests([
22 chrome.test.listenOnce(chrome.cookies.onChanged, function (info) {
23 chrome.test.assertFalse(info.removed);
24 chrome.test.assertEq('explicit', info.cause);
25 chrome.test.assertEq(SET_REMOVE_COOKIE, info.cookie);
28 url: 'http://a.com/path',
29 name: 'testSetRemove',
31 expirationDate: 12345678900,
35 function testRemove() {
36 chrome.test.listenOnce(chrome.cookies.onChanged, function (info) {
37 chrome.test.assertTrue(info.removed);
38 chrome.test.assertEq('explicit', info.cause);
39 chrome.test.assertEq(SET_REMOVE_COOKIE, info.cookie);
41 chrome.cookies.remove({
42 url: 'http://a.com/path',
43 name: 'testSetRemove',