Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1481)

Unified Diff: Tools/Scripts/webkitpy/w3c/test_converter_unittest.py

Issue 16171009: switch import-w3c-tests from using print statements to logging (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: clean up paths a bit Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Tools/Scripts/webkitpy/w3c/test_converter_unittest.py
diff --git a/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py b/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py
index 11e24d82fcb6a87fb008123e16729a6c909986fc..ff104abd50516a9cddc719955be1964c3e6d8ad9 100644
--- a/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py
+++ b/Tools/Scripts/webkitpy/w3c/test_converter_unittest.py
@@ -36,6 +36,8 @@ from webkitpy.thirdparty.BeautifulSoup import BeautifulSoup
from webkitpy.w3c.test_converter import W3CTestConverter
+DUMMY_FILENAME = 'dummy.html'
+
class W3CTestConverterTest(unittest.TestCase):
def fake_dir_path(self, converter, dirname):
@@ -77,7 +79,7 @@ CONTENT OF TEST
oc = OutputCapture()
oc.capture_output()
try:
- converted = converter.convert_html('/nothing/to/convert', test_html)
+ converted = converter.convert_html('/nothing/to/convert', test_html, DUMMY_FILENAME)
finally:
oc.restore_output()
@@ -94,7 +96,7 @@ CONTENT OF TEST
converter = W3CTestConverter()
fake_dir_path = self.fake_dir_path(converter, "harnessonly")
- converted = converter.convert_html(fake_dir_path, test_html)
+ converted = converter.convert_html(fake_dir_path, test_html, DUMMY_FILENAME)
self.verify_conversion_happened(converted)
self.verify_test_harness_paths(converter, converted[1], fake_dir_path, 1, 1)
@@ -125,7 +127,7 @@ CONTENT OF TEST
oc = OutputCapture()
oc.capture_output()
try:
- converted = converter.convert_html(fake_dir_path, test_content[1])
+ converted = converter.convert_html(fake_dir_path, test_content[1], DUMMY_FILENAME)
finally:
oc.restore_output()
@@ -160,7 +162,7 @@ CONTENT OF TEST
oc.capture_output()
try:
test_content = self.generate_test_content(converter.prefixed_properties, 2, test_html)
- converted = converter.convert_html(fake_dir_path, test_content[1])
+ converted = converter.convert_html(fake_dir_path, test_content[1], DUMMY_FILENAME)
finally:
oc.restore_output()
@@ -185,7 +187,7 @@ CONTENT OF TEST
oc = OutputCapture()
oc.capture_output()
try:
- converted = converter.convert_testharness_paths(doc, fake_dir_path)
+ converted = converter.convert_testharness_paths(doc, fake_dir_path, DUMMY_FILENAME)
finally:
oc.restore_output()
@@ -262,7 +264,7 @@ CONTENT OF TEST
oc = OutputCapture()
oc.capture_output()
try:
- converted = converter.convert_prefixed_properties(BeautifulSoup(test_content[1]))
+ converted = converter.convert_prefixed_properties(BeautifulSoup(test_content[1]), DUMMY_FILENAME)
finally:
oc.restore_output()

Powered by Google App Engine
This is Rietveld 408576698