content/test/gpu/unexpected_passes/gpu_queries_unittest.py
def testWebGlVersion(self):
    """Tests that only results for the correct WebGL version are returned."""
    query_results = [
        {
            'id':
            'build-1234',
            'test_id': ('ninja://chrome/test:telemetry_gpu_integration_test/'
                        'gpu_tests.webgl_conformance_integration_test.'
                        'WebGLConformanceIntegrationTest.test_name'),
            'status':
            'FAIL',
            'typ_expectations': [
                'RetryOnFailure',
            ],
            'typ_tags': [
                'webgl-version-1',
            ],
            'step_name':
            'step_name',
        },
        {
            'id':
            'build-2345',
            'test_id': ('ninja://chrome/test:telemetry_gpu_integration_test/'
                        'gpu_tests.webgl_conformance_integration_test.'
                        'WebGLConformanceIntegrationTest.test_name'),
            'status':
            'FAIL',
            'typ_expectations': [
                'RetryOnFailure',
            ],
            'typ_tags': [
                'webgl-version-2',
            ],
            'step_name':
            'step_name',
        },
    ]
    querier = gpu_uu.CreateGenericGpuQuerier(suite='webgl_conformance1')
    self._popen_mock.return_value = uu.FakeProcess(
        stdout=json.dumps(query_results))
    results, expectation_files = querier.QueryBuilder('builder', 'ci')
    self.assertEqual(len(results), 1)
    self.assertIsNone(expectation_files)
    self.assertEqual(
        results[0],
        data_types.Result('test_name', ['webgl-version-1'], 'Failure',
                          'step_name', '1234'))

    querier = gpu_uu.CreateGenericGpuQuerier(suite='webgl_conformance2')
    results, expectation_files = querier.QueryBuilder('builder', 'ci')
    self.assertEqual(len(results), 1)
    self.assertIsNone(expectation_files)
    self.assertEqual(
        results[0],
        data_types.Result('test_name', ['webgl-version-2'], 'Failure',
                          'step_name', '2345'))
Tests that only results for the correct WebGL version are returned.
Tests that only results for the correct WebGL version are returned.
Tests that only results for the correct WebGL version are returned .
def testWebGlVersion(self):
    query_results = [
        {
            'id':
            'build-1234',
            'test_id': ('ninja://chrome/test:telemetry_gpu_integration_test/'
                        'gpu_tests.webgl_conformance_integration_test.'
                        'WebGLConformanceIntegrationTest.test_name'),
            'status':
            'FAIL',
            'typ_expectations': [
                'RetryOnFailure',
            ],
            'typ_tags': [
                'webgl-version-1',
            ],
            'step_name':
            'step_name',
        },
        {
            'id':
            'build-2345',
            'test_id': ('ninja://chrome/test:telemetry_gpu_integration_test/'
                        'gpu_tests.webgl_conformance_integration_test.'
                        'WebGLConformanceIntegrationTest.test_name'),
            'status':
            'FAIL',
            'typ_expectations': [
                'RetryOnFailure',
            ],
            'typ_tags': [
                'webgl-version-2',
            ],
            'step_name':
            'step_name',
        },
    ]
    querier = gpu_uu.CreateGenericGpuQuerier(suite='webgl_conformance1')
    self._popen_mock.return_value = uu.FakeProcess(
        stdout=json.dumps(query_results))
    results, expectation_files = querier.QueryBuilder('builder', 'ci')
    self.assertEqual(len(results), 1)
    self.assertIsNone(expectation_files)
    self.assertEqual(
        results[0],
        data_types.Result('test_name', ['webgl-version-1'], 'Failure',
                          'step_name', '1234'))
    querier = gpu_uu.CreateGenericGpuQuerier(suite='webgl_conformance2')
    results, expectation_files = querier.QueryBuilder('builder', 'ci')
    self.assertEqual(len(results), 1)
    self.assertIsNone(expectation_files)
    self.assertEqual(
        results[0],
        data_types.Result('test_name', ['webgl-version-2'], 'Failure',
                          'step_name', '2345'))
def testWebGlVersion ( self ) : query_results = [ { 'id' : 'build-1234' , 'test_id' : ( 'ninja://chrome/test:telemetry_gpu_integration_test/' 'gpu_tests.webgl_conformance_integration_test.' 'WebGLConformanceIntegrationTest.test_name' ) , 'status' : 'FAIL' , 'typ_expectations' : [ 'RetryOnFailure' , ] , 'typ_tags' : [ 'webgl-version-1' , ] , 'step_name' : 'step_name' , } , { 'id' : 'build-2345' , 'test_id' : ( 'ninja://chrome/test:telemetry_gpu_integration_test/' 'gpu_tests.webgl_conformance_integration_test.' 'WebGLConformanceIntegrationTest.test_name' ) , 'status' : 'FAIL' , 'typ_expectations' : [ 'RetryOnFailure' , ] , 'typ_tags' : [ 'webgl-version-2' , ] , 'step_name' : 'step_name' , } , ] querier = gpu_uu . CreateGenericGpuQuerier ( suite = 'webgl_conformance1' ) self . _popen_mock . return_value = uu . FakeProcess ( stdout = json . dumps ( query_results ) ) results , expectation_files = querier . QueryBuilder ( 'builder' , 'ci' ) self . assertEqual ( len ( results ) , 1 ) self . assertIsNone ( expectation_files ) self . assertEqual ( results [ 0 ] , data_types . Result ( 'test_name' , [ 'webgl-version-1' ] , 'Failure' , 'step_name' , '1234' ) ) querier = gpu_uu . CreateGenericGpuQuerier ( suite = 'webgl_conformance2' ) results , expectation_files = querier . QueryBuilder ( 'builder' , 'ci' ) self . assertEqual ( len ( results ) , 1 ) self . assertIsNone ( expectation_files ) self . assertEqual ( results [ 0 ] , data_types . Result ( 'test_name' , [ 'webgl-version-2' ] , 'Failure' , 'step_name' , '2345' ) )
Tests that only results for the correct WebGL version are returned.
Tests that only results for the correct WebGL version are returned .
"""Tests that only results for the correct WebGL version are returned."""
self