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

Unified Diff: chrome/test/media_router/media_router_integration_browsertest.cc

Issue 2674793005: Use allSinks to find a sink in kFindSinkScript. (Closed)
Patch Set: Created 3 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/media_router/media_router_integration_browsertest.cc
diff --git a/chrome/test/media_router/media_router_integration_browsertest.cc b/chrome/test/media_router/media_router_integration_browsertest.cc
index 32a5e7de342edaa59860ce9dde37854c184687d2..a499e07b9513c1c1c506b7b4d44f3c6c8a77f39c 100644
--- a/chrome/test/media_router/media_router_integration_browsertest.cc
+++ b/chrome/test/media_router/media_router_integration_browsertest.cc
@@ -83,10 +83,9 @@ const char kGetRouteIdScript[] =
"}"
"domAutomationController.send('');";
const char kFindSinkScript[] =
- "var sinks = document.getElementById('media-router-container')."
- " shadowRoot.getElementById('sink-list').getElementsByTagName('span');"
+ "var sinks = document.getElementById('media-router-container').allSinks;"
imcheng 2017/02/06 21:36:03 I don't think we should be using allSinks, as it i
cliffordcheng1 2017/02/06 23:11:26 The other option is to check if the sink-list is n
"for (var i=0; i<sinks.length; i++) {"
- " if (sinks[i].textContent.trim() == '%s') {"
+ " if (sinks[i].name.trim() == '%s') {"
" domAutomationController.send(true);"
"}}"
"domAutomationController.send(false);";
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698