1 # Copyright 2014 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.
9 from telemetry
import decorators
10 from telemetry
import page
11 from telemetry
.testing
import story_set_smoke_test
14 class StorySetUnitTest(story_set_smoke_test
.StorySetSmokeTest
):
17 self
.story_sets_dir
= os
.path
.dirname(os
.path
.realpath(__file__
))
18 self
.top_level_dir
= os
.path
.dirname(self
.story_sets_dir
)
20 # TODO(tbarzic): crbug.com/386416.
21 @decorators.Disabled('chromeos')
23 self
.RunSmokeTest(self
.story_sets_dir
, self
.top_level_dir
)
25 # TODO(nednguyen): Remove this test once crbug.com/508538 is fixed.
26 @decorators.Disabled('chromeos')
27 def testNoPageDefinedSyntheticDelay(self
):
28 for story_set_class
in self
.GetAllStorySetClasses(self
.story_sets_dir
,
30 if story_set_class
is page_sets
.ToughSchedulingCasesPageSet
:
32 story_set
= story_set_class()
33 for story
in story_set
:
34 if isinstance(story
, page
.Page
):
36 story
.synthetic_delays
,
37 'Page %s in page set %s has non empty synthetic delay. '
38 'Synthetic delay is no longer supported. See crbug.com/508538.' %
39 (story
.display_name
, story_set
.Name()))