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

Side by Side Diff: tools/perf/page_sets/system_health/blank_stories.py

Issue 2592933003: [system health] Re-enable about:blank and browse:news:cnn on win (Closed)
Patch Set: Created 3 years, 12 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/browsing_stories.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2016 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 from page_sets.system_health import system_health_story 5 from page_sets.system_health import system_health_story
6 6
7 from telemetry import decorators
8 7
9 @decorators.Disabled('win') # crbug.com/656040
10 class BlankAboutBlankStory(system_health_story.SystemHealthStory): 8 class BlankAboutBlankStory(system_health_story.SystemHealthStory):
11 """Story that loads the about:blank page.""" 9 """Story that loads the about:blank page."""
12 10
13 NAME = 'blank:about:blank' 11 NAME = 'blank:about:blank'
14 URL = 'about:blank' 12 URL = 'about:blank'
15 13
16 def _DidLoadDocument(self, action_runner): 14 def _DidLoadDocument(self, action_runner):
17 # Request a RAF and wait for it to be processed to ensure that the metric 15 # Request a RAF and wait for it to be processed to ensure that the metric
18 # Startup.FirstWebContents.NonEmptyPaint2 is recorded. 16 # Startup.FirstWebContents.NonEmptyPaint2 is recorded.
19 action_runner.ExecuteJavaScript( 17 action_runner.ExecuteJavaScript(
20 """ 18 """
21 window.__hasRunRAF = false; 19 window.__hasRunRAF = false;
22 requestAnimationFrame(function() { 20 requestAnimationFrame(function() {
23 window.__hasRunRAF = true; 21 window.__hasRunRAF = true;
24 }); 22 });
25 """ 23 """
26 ) 24 )
27 action_runner.WaitForJavaScriptCondition("window.__hasRunRAF") 25 action_runner.WaitForJavaScriptCondition("window.__hasRunRAF")
OLDNEW
« no previous file with comments | « no previous file | tools/perf/page_sets/system_health/browsing_stories.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698