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

Unified Diff: tools/perf/page_sets/tough_pinch_zoom_cases.py

Issue 293683002: Synthetic pinch gesture take scale factor as parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | tools/telemetry/telemetry/page/actions/pinch.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/tough_pinch_zoom_cases.py
diff --git a/tools/perf/page_sets/tough_pinch_zoom_cases.py b/tools/perf/page_sets/tough_pinch_zoom_cases.py
index 0f80719643c1b01d8e4421fead286f546ee2542e..a68dbd68e46161c881c3cfd37ea19ce1cd13dc1e 100644
--- a/tools/perf/page_sets/tough_pinch_zoom_cases.py
+++ b/tools/perf/page_sets/tough_pinch_zoom_cases.py
@@ -78,7 +78,7 @@ class GoogleCalendarPage(ToughPinchZoomCasesPage):
action_runner.RunAction(PinchAction(
{
'left_anchor_percentage': 0.1,
- 'top_anchor_percentage': 0.1
+ 'top_anchor_percentage': 0.3
}))
@@ -118,7 +118,7 @@ class GooglePlusPage(ToughPinchZoomCasesPage):
{
'element_function': '''
function(callback) {
- callback(document.getElementsByClassName("Ct")[0])
+ callback(document.getElementById("110031535020051778989-tab-bar"))
}'''
}))
@@ -245,6 +245,26 @@ class YahooGamePage(ToughPinchZoomCasesPage):
action_runner.NavigateToPage(self)
action_runner.RunAction(WaitAction({'seconds':2}))
+
+class YahooAnswersPage(ToughPinchZoomCasesPage):
+
+ """ Why: #1 Alexa reference """
+
+ def __init__(self, page_set):
+ super(YahooAnswersPage, self).__init__(
+ url='http://answers.yahoo.com',
+ page_set=page_set)
+
+ def RunSmoothness(self, action_runner):
+ action_runner.RunAction(PinchAction(
+ {
+ 'element_function': '''
+ function(callback) {
+ callback(document.getElementById("ya-content-apps"))
+ }'''
+ }))
+
+
class ToughPinchZoomCasesPageSet(page_set_module.PageSet):
""" Set of pages that are tricky to pinch-zoom """
@@ -288,8 +308,7 @@ class ToughPinchZoomCasesPageSet(page_set_module.PageSet):
# Why: #1 Alexa recreation
self.AddPage(ToughPinchZoomCasesPage('http://booking.com', self))
- # Why: #1 Alexa reference
- self.AddPage(ToughPinchZoomCasesPage('http://answers.yahoo.com', self))
+ self.AddPage(YahooAnswersPage(self))
# Why: #1 Alexa sports
self.AddPage(ToughPinchZoomCasesPage('http://sports.yahoo.com/', self))
« no previous file with comments | « content/renderer/gpu/gpu_benchmarking_extension.cc ('k') | tools/telemetry/telemetry/page/actions/pinch.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698