OLD | NEW |
---|---|
(Empty) | |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
2 # Use of this source code is governed by a BSD-style license that can be | |
3 # found in the LICENSE file. | |
4 | |
5 from page_sets.system_health import system_health_story | |
6 | |
7 | |
8 class _BlankStory(system_health_story.SystemHealthStory): | |
9 """Abstract base class for blank page stories.""" | |
10 ABSTRACT_STORY = True | |
11 | |
12 def _DidLoadDocument(self, action_runner): | |
mikecase (-- gone --)
2016/09/07 20:40:40
Not 100% sure I need this?
For context, this is r
| |
13 # Request a RAF and wait for it to be processed to ensure that the metric | |
14 # Startup.FirstWebContents.NonEmptyPaint2 is recorded. | |
15 action_runner.ExecuteJavaScript( | |
16 """ | |
17 this.hasRunRAF = 0; | |
18 requestAnimationFrame(function() { | |
19 this.hasRunRAF = 1; | |
20 }); | |
21 """ | |
22 ) | |
23 action_runner.WaitForJavaScriptCondition("this.hasRunRAF == 1") | |
24 | |
25 class BlankStoryAboutBlank(_BlankStory): | |
26 NAME = 'blank:about:blank' | |
27 URL = 'about:blank' | |
OLD | NEW |