Пример #1
0
 def testStripPrefixFromTestIdInvalidId(self):
   test_name = 'conformance/programs/program-handling_html'
   prefix = ('ninja://chrome/test:telemetry_gpu_integration_test/'
             'gpu_testse.webgl_conformance_integration_test.')
   test_id = prefix + test_name
   with self.assertRaises(AssertionError):
     queries._StripPrefixFromTestId(test_id)
Пример #2
0
 def testStripPrefixFromTestIdValidId(self):
   test_name = 'conformance/programs/program-handling.html'
   prefix = ('ninja://chrome/test:telemetry_gpu_integration_test/'
             'gpu_tests.webgl_conformance_integration_test.'
             'WebGLConformanceIntegrationTest.')
   test_id = prefix + test_name
   self.assertEqual(queries._StripPrefixFromTestId(test_id), test_name)