Index: tools/perf/page_sets/system_health/blank_stories.py |
diff --git a/tools/perf/page_sets/system_health/blank_stories.py b/tools/perf/page_sets/system_health/blank_stories.py |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5213076084080164f22cd66a5b82ca2bc4d7d9ef |
--- /dev/null |
+++ b/tools/perf/page_sets/system_health/blank_stories.py |
@@ -0,0 +1,27 @@ |
+# Copyright 2016 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 page_sets.system_health import system_health_story |
+ |
+ |
+class _BlankStory(system_health_story.SystemHealthStory): |
+ """Abstract base class for blank page stories.""" |
+ ABSTRACT_STORY = True |
+ |
+ def _DidLoadDocument(self, action_runner): |
mikecase (-- gone --)
2016/09/07 20:40:40
Not 100% sure I need this?
For context, this is r
|
+ # Request a RAF and wait for it to be processed to ensure that the metric |
+ # Startup.FirstWebContents.NonEmptyPaint2 is recorded. |
+ action_runner.ExecuteJavaScript( |
+ """ |
+ this.hasRunRAF = 0; |
+ requestAnimationFrame(function() { |
+ this.hasRunRAF = 1; |
+ }); |
+ """ |
+ ) |
+ action_runner.WaitForJavaScriptCondition("this.hasRunRAF == 1") |
+ |
+class BlankStoryAboutBlank(_BlankStory): |
+ NAME = 'blank:about:blank' |
+ URL = 'about:blank' |