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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 var $ = document.getElementById.bind(document); 5 var $ = document.getElementById.bind(document);
6 6
7 function checkOneDevice() { 7 function checkOneDevice() {
8 var devices = $('registered-devices').children; 8 var devices = $('register-device-list').children;
9 assertEquals(1, devices.length); 9 assertEquals(1, devices.length);
10 var firstDevice = devices[0]; 10 var firstDevice = devices[0];
11 11
12 var deviceName = firstDevice.querySelector('.device-name').textContent; 12 var deviceName = firstDevice.querySelector('.device-name').textContent;
13 assertEquals('Sample device', deviceName); 13 assertEquals('Sample device', deviceName);
14 14
15 var deviceDescription = 15 var deviceDescription =
16 firstDevice.querySelector('.device-description').textContent; 16 firstDevice.querySelector('.device-subline').textContent;
17 assertEquals('Sample device description', deviceDescription); 17 assertEquals('Sample device description', deviceDescription);
18 18
19 var button = firstDevice.querySelector('button'); 19 var button = firstDevice.querySelector('button');
20 assertEquals(true, button.disabled); 20 assertEquals(false, button.disabled);
21 } 21 }
22 22
23 function checkNoDevices() { 23 function checkNoDevices() {
24 assertEquals(0, $('unregistered-devices').children.length); 24 assertEquals(0, $('register-device-list').children.length);
25 assertEquals(0, $('registered-devices').children.length);
26 } 25 }
OLDNEW
« 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