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

Side by Side Diff: chrome/test/data/webui/local_discovery_ui_test.js

Issue 20070002: Demo UI for device discovery and registration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added FILE_PATH_LITERAL macro to fix windows compile problem Created 7 years, 4 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
« no previous file with comments | « chrome/chrome_tests.gypi ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 function tableRows() {
6 return document.querySelectorAll('#devices-table tr');
7 }
8
9 function checkTableHasOneRow() {
10 var rows = tableRows();
11 assertEquals(2, rows.length);
12 var firstRow = rows.item(1);
13
14 var td = firstRow.firstChild;
15 assertEquals('myService._privet._tcp.local', td.textContent);
16
17 td = td.nextSibling;
18 assertEquals('myservice.local', td.textContent);
19
20 td = td.nextSibling;
21 assertEquals('8888', td.textContent);
22
23 td = td.nextSibling;
24 assertEquals('1.2.3.4', td.textContent);
25
26 td = td.nextSibling;
27 assertEquals('unknown', td.textContent);
28
29 td = td.nextSibling;
30 assertEquals('Registered', td.textContent);
31 }
32
33 function checkTableHasNoRows() {
34 var rows = tableRows();
35 assertEquals(1, rows.length);
36 }
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698