Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Side by Side Diff: content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py

Issue 1413883003: Add a presubmit script and pylintrc for content/test/gpu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address kbr's comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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')))
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_expectations.py ('k') | content/test/gpu/gpu_tests/hardware_accelerated_feature.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698