def test_normalize_product_noop(self):
     r = WPTReport()
     r._report = {
         'run_info': {
             'product': 'firefox',
         }
     }
     self.assertSetEqual(normalize_product(r), set())
     self.assertEqual(r.run_info['product'], 'firefox')
Esempio n. 2
0
 def test_normalize_product(self):
     r = WPTReport()
     r._report = {
         'run_info': {
             'product': 'edge_webdriver',
         }
     }
     self.assertSetEqual(normalize_product(r), {'edge', 'webdriver'})
     self.assertEqual(r.run_info['product'], 'edge')
 def test_normalize_product_edgechromium(self):
     r = WPTReport()
     r._report = {
         'run_info': {
             'product': 'edgechromium',
         }
     }
     self.assertSetEqual(normalize_product(r), {'edge', 'edgechromium'})
     self.assertEqual(r.run_info['product'], 'edge')
Esempio n. 4
0
 def test_normalize_product_webkitgtk_minibrowser(self):
     r = WPTReport()
     r._report = {
         'run_info': {
             'product': 'webkitgtk_minibrowser',
         }
     }
     self.assertSetEqual(normalize_product(r), {'webkitgtk', 'minibrowser'})
     self.assertEqual(r.run_info['product'], 'webkitgtk')