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

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

Issue 2919853002: [MD settings] site exceptions, use embedding origin rather than embeddingDisplayName (Closed)
Patch Set: review changes Created 3 years, 5 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
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** @fileoverview Suite of tests for site-list. */ 5 /** @fileoverview Suite of tests for site-list. */
6 6
7 /** 7 /**
8 * An example pref with 2 blocked location items and 2 allowed. This pref 8 * An example pref with 2 blocked location items and 2 allowed. This pref
9 * is also used for the All Sites category and therefore needs values for 9 * is also used for the All Sites category and therefore needs values for
10 * all types, even though some might be blank. 10 * all types, even though some might be blank.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 }; 56 };
57 57
58 /** 58 /**
59 * An example of prefs controlledBy policy. 59 * An example of prefs controlledBy policy.
60 * @type {SiteSettingsPref} 60 * @type {SiteSettingsPref}
61 */ 61 */
62 var prefsControlled = { 62 var prefsControlled = {
63 exceptions: { 63 exceptions: {
64 plugins: [ 64 plugins: [
65 { 65 {
66 embeddingOrigin: 'http://foo-block.com', 66 embeddingOrigin: '',
67 origin: 'http://foo-block.com', 67 origin: 'http://foo-block.com',
68 setting: 'block', 68 setting: 'block',
69 source: 'policy', 69 source: 'policy',
70 }, 70 },
71 ] 71 ]
72 } 72 }
73 }; 73 };
74 74
75 /** 75 /**
76 * An example pref with mixed schemes (present and absent). 76 * An example pref with mixed schemes (present and absent).
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 input.value = expectedPattern; 1095 input.value = expectedPattern;
1096 input.fire('input'); 1096 input.fire('input');
1097 1097
1098 return browserProxy.whenCalled('isPatternValid').then(function(pattern) { 1098 return browserProxy.whenCalled('isPatternValid').then(function(pattern) {
1099 assertEquals(expectedPattern, pattern); 1099 assertEquals(expectedPattern, pattern);
1100 assertTrue(actionButton.disabled); 1100 assertTrue(actionButton.disabled);
1101 assertTrue(input.invalid); 1101 assertTrue(input.invalid);
1102 }); 1102 });
1103 }); 1103 });
1104 }); 1104 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698