| Index: tools/perf/page_sets/top_25.py
|
| diff --git a/tools/perf/page_sets/top_25.py b/tools/perf/page_sets/top_25.py
|
| index 4e66b639804200f0dba1bcbcf31a2c264f9aac24..aa5d53aa09e3c88b82f7bad285c2405615ccc2c4 100644
|
| --- a/tools/perf/page_sets/top_25.py
|
| +++ b/tools/perf/page_sets/top_25.py
|
| @@ -46,64 +46,6 @@ class GoogleWebSearchPage(Top25Page):
|
| action_runner.NavigateToPage(self)
|
| action_runner.WaitForElement(text='Next')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Next')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Next')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Next')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Next')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Next')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Previous')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Previous')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Previous')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Previous')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Previous')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Previous')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Images')
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(text='Images')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - action_runner.WaitForElement(text='Images')
|
| -
|
|
|
| class GmailPage(Top25Page):
|
|
|
| @@ -122,16 +64,6 @@ class GmailPage(Top25Page):
|
| 'window.gmonkey !== undefined &&'
|
| 'document.getElementById("gb") !== null')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(
|
| - 'a[href="https://mail.google.com/mail/u/0/?shva=1#starred"]')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| - old_href = _GetCurrentLocation(action_runner)
|
| - action_runner.ClickElement(
|
| - 'a[href="https://mail.google.com/mail/u/0/?shva=1#inbox"]')
|
| - _WaitForLocationChange(action_runner, old_href)
|
| -
|
| def RunSmoothness(self, action_runner):
|
| action_runner.ExecuteJavaScript('''
|
| gmonkey.load('2.0', function(api) {
|
| @@ -170,32 +102,6 @@ class GoogleCalendarPage(Top25Page):
|
| })();''')
|
| action_runner.Wait(1)
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - action_runner.ClickElement('div[class~="navForward"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navForward"]')
|
| - action_runner.ClickElement('div[class~="navForward"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navForward"]')
|
| - action_runner.ClickElement('div[class~="navForward"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navForward"]')
|
| - action_runner.ClickElement('div[class~="navForward"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navBack"]')
|
| - action_runner.ClickElement('div[class~="navBack"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navBack"]')
|
| - action_runner.ClickElement('div[class~="navBack"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navBack"]')
|
| - action_runner.ClickElement('div[class~="navBack"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navBack"]')
|
| - action_runner.ClickElement('div[class~="navBack"]')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement('div[class~="navBack"]')
|
| -
|
| def RunSmoothness(self, action_runner):
|
| interaction = action_runner.BeginGestureInteraction(
|
| 'ScrollAction', is_smooth=True)
|
| @@ -256,23 +162,6 @@ class GooglePlusPage(Top25Page):
|
| action_runner.NavigateToPage(self)
|
| action_runner.WaitForElement(text='Home')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - action_runner.ClickElement(text='Home')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement(text='Profile')
|
| - action_runner.ClickElement(text='Profile')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement(text='Explore')
|
| - action_runner.ClickElement(text='Explore')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement(text='Events')
|
| - action_runner.ClickElement(text='Events')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement(text='Communities')
|
| - action_runner.ClickElement(text='Communities')
|
| - action_runner.Wait(2)
|
| - action_runner.WaitForElement(text='Home')
|
| -
|
| def RunSmoothness(self, action_runner):
|
| interaction = action_runner.BeginGestureInteraction(
|
| 'ScrollAction', is_smooth=True)
|
| @@ -311,28 +200,6 @@ class BlogspotPage(Top25Page):
|
| action_runner.NavigateToPage(self)
|
| action_runner.WaitForElement(text='accessibility')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - action_runner.ClickElement(text='accessibility')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(text='advanced')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(text='beginner')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(text='Home')
|
| - action_runner.WaitForNavigate()
|
| -
|
|
|
| class WordpressPage(Top25Page):
|
|
|
| @@ -351,33 +218,6 @@ class WordpressPage(Top25Page):
|
| # pylint: disable=C0301
|
| 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/"]')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(
|
| - # pylint: disable=C0301
|
| - 'a[href="http://en.blog.wordpress.com/2012/08/30/new-themes-able-and-sight/"]')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(text='Features')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| - action_runner.ClickElement(text='News')
|
| - action_runner.WaitForNavigate()
|
| - interaction = action_runner.BeginGestureInteraction(
|
| - 'ScrollAction', is_smooth=True)
|
| - action_runner.ScrollPage()
|
| - interaction.End()
|
| -
|
| -
|
| class FacebookPage(Top25Page):
|
|
|
| """ Why: top social,Public profile """
|
| @@ -393,20 +233,6 @@ class FacebookPage(Top25Page):
|
| action_runner.NavigateToPage(self)
|
| action_runner.WaitForElement(text='About')
|
|
|
| - def RunStressMemory(self, action_runner):
|
| - action_runner.ClickElement(text='About')
|
| - action_runner.WaitForNavigate()
|
| - action_runner.ClickElement(text='The Audacity of Hope')
|
| - action_runner.WaitForNavigate()
|
| - action_runner.ClickElement(text='Back to Barack Obama\'s Timeline')
|
| - action_runner.WaitForNavigate()
|
| - action_runner.ClickElement(text='About')
|
| - action_runner.WaitForNavigate()
|
| - action_runner.ClickElement(text='Elected to U.S. Senate')
|
| - action_runner.WaitForNavigate()
|
| - action_runner.ClickElement(text='Home')
|
| - action_runner.WaitForNavigate()
|
| -
|
| def RunSmoothness(self, action_runner):
|
| interaction = action_runner.BeginGestureInteraction(
|
| 'ScrollAction', is_smooth=True)
|
|
|