| OLD | NEW |
| 1 # Copyright 2013 The Chromium Authors. All rights reserved. | 1 # Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import json | 5 import json |
| 6 import os | 6 import os |
| 7 import unittest | 7 import unittest |
| 8 | 8 |
| 9 from telemetry import decorators | 9 from telemetry import decorators |
| 10 from telemetry import story | 10 from telemetry import story |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 | 85 |
| 86 def testFailure(self): | 86 def testFailure(self): |
| 87 story_set = self.CreateStorySetFromFileInUnittestDataDir('blank.html') | 87 story_set = self.CreateStorySetFromFileInUnittestDataDir('blank.html') |
| 88 measurement = PageTestThatFails() | 88 measurement = PageTestThatFails() |
| 89 all_results = self.RunMeasurement( | 89 all_results = self.RunMeasurement( |
| 90 measurement, story_set, options=self._options) | 90 measurement, story_set, options=self._options) |
| 91 self.assertEquals(1, len(all_results.failures)) | 91 self.assertEquals(1, len(all_results.failures)) |
| 92 | 92 |
| 93 # This test is disabled because it runs against live sites, and needs to be | 93 # This test is disabled because it runs against live sites, and needs to be |
| 94 # fixed. crbug.com/179038 | 94 # fixed. crbug.com/179038 |
| 95 @decorators.Disabled | 95 @decorators.Disabled('all') |
| 96 def testRecordAndReplay(self): | 96 def testRecordAndReplay(self): |
| 97 test_archive = '/tmp/google.wpr' | 97 test_archive = '/tmp/google.wpr' |
| 98 google_url = 'http://www.google.com/' | 98 google_url = 'http://www.google.com/' |
| 99 foo_url = 'http://www.foo.com/' | 99 foo_url = 'http://www.foo.com/' |
| 100 archive_info_template = (""" | 100 archive_info_template = (""" |
| 101 { | 101 { |
| 102 "archives": { | 102 "archives": { |
| 103 "%s": ["%s"] | 103 "%s": ["%s"] |
| 104 } | 104 } |
| 105 } | 105 } |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 def testHasTabForPageInAncestor(self): | 176 def testHasTabForPageInAncestor(self): |
| 177 class PageTestWithTabForPage(page_test.PageTest): | 177 class PageTestWithTabForPage(page_test.PageTest): |
| 178 def ValidateAndMeasurePage(self, *_): | 178 def ValidateAndMeasurePage(self, *_): |
| 179 pass | 179 pass |
| 180 def TabForPage(self, *_): | 180 def TabForPage(self, *_): |
| 181 pass | 181 pass |
| 182 class PageTestWithTabForPageInParent(PageTestWithTabForPage): | 182 class PageTestWithTabForPageInParent(PageTestWithTabForPage): |
| 183 pass | 183 pass |
| 184 test = PageTestWithTabForPageInParent() | 184 test = PageTestWithTabForPageInParent() |
| 185 self.assertTrue(test.is_multi_tab_test) | 185 self.assertTrue(test.is_multi_tab_test) |
| OLD | NEW |