Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/test/data/webui/settings/site_data_test.js

Issue 2686063004: MD Settings: make blowing away per-origin data (i.e. cookies) easier (Closed)
Patch Set: dschuyler@ review Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 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.
4
5 suite('<site-data>', function() {
6 /** @type {SiteDataElement} */
7 var siteData;
8
9 /** @type {TestSiteSettingsPrefsBrowserProxy} */
10 var testBrowserProxy;
11
12 setup(function() {
13 testBrowserProxy = new TestSiteSettingsPrefsBrowserProxy;
14 settings.SiteSettingsPrefsBrowserProxyImpl.instance_ = testBrowserProxy;
15 siteData = document.createElement('site-data');
16 });
17
18 test('tapping remove button (trash can) calls remove on origin', function() {
19 var GOOGLE_ID = '1';
20 siteData.sites = [{site: 'Google', id: GOOGLE_ID, localData: 'Cookiez!'}];
21 Polymer.dom.flush();
22
23 MockInteractions.tap(siteData.$$('.remove-site'));
24
25 return testBrowserProxy.whenCalled('removeCookie').then(function(path) {
26 assertEquals(GOOGLE_ID, path);
27 });
28 });
29 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698