Flutter Engine
The Flutter Engine
skia_linkedin_desktop.py
Go to the documentation of this file.
1# Copyright 2019 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# pylint: disable=W0401,W0614
5
6import os
7
8from page_sets.login_helpers import linkedin_login
9
10from telemetry import story
11from telemetry.page import page as page_module
12from telemetry.page import shared_page_state
13from telemetry.util import wpr_modes
14
15
16class SkiaDesktopPage(page_module.Page):
17
18 def __init__(self, url, page_set):
19 super(SkiaDesktopPage, self).__init__(
20 url=url,
21 name=url,
22 page_set=page_set,
23 shared_page_state_class=shared_page_state.SharedDesktopPageState)
24 self.archive_data_file = 'data/skia_linkedin_desktop.json'
25
26 def RunNavigateSteps(self, action_runner):
27 action_runner.Navigate(self.url, timeout_in_seconds=60)
28
29
30class SkiaLinkedinDesktopPageSet(story.StorySet):
31 """ Pages designed to represent the median, not highly optimized web """
32
33 def __init__(self):
34 super(SkiaLinkedinDesktopPageSet, self).__init__(
35 archive_data_file='data/skia_linkedin_desktop.json')
36
37 urls_list = [
38 # go/skia-skps-3-2019
39 'https://www.linkedin.com/in/linustorvalds',
40 ]
41
42 for url in urls_list:
43 self.AddStory(SkiaDesktopPage(url, self))