blob: 35247c6e76f911f061a6b4bcaab378ea2d1ecbf0 [file] [log] [blame]
# 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.
import os
import page_sets
from telemetry import decorators
from telemetry import page
from telemetry.testing import story_set_smoke_test
class StorySetUnitTest(story_set_smoke_test.StorySetSmokeTest):
def setUp(self):
self.story_sets_dir = os.path.dirname(os.path.realpath(__file__))
self.top_level_dir = os.path.dirname(self.story_sets_dir)
# TODO(tbarzic):
def testSmoke(self):
self.RunSmokeTest(self.story_sets_dir, self.top_level_dir)
# TODO(nednguyen): Remove this test once is fixed.
# TODO(tbarzic):
def testNoPageDefinedSyntheticDelay(self):
for story_set_class in self.GetAllStorySetClasses(self.story_sets_dir,
if story_set_class is page_sets.ToughSchedulingCasesPageSet:
story_set = story_set_class()
for story in story_set:
if isinstance(story, page.Page):
'Page %s in page set %s has non empty synthetic delay. '
'Synthetic delay is no longer supported. See' %
(story.display_name, story_set.Name()))