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

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

Issue 1954383002: MD Settings: combine bluetooth adding and pairing dialogs into one (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: whoops, html deps Created 4 years, 7 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_resources.grd ('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 f9416cd92b67b6034b7db38cbfff631aa7f8461e..906756b93132deb42350ae11f846e862b01bb096 100644
--- a/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
+++ b/chrome/test/data/webui/settings/bluetooth_page_browsertest_chromeos.js
@@ -162,11 +162,11 @@ TEST_F('SettingsBluetoothPageBrowserTest', 'MAYBE_Bluetooth', function() {
// Ensure the dialog appears.
var dialog = bluetooth.$.deviceDialog;
assertTrue(!!dialog);
- assertTrue(dialog.opened);
- var addDialog = bluetooth.$$('settings-bluetooth-add-device-dialog');
- assertTrue(!!addDialog);
+ assertTrue(dialog.$.dialog.opened);
+
// Ensure the dialog has the expected devices.
- var devicesDiv = addDialog.$.dialogDeviceList;
+ var devicesDiv = dialog.$$('#dialogDeviceList');
+ assertTrue(!!devicesDiv);
var devices = devicesDiv.querySelectorAll('bluetooth-device-list-item');
assertEquals(2, devices.length);
@@ -174,17 +174,18 @@ TEST_F('SettingsBluetoothPageBrowserTest', 'MAYBE_Bluetooth', function() {
MockInteractions.tap(devices[0].$$('div'));
Polymer.dom.flush();
// Ensure the pairing dialog is shown.
- var pairDialog = bluetooth.$$('settings-bluetooth-pair-device-dialog');
- assertTrue(!!pairDialog);
+ assertTrue(!!dialog.$$('#pairing'));
// Ensure the device is connected to.
expectEquals(1, self.bluetoothPrivateApi_.connectedDevices_.size);
var deviceAddress =
self.bluetoothPrivateApi_.connectedDevices_.keys().next().value;
// Close the dialog.
- MockInteractions.tap(pairDialog.$.close);
+ var close = dialog.$$('#closePair');
+ assertTrue(!!close);
+ MockInteractions.tap(close);
Polymer.dom.flush();
- expectFalse(dialog.opened);
+ expectFalse(dialog.$.dialog.opened);
var response = self.bluetoothPrivateApi_.pairingResponses_[deviceAddress];
assertTrue(!!response);
expectEquals(chrome.bluetoothPrivate.PairingResponse.CANCEL,
« no previous file with comments | « chrome/browser/resources/settings/settings_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698