Home | History | Annotate | Download | only in w3c

Lines Matching refs:converted

80             converted = converter.convert_html('/nothing/to/convert', test_html, DUMMY_FILENAME)
84 self.verify_no_conversion_happened(converted)
97 converted = converter.convert_html(fake_dir_path, test_html, DUMMY_FILENAME)
99 self.verify_conversion_happened(converted)
100 self.verify_test_harness_paths(converter, converted[1], fake_dir_path, 1, 1)
101 self.verify_prefixed_properties(converted, [])
128 converted = converter.convert_html(fake_dir_path, test_content[1], DUMMY_FILENAME)
132 self.verify_conversion_happened(converted)
133 self.verify_test_harness_paths(converter, converted[1], fake_dir_path, 1, 1)
134 self.verify_prefixed_properties(converted, test_content[0])
163 converted = converter.convert_html(fake_dir_path, test_content[1], DUMMY_FILENAME)
167 self.verify_conversion_happened(converted)
168 self.verify_test_harness_paths(converter, converted[1], fake_dir_path, 1, 1)
169 self.verify_prefixed_properties(converted, test_content[0])
188 converted = converter.convert_testharness_paths(doc, fake_dir_path, DUMMY_FILENAME)
192 self.verify_conversion_happened(converted)
265 converted = converter.convert_prefixed_properties(BeautifulSoup(test_content[1]), DUMMY_FILENAME)
269 self.verify_conversion_happened(converted)
270 self.verify_prefixed_properties(converted, test_content[0])
272 def verify_conversion_happened(self, converted):
273 self.assertTrue(converted, "conversion didn't happen")
275 def verify_no_conversion_happened(self, converted):
276 self.assertEqual(converted, None, 'test should not have been converted')
278 def verify_test_harness_paths(self, converter, converted, test_path, num_src_paths, num_href_paths):
279 if isinstance(converted, basestring):
280 converted = BeautifulSoup(converted)
286 self.assertEquals(len(converted.findAll(src=orig_path_pattern)), 0, 'testharness src path was not converted')
287 self.assertEquals(len(converted.findAll(href=orig_path_pattern)), 0, 'testharness href path was not converted')
291 self.assertEquals(len(converted.findAll(src=relpath_pattern)), num_src_paths, 'testharness src relative path not correct')
292 self.assertEquals(len(converted.findAll(href=relpath_pattern)), num_href_paths, 'testharness href relative path not correct')
294 def verify_prefixed_properties(self, converted, test_properties):
295 self.assertEqual(len(set(converted[0])), len(set(test_properties)), 'Incorrect number of properties converted')
297 self.assertTrue((test_prop in converted[1]), 'Property ' + test_prop + ' not found in converted doc')