Commit f6656208 authored by Egor Pasko's avatar Egor Pasko Committed by Commit Bot

startup benchmarks: remove legacy TBMv1 pagesets

Remove the pagesets that were used for TBMv1 startup benchmarks. These
benchmarks were removed already leaving the pagesets unused. We still
depend on the json and the WPR archives in the TBMv2 benchmark
(startup.mobile).

Bug: 760498
Change-Id: I814840fd5696d8f7f696b29678c98ab4f0541b8b
Reviewed-on: https://chromium-review.googlesource.com/c/1329662Reviewed-by: default avatarNed Nguyen <nednguyen@google.com>
Commit-Queue: Egor Pasko <pasko@chromium.org>
Cr-Commit-Position: refs/heads/master@{#606952}
parent 6e844c42
# Copyright 2014 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 telemetry.page import page as page_module
from telemetry.page import shared_page_state
from telemetry import story
class StartedPage(page_module.Page):
def __init__(self, url, page_set):
super(StartedPage, self).__init__(
url=url, page_set=page_set, startup_url=url,
shared_page_state_class=shared_page_state.SharedPageState,
name=url)
def RunNavigateSteps(self, action_runner):
# Do not call super.RunNavigateSteps() to avoid reloading the page that has
# already been opened with startup_url.
# TODO(gabadie): Get rid of this (crbug.com/555504)
action_runner.Wait(10)
def RunPageInteractions(self, action_runner):
self.RunNavigateSteps(action_runner)
class StartupPagesPageSet(story.StorySet):
"""Pages for testing starting Chrome with a URL.
Note that this file can't be used with record_wpr, since record_wpr requires
a true navigate step, which we do not want for startup testing. Instead use
record_wpr startup_pages_record to record data for this test."""
def __init__(self):
super(StartupPagesPageSet, self).__init__(
archive_data_file='data/startup_pages.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
# Typical page.
self.AddStory(StartedPage('about:blank', self))
# Typical page.
self.AddStory(StartedPage('http://bbc.co.uk', self))
class ExperimentalStartupPagesPageSet(story.StorySet):
"""Pages for testing starting Chrome with a URL."""
def __init__(self):
super(ExperimentalStartupPagesPageSet, self).__init__(
archive_data_file='data/startup_pages.json',
cloud_storage_bucket=story.PARTNER_BUCKET)
self.AddStory(StartedPage('http://bbc.co.uk', self))
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment