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

Unified Diff: chrome/test/data/webui/local_discovery_ui_test.js

Issue 23903011: Modify devices page to match the latest mocks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix browser test Created 7 years, 3 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/ui/webui/local_discovery/local_discovery_ui_handler.cc ('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/local_discovery_ui_test.js
diff --git a/chrome/test/data/webui/local_discovery_ui_test.js b/chrome/test/data/webui/local_discovery_ui_test.js
index d4b96f7975b46c869e04313d30d9fe3de58dff9d..68e7761a062abee9c481c43b0734623d846adc0a 100644
--- a/chrome/test/data/webui/local_discovery_ui_test.js
+++ b/chrome/test/data/webui/local_discovery_ui_test.js
@@ -5,7 +5,7 @@
var $ = document.getElementById.bind(document);
function checkOneDevice() {
- var devices = $('registered-devices').children;
+ var devices = $('register-device-list').children;
assertEquals(1, devices.length);
var firstDevice = devices[0];
@@ -13,14 +13,13 @@ function checkOneDevice() {
assertEquals('Sample device', deviceName);
var deviceDescription =
- firstDevice.querySelector('.device-description').textContent;
+ firstDevice.querySelector('.device-subline').textContent;
assertEquals('Sample device description', deviceDescription);
var button = firstDevice.querySelector('button');
- assertEquals(true, button.disabled);
+ assertEquals(false, button.disabled);
}
function checkNoDevices() {
- assertEquals(0, $('unregistered-devices').children.length);
- assertEquals(0, $('registered-devices').children.length);
+ assertEquals(0, $('register-device-list').children.length);
}
« no previous file with comments | « chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698