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

Unified Diff: chrome/test/functional/perf.py

Issue 8757013: Fix pyauto-based perf test testNewTabCalendar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/functional/perf.py
diff --git a/chrome/test/functional/perf.py b/chrome/test/functional/perf.py
index 6cb7692ff153998292f8513d3c6d0f343bf87335..35dd6617b3457ea0a991e7566ca2d3105c77ca35 100755
--- a/chrome/test/functional/perf.py
+++ b/chrome/test/functional/perf.py
@@ -492,8 +492,9 @@ class LiveWebappLoadTest(BasePerfTest):
js = """
var divs = document.getElementsByTagName("div");
for (var i = 0; i < divs.length; ++i) {
- if (divs[i].hasOwnProperty("title") &&
- divs[i].title.indexOf("%s") == 0)
+ if (divs[i].hasOwnProperty("dataset") &&
+ divs[i].dataset.hasOwnProperty("tooltip") &&
+ divs[i].dataset.tooltip.indexOf("%s") == 0)
window.domAutomationController.send("true");
}
window.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