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

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: 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
OLDNEW
(Empty)
1 var $ = document.getElementById.bind(document);
Dan Beam 2013/08/13 00:30:43 needs copyright
Dan Beam 2013/08/13 00:30:43 nit: what you have now is more generic but you see
Noam Samuel 2013/08/13 18:45:38 Done.
2
3 function checkTableHasOneRow() {
4 var rows = $('devices-table').querySelectorAll('tr');
5 assertEquals(2, rows.length);
6 var firstRow = rows.item(1);
Dan Beam 2013/08/13 00:30:43 nit: \n before every "td ="
Noam Samuel 2013/08/13 18:45:38 Done.
7 var td = firstRow.firstChild;
8 assertEquals('myService._privet._tcp.local', td.textContent);
9 td = td.nextSibling;
10 assertEquals('myservice.local', td.textContent);
11 td = td.nextSibling;
12 assertEquals('8888', td.textContent);
13 td = td.nextSibling;
14 assertEquals('1.2.3.4', td.textContent);
15 td = td.nextSibling;
16 assertEquals('unknown', td.textContent);
17 td = td.nextSibling;
18 assertEquals('Registered', td.textContent);
19 }
20
21 function checkTableHasNoRows() {
22 var rows = $('devices-table').querySelectorAll('tr');
23 assertEquals(1, rows.length);
24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698