exclude PluginsFieldTrialTest.NoPrefLeftBehind from valgrind bot
[chromium-blink-merge.git] / tools / perf / page_sets / story_set_unittest.py
blobfaedbdffe9ae4c7fa6b608d4f136ea8a18774f0a
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.
5 import os
7 import page_sets
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):
16 def setUp(self):
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')
22 def testSmoke(self):
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,
29 self.top_level_dir):
30 if story_set_class is page_sets.ToughSchedulingCasesPageSet:
31 continue
32 story_set = story_set_class()
33 for story in story_set:
34 if isinstance(story, page.Page):
35 self.assertFalse(
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()))