| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import unittest | 4 import unittest |
| 5 | 5 |
| 6 from telemetry.internal.platform import system_info | 6 from telemetry.internal.platform import system_info |
| 7 from telemetry.page import page as page_module | 7 from telemetry.page import page as page_module |
| 8 from telemetry.story import story_set | 8 from telemetry.story import story_set |
| 9 | 9 |
| 10 import gpu_test_expectations | 10 from gpu_tests import gpu_test_expectations |
| 11 | 11 |
| 12 VENDOR_NVIDIA = 0x10DE | 12 VENDOR_NVIDIA = 0x10DE |
| 13 VENDOR_AMD = 0x1002 | 13 VENDOR_AMD = 0x1002 |
| 14 VENDOR_INTEL = 0x8086 | 14 VENDOR_INTEL = 0x8086 |
| 15 | 15 |
| 16 VENDOR_STRING_IMAGINATION = 'Imagination Technologies' | 16 VENDOR_STRING_IMAGINATION = 'Imagination Technologies' |
| 17 DEVICE_STRING_SGX = 'PowerVR SGX 554' | 17 DEVICE_STRING_SGX = 'PowerVR SGX 554' |
| 18 | 18 |
| 19 class StubPlatform(object): | 19 class StubPlatform(object): |
| 20 def __init__(self, os_name, os_version_name=None): | 20 def __init__(self, os_name, os_version_name=None): |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 page1 = page_module.Page('http://test.com/test8.html', ps) | 174 page1 = page_module.Page('http://test.com/test8.html', ps) |
| 175 self.assertExpectationEquals('flaky', page1, StubPlatform('win')) | 175 self.assertExpectationEquals('flaky', page1, StubPlatform('win')) |
| 176 self.assertEquals(6, self.getRetriesForPage(page1, StubPlatform('win'))) | 176 self.assertEquals(6, self.getRetriesForPage(page1, StubPlatform('win'))) |
| 177 self.assertExpectationEquals('pass', page1, StubPlatform('mac')) | 177 self.assertExpectationEquals('pass', page1, StubPlatform('mac')) |
| 178 self.assertEquals(0, self.getRetriesForPage(page1, StubPlatform('mac'))) | 178 self.assertEquals(0, self.getRetriesForPage(page1, StubPlatform('mac'))) |
| 179 page2 = page_module.Page('http://test.com/wildcardtest1.html', ps) | 179 page2 = page_module.Page('http://test.com/wildcardtest1.html', ps) |
| 180 self.assertExpectationEquals('flaky', page2, StubPlatform('win')) | 180 self.assertExpectationEquals('flaky', page2, StubPlatform('win')) |
| 181 self.assertEquals(7, self.getRetriesForPage(page2, StubPlatform('win'))) | 181 self.assertEquals(7, self.getRetriesForPage(page2, StubPlatform('win'))) |
| 182 self.assertExpectationEquals('pass', page2, StubPlatform('mac')) | 182 self.assertExpectationEquals('pass', page2, StubPlatform('mac')) |
| 183 self.assertEquals(0, self.getRetriesForPage(page2, StubPlatform('mac'))) | 183 self.assertEquals(0, self.getRetriesForPage(page2, StubPlatform('mac'))) |
| OLD | NEW |