blob: 26aa6850cf076afef6a40925621006510b6703bf [file] [log] [blame]
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
from telemetry.page import page as page_module
from telemetry import story
class ToughFiltersCasesPage(page_module.Page):
def RunPageInteractions(self, action_runner):
with action_runner.CreateInteraction('Filter'):
action_runner.Wait(10)
class PirateMarkPage(page_module.Page):
def RunPageInteractions(self, action_runner):
with action_runner.CreateInteraction('Filter'):
action_runner.EvaluateJavaScript(
'document.getElementById("benchmarkButtonText").click()')
action_runner.Wait(10)
class ToughFiltersCasesPageSet(story.StorySet):
"""
Description: Self-driven filters animation examples
"""
def __init__(self):
super(ToughFiltersCasesPageSet, self).__init__(
archive_data_file='data/tough_filters_cases.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
urls_list = [
'http://letmespellitoutforyou.com/samples/svg/filter_terrain.svg',
'http://static.bobdo.net/Analog_Clock.svg',
]
for url in urls_list:
self.AddStory(ToughFiltersCasesPage(url, self))
self.AddStory(PirateMarkPage(
'http://ie.microsoft.com/testdrive/Performance/Pirates/', self))