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

Unified Diff: content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py

Issue 1980243004: GPU test expectations: more precisely detect ANGLE (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_expectations.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py
diff --git a/content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py b/content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py
index 23bad2c94896a376666da251114d512acf339604..1cc5267afbf2b58c79c41248c434c7040f6b0362 100644
--- a/content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py
+++ b/content/test/gpu/gpu_tests/gpu_test_expectations_unittest.py
@@ -63,7 +63,9 @@ class SampleTestExpectations(gpu_test_expectations.GpuTestExpectations):
self.Fail('test4.html', ['imagination'])
self.Fail('test5.html', [('imagination', 'PowerVR SGX 554')])
# Test ANGLE conditions.
- self.Fail('test6.html', ['win', 'd3d9'], bug=345)
+ self.Fail('test6-1.html', ['win', 'd3d9'], bug=345)
+ self.Fail('test6-2.html', ['opengl'], bug=345)
+ self.Fail('test6-3.html', ['no_angle'], bug=345)
# Test flaky expectations.
self.Flaky('test7.html', bug=123, max_num_retries=5)
self.Flaky('test8.html', ['win'], bug=123, max_num_retries=6)
@@ -155,11 +157,26 @@ class GpuTestExpectationsTest(unittest.TestCase):
# Test ANGLE conditions.
def testANGLEConditions(self):
ps = story_set.StorySet()
- page = page_module.Page('http://test.com/test6.html', ps)
+ page = page_module.Page('http://test.com/test6-1.html', ps)
self.assertExpectationEquals('pass', page, StubPlatform('win'),
- gl_renderer='Direct3D11')
+ gl_renderer='ANGLE Direct3D11')
self.assertExpectationEquals('fail', page, StubPlatform('win'),
- gl_renderer='Direct3D9')
+ gl_renderer='ANGLE Direct3D9')
+
+ # Regression test for a native mac GL_RENDERER string matching
+ # an ANGLE expectation.
+ page = page_module.Page('http://test.com/test6-2.html', ps)
+ self.assertExpectationEquals('pass', page, StubPlatform('mac'),
+ gl_renderer='Mac Something OpenGL')
+ self.assertExpectationEquals('fail', page, StubPlatform('win'),
+ gl_renderer='ANGLE OpenGL')
+
+ # Tests for the no_angle keyword
+ page = page_module.Page('http://test.com/test6-3.html', ps)
+ self.assertExpectationEquals('fail', page, StubPlatform('mac'),
+ gl_renderer='Mac Something OpenGL')
+ self.assertExpectationEquals('pass', page, StubPlatform('win'),
+ gl_renderer='ANGLE OpenGL')
# Ensure retry mechanism is working.
def testFlakyExpectation(self):
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_test_expectations.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698