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

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

Issue 367283002: Add SVG icon example to key_silk_cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 6 years, 5 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 | « tools/perf/page_sets/data/key_silk_cases_016.wpr.sha1 ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/perf/page_sets/key_silk_cases.py
diff --git a/tools/perf/page_sets/key_silk_cases.py b/tools/perf/page_sets/key_silk_cases.py
index 7ed1a72099061783111e1ef1abc1b4402fbcf2fb..94efe3f4b8dd4cb64f65979ee503541e90d27b2d 100644
--- a/tools/perf/page_sets/key_silk_cases.py
+++ b/tools/perf/page_sets/key_silk_cases.py
@@ -564,6 +564,31 @@ class Page26(KeySilkCasesPage):
interaction.End()
+class SVGIconRaster(KeySilkCasesPage):
+
+ """ Why: Mutating SVG icons; these paint storm and paint slowly. """
+
+ def __init__(self, page_set):
+ super(SVGIconRaster, self).__init__(
+ url='http://wiltzius.github.io/shape-shifter/',
+ page_set=page_set)
+
+ def RunNavigateSteps(self, action_runner):
+ action_runner.NavigateToPage(self)
+ action_runner.WaitForJavaScriptCondition(
+ 'loaded = true')
+ action_runner.Wait(1)
+
+ def RunSmoothness(self, action_runner):
+ for i in xrange(9):
+ button_func = ('document.getElementById("demo").$.'
+ 'buttons.children[%d]') % i
+ interaction = action_runner.BeginInteraction(
+ 'Action_TapAction', is_smooth=True)
+ action_runner.TapElement(element_function=button_func)
+ action_runner.Wait(1)
+ interaction.End()
+
class KeySilkCasesPageSet(page_set_module.PageSet):
""" Pages hand-picked for project Silk. """
@@ -601,3 +626,4 @@ class KeySilkCasesPageSet(page_set_module.PageSet):
self.AddPage(Page24(self))
self.AddPage(Page25(self))
self.AddPage(Page26(self))
+ self.AddPage(SVGIconRaster(self))
« no previous file with comments | « tools/perf/page_sets/data/key_silk_cases_016.wpr.sha1 ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698