Commit 201a6a42 authored by sullivan's avatar sullivan Committed by Commit bot

Revert of Recorded additional tough_energy_cases. (patchset #1 id:1 of...

Revert of Recorded additional tough_energy_cases. (patchset #1 id:1 of https://codereview.chromium.org/506063002/)

Reason for revert:
Errors: "WARNING:root:The page set archives for some pages are missing. Someone forgot to check them in, or they were deleted. Skipping those pages. To fix this, record those pages using record_wpr. To ignore this warning and run against live sites, pass the flag --use-live-sites."

Example: http://chromegw/i/chromium.perf/builders/Win%208%20Perf%20%282%29/builds/3086/steps/tab_switching.tough_energy_cases/logs/stdio

Original issue's description:
> PERF SHERIFF: This CL changes the tough_energy_cases test.
>
> Recorded additional tough_energy_cases.
> Moved all test cases to codepen, so they're easy to edit and all http.
>
> BUG= 386152
>
> Committed: https://chromium.googlesource.com/chromium/src/+/f4919a56f8dde79db10d158940bab9b5a95688f0

TBR=tonyg@chromium.org,jeremy@chromium.org
NOTREECHECKS=true
NOTRY=true
BUG= 386152

Review URL: https://codereview.chromium.org/535153003

Cr-Commit-Position: refs/heads/master@{#293136}
parent 2ae76bbd
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"tough_energy_cases_001.wpr": [
"http://codepen.io/testificate364/debug/paJhg",
"http://codepen.io/testificate364/debug/iwAfJ",
"https://mail.google.com/mail/",
"http://codepen.io/testificate364/debug/cFEaD",
"http://codepen.io/testificate364/debug/DLbxg",
"http://codepen.io/testificate364/debug/zcDdv",
"http://codepen.io/testificate364/debug/HdIgr",
"http://codepen.io/testificate364/debug/zhgBD",
"http://codepen.io/testificate364/debug/EFceH",
"http://codepen.io/testificate364/debug/pgBHu",
"http://codepen.io/testificate364/debug/nrbDc",
"http://codepen.io/testificate364/debug/lJAiH",
"http://codepen.io/testificate364/debug/kFvpd",
"http://codepen.io/testificate364/debug/lEhyw",
"http://codepen.io/testificate364/debug/jetyn",
"http://codepen.io/testificate364/debug/ckItK",
"http://codepen.io/testificate364/debug/yaosK",
"http://codepen.io/testificate364/debug/fhKCg",
"http://codepen.io/testificate364/debug/Kvdxs",
"http://codepen.io/testificate364/debug/eIutG"
"tough_energy_cases_000.wpr": [
"https://mail.google.com/mail/"
]
}
}
\ No newline at end of file
......@@ -11,19 +11,16 @@ class ToughEnergyCasesPage(page_module.Page):
super(ToughEnergyCasesPage, self).__init__(url=url, page_set=page_set)
self.credentials_path = 'data/credentials.json'
class CodePenPage(ToughEnergyCasesPage):
def __init__(self, url, page_set):
super(CodePenPage, self).__init__(url, page_set)
self.credentials = 'codepen'
class GmailPage(ToughEnergyCasesPage):
""" Why: productivity, top google properties """
class GooglePage(ToughEnergyCasesPage):
def __init__(self, page_set):
super(GmailPage, self).__init__(
url='https://mail.google.com/mail/',
page_set=page_set)
def __init__(self, url, page_set):
super(GooglePage, self).__init__(
url=url,
page_set=page_set)
self.credentials = 'google'
def RunNavigateSteps(self, action_runner):
......@@ -34,89 +31,26 @@ class GooglePage(ToughEnergyCasesPage):
class ToughEnergyCasesPageSet(page_set_module.PageSet):
"""Pages for measuring Chrome power draw."""
""" Pages for measuring Chrome power draw. """
def __init__(self):
super(ToughEnergyCasesPageSet, self).__init__(
archive_data_file='data/tough_energy_cases.json',
bucket=page_set_module.PUBLIC_BUCKET,
credentials_path='data/credentials.json')
# Why: productivity, top google properties
self.AddPage(GooglePage('https://mail.google.com/mail/', self))
# Why: Image constantly changed in the background, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/eIutG', self))
# Why: Image constantly changed in the background, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/zcDdv', self))
# Why: CSS Animation, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/nrbDc', self))
# Why: CSS Animation, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/fhKCg', self))
# Why: requestAnimationFrame, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/paJhg',self))
# Why: requestAnimationFrame, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/yaosK', self))
# Why: setTimeout animation, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/DLbxg', self))
# Why: setTimeout animation, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/kFvpd', self))
# Why: setInterval animation, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/lEhyw', self))
# Why: setInterval animation, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/zhgBD', self))
# Why: Animated GIF, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/jetyn', self))
# Why: Animated GIF, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/Kvdxs', self))
# Why: HTML5 video, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/lJAiH', self))
# Why: HTML5 video, below the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/EFceH', self))
# Why: PostMessage between frames, above the fold
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/pgBHu', self))
# Why: Asynchronous XHR continually running
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/iwAfJ', self))
# Why: Web Worker continually running
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/ckItK', self))
# Why: flash video
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/cFEaD', self))
# Why: Blank page in the foreground
self.AddPage(CodePenPage(
'http://codepen.io/testificate364/debug/HdIgr', self))
archive_data_file='data/tough_energy_cases.json',
bucket=page_set_module.PUBLIC_BUCKET,
credentials_path='data/credentials.json')
# Why: Above the fold animated gif running in the background
self.AddPage(ToughEnergyCasesPage(
'file://tough_energy_cases/above-fold-animated-gif.html',
self))
# TODO(dominikg): fix crbug.com/386152
#self.AddPage(GmailPage(self))
# Why: Below the fold animated gif
self.AddPage(ToughEnergyCasesPage(
'file://tough_energy_cases/below-fold-animated-gif.html',
self))
# Why: Below the fold flash animation
self.AddPage(ToughEnergyCasesPage(
'file://tough_energy_cases/below-fold-flash.html',
self))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment