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

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

Issue 2668623002: MD Settings: Fix remaining tests that fail in Vulcanized mode. (Closed)
Patch Set: Rebase 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 cr.define('settings_test', function() { 5 cr.define('settings_test', function() {
6 6
7 suite('SearchSettingsTest', function() { 7 suite('SearchSettingsTest', function() {
8 var searchManager; 8 var searchManager;
9 9
10 suiteSetup(function() { 10 var USE_VULCANIZE = true;
11 return PolymerTest.loadScript('chrome://md-settings/search_settings.js'); 11 if (!USE_VULCANIZE) {
Dan Beam 2017/02/03 22:49:08 if (settings.SearchRequest)?
12 }); 12 suiteSetup(function() {
13 return PolymerTest.loadScript(
14 'chrome://md-settings/search_settings.js');
15 });
16 }
13 17
14 setup(function() { 18 setup(function() {
15 searchManager = settings.getSearchManager(); 19 searchManager = settings.getSearchManager();
16 PolymerTest.clearBody(); 20 PolymerTest.clearBody();
17 }); 21 });
18 22
19 /** 23 /**
20 * Test that the DOM of a node is modified as expected when a search hit 24 * Test that the DOM of a node is modified as expected when a search hit
21 * occurs within that node. 25 * occurs within that node.
22 */ 26 */
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 }).then(function() { 93 }).then(function() {
90 var options = select.querySelectorAll('option'); 94 var options = select.querySelectorAll('option');
91 assertEquals(3, options.length); 95 assertEquals(3, options.length);
92 assertEquals('Foo', options[0].textContent); 96 assertEquals('Foo', options[0].textContent);
93 assertEquals('Settings', options[1].textContent); 97 assertEquals('Settings', options[1].textContent);
94 assertEquals('Baz', options[2].textContent); 98 assertEquals('Baz', options[2].textContent);
95 }); 99 });
96 }); 100 });
97 }); 101 });
98 }); 102 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698