def _CreateExpectations(cls): assert cls._webgl_version == 1 or cls._webgl_version == 2 if cls._webgl_version == 1: return webgl_conformance_expectations.WebGLConformanceExpectations( conformance_path, url_prefixes=url_prefixes_to_trim) else: return webgl2_conformance_expectations.WebGL2ConformanceExpectations( conformance_path, url_prefixes=url_prefixes_to_trim)
def _CreateExpectations(cls): assert cls._webgl_version == 1 or cls._webgl_version == 2 if cls._webgl_version == 1: return webgl_conformance_expectations.WebGLConformanceExpectations( webgl_conformance.conformance_path) else: return webgl2_conformance_expectations.WebGL2ConformanceExpectations( webgl_conformance.conformance_path)
def _CreateExpectations(self): assert self._webgl_version == 1 or self._webgl_version == 2 if self._webgl_version == 1: return webgl_conformance_expectations.WebGLConformanceExpectations( conformance_path) else: return webgl2_conformance_expectations.WebGL2ConformanceExpectations( conformance_path)
def testGlslConstructVecMatIndexExpectationOnWin(self): possible_browser = fakes.FakePossibleBrowser() browser = possible_browser.Create() browser.platform = FakeWindowsPlatform() browser.returned_system_info = fakes.FakeSystemInfo( gpu_dict=fake_win_amd_gpu_info.FAKE_GPU_INFO) exps = webgl_conformance_expectations.WebGLConformanceExpectations() test_info = WebGLTestInfo( 'conformance/glsl/constructors/glsl-construct-vec-mat-index.html') expectation = exps.GetExpectationForTest(browser, test_info.url, test_info.name) self.assertEquals(expectation, 'flaky')
def testWebGLExpectationsHaveNoCollisions(self): exps = webgl_conformance_expectations.WebGLConformanceExpectations() self.checkConformanceHasNoCollisions(exps)