Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / tools / perf / page_sets / page_sets_unittest.py
blob41a9b28d3f728cf7b1d8362f9c39f627f6272058
1 # Copyright (c) 2012 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 import unittest
6 from telemetry.page import page_set
7 import page_sets
9 class PageSetsUnittest(unittest.TestCase):
10 """Verfies that all the pagesets in this directory are syntactically valid."""
12 @staticmethod
13 def testPageSetsParseCorrectly():
14 filenames = page_sets.GetAllPageSetFilenames()
15 for filename in filenames:
16 try:
17 page_set.PageSet.FromFile(filename)
18 except Exception, ex:
19 raise Exception("Pageset %s: %s" % (filename, str(ex)))