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

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

Issue 8858001: Minor edits to perf.py to account for UI changes in Gmail/Calendar. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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 7b3261457a7510dc94aef23644a449a8873f2062..e75faba04bf779fb1880ca44b1d8cd526c5db21d 100755
--- a/chrome/test/functional/perf.py
+++ b/chrome/test/functional/perf.py
@@ -488,15 +488,13 @@ class LiveWebappLoadTest(BasePerfTest):
Timing starts right before the new tab is opened, and stops as soon as the
webpage displays the calendar print button (title 'Print my calendar').
"""
- EXPECTED_SUBSTRING = 'Print my calendar'
+ EXPECTED_SUBSTRING = 'Month'
def _DivTitleStartsWith():
js = """
var divs = document.getElementsByTagName("div");
for (var i = 0; i < divs.length; ++i) {
- if (divs[i].hasOwnProperty("dataset") &&
- divs[i].dataset.hasOwnProperty("tooltip") &&
- divs[i].dataset.tooltip.indexOf("%s") == 0)
+ if (divs[i].innerHTML == "%s")
window.domAutomationController.send("true");
}
window.domAutomationController.send("false");
@@ -1068,7 +1066,7 @@ class MemoryBloatTest(BasePerfTest):
compose_button = wait.until(lambda _: _GetElement(
driver.find_element_by_xpath,
- '//div[text()="Compose mail"]'))
+ '//div[text()="COMPOSE"]'))
compose_button.click()
to_field = wait.until(lambda _: _GetElement(
« 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