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

Unified Diff: chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js

Issue 1875413002: MD Settings: polish top-level bluetooth page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 4 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
diff --git a/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js b/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
index 52e57e41b4fe8d4f650847c01437c5f1e1dce49e..f9416cd92b67b6034b7db38cbfff631aa7f8461e 100644
--- a/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
+++ b/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
@@ -130,13 +130,13 @@ TEST_F('SettingsBluetoothPageBrowserTest', 'MAYBE_Bluetooth', function() {
// Set enabled, with default (empty) device list.
self.bluetoothApi_.setEnabled(true);
Polymer.dom.flush();
- // Ensure that initially the 'device list empty' span is visible.
+ // Ensure that initially the 'no devices' element is visible.
expectFalse(deviceList.hidden);
- var noDevices = deviceList.querySelector('span');
+ var noDevices = deviceList.querySelector('.no-devices');
assertTrue(!!noDevices);
expectFalse(noDevices.hidden);
- // Set some devices (triggers onDeviceAdded events). 'empty' span should
- // be hidden.
+ // Set some devices (triggers onDeviceAdded events). 'no devices' element
+ // should be hidden.
self.bluetoothApi_.setDevicesForTest(fakeDevices_);
Polymer.dom.flush();
expectTrue(noDevices.hidden);
@@ -157,7 +157,7 @@ TEST_F('SettingsBluetoothPageBrowserTest', 'MAYBE_Bluetooth', function() {
self.bluetoothApi_.setEnabled(true);
// Tap the 'add device' button.
- MockInteractions.tap(bluetooth.$.addDevice);
+ MockInteractions.tap(bluetooth.$$('.primary-button'));
Polymer.dom.flush();
// Ensure the dialog appears.
var dialog = bluetooth.$.deviceDialog;
« no previous file with comments | « chrome/browser/resources/settings/settings_shared_css.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698