Commit 04caf73c authored by wiltzius@chromium.org's avatar wiltzius@chromium.org

Use standalone widget pages rather than the integrated widget sampler

We'll add an integrated page as a further test case next.

Also, this fixes the missing URL for core-scroll-header

BUG=401203, 394756

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

Cr-Commit-Position: refs/heads/master@{#290698}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290698 0039d316-1c4b-4281-b951-d872f2087c98
parent 4c2e84a9
{
"description": "Describes the Web Page Replay archives for a page set. Don't edit by hand! Use record_wpr for updating.",
"archives": {
"polymer_002.wpr": [
"http://localhost:8000/components/paper-calculator/demo.html",
"http://localhost:8000/components/paper-shadow/demo.html"
],
"polymer_004.wpr": [
"polymer_000.wpr": [
"http://www.polymer-project.org/components/paper-button/demo.html",
"http://www.polymer-project.org/components/core-scroll-header-panel/demo.html",
"http://www.polymer-project.org/components/paper-calculator/demo.html",
"http://www.polymer-project.org/components/paper-checkbox/demo.html",
"http://www.polymer-project.org/components/paper-toggle-button/demo.html",
"http://www.polymer-project.org/components/paper-fab/demo.html",
"http://www.polymer-project.org/components/paper-shadow/demo.html",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-toggle-button",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-button",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-checkbox",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-icon-button",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-radio-button",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-tabs",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-fab",
"http://www.polymer-project.org/components/paper-elements/demo.html#paper-shadow",
"http://www.polymer-project.org/components/paper-elements/demo.html#core-scroll-header-panel"
"http://www.polymer-project.org/components/paper-icon-button/demo.html",
"http://www.polymer-project.org/components/paper-tabs/demo.html"
]
}
}
\ No newline at end of file
308553ef02178a571414d551f8a2084438ec49a5
\ No newline at end of file
1f0f8beffad091d1ce08a61d8f34b38bb490db92
\ No newline at end of file
f038526c3c1aa5ddf2542035f4a4edf1930d0e42
\ No newline at end of file
b0f5d66540b4964dbcc5971644e9ef18c005cae9
\ No newline at end of file
16c7cbf3d5d011d692be65d512624859dfb0f8ad
\ No newline at end of file
......@@ -80,7 +80,9 @@ class PolymerShadowPage(PolymerPage):
"document.getElementById('fab').scrollIntoView()")
action_runner.Wait(5)
self.AnimateShadow(action_runner, 'card')
self.AnimateShadow(action_runner, 'fab')
#FIXME(wiltzius) disabling until this issue is fixed:
# https://github.com/Polymer/paper-shadow/issues/12
#self.AnimateShadow(action_runner, 'fab')
def AnimateShadow(self, action_runner, eid):
for i in range(1, 6):
......@@ -102,15 +104,12 @@ class PolymerSampler(PolymerPage):
content page or not.
"""
super(PolymerSampler, self).__init__(
url=('http://www.polymer-project.org/components/paper-elements/demo.html#'
+ anchor),
url=('http://www.polymer-project.org/components/%s/demo.html' % anchor),
page_set=page_set)
self.scrolling_page = scrolling_page
self.iframe_js = 'document.querySelector("sampler-scaffold").$.frame'
self.iframe_js = 'document'
def RunNavigateSteps(self, action_runner):
#FIXME(wiltzius) workaround for crbug.com/391672
action_runner.ExecuteJavaScript('window.location.href="about:blank";')
super(PolymerSampler, self).RunNavigateSteps(action_runner)
waitForLoadJS = """
window.Polymer.whenPolymerReady(function() {
......@@ -131,7 +130,7 @@ class PolymerSampler(PolymerPage):
self.TouchEverything(action_runner)
def ScrollContentPane(self, action_runner):
element_function = (self.iframe_js + '.contentDocument.querySelector('
element_function = (self.iframe_js + '.querySelector('
'"core-scroll-header-panel").$.mainContainer')
interaction = action_runner.BeginInteraction('Scroll_Page', is_smooth=True)
action_runner.ScrollElement(use_touch=True,
......@@ -168,7 +167,7 @@ class PolymerSampler(PolymerPage):
# Find all widgets of this type, but skip any that are disabled or are
# currently active as they typically don't produce animation frames.
element_list_query = (self.iframe_js +
('.contentDocument.querySelectorAll("body %s:not([disabled]):'
('.querySelectorAll("body %s:not([disabled]):'
'not([active])")' % widget_type))
roles_count_query = element_list_query + '.length'
for i in range(action_runner.EvaluateJavaScript(roles_count_query)):
......@@ -215,7 +214,9 @@ class PolymerPageSet(page_set_module.PageSet):
'paper-icon-button',
# crbug.com/394756
# 'paper-radio-button',
'paper-shadow',
#FIXME(wiltzius) Disabling x-shadow until this issue is fixed:
# https://github.com/Polymer/paper-shadow/issues/12
#'paper-shadow',
'paper-tabs',
'paper-toggle-button',
]
......@@ -224,8 +225,7 @@ class PolymerPageSet(page_set_module.PageSet):
# Polymer Sampler subpages that are interesting to scroll
SCROLLABLE_PAGES = [
# crbug.com/394756
# 'core-scroll-header-panel',
'core-scroll-header-panel',
]
for p in SCROLLABLE_PAGES:
self.AddPage(PolymerSampler(self, p, scrolling_page=True))
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