1
1
mirror of https://github.com/Kozea/WeasyPrint.git synced 2024-10-04 16:07:57 +03:00

Fix the test for tinycss warnings

This commit is contained in:
Guillaume Ayoub 2012-04-05 20:15:28 +02:00
parent f6b202fa5f
commit af7605cce8

View File

@ -294,13 +294,13 @@ def test_warnings():
('<link rel=stylesheet href=data:image/png,>',
['WARNING: Unsupported stylesheet type: image/png']),
('<style>foo { margin-color: red',
['WARNING: Ignored declaration', 'unknown property']),
['WARNING: Ignored', 'unknown property']),
('<style>foo { margin-top: red',
['WARNING: Ignored declaration', 'invalid value']),
['WARNING: Ignored', 'invalid value']),
('<html style="margin-color: red">',
['WARNING: Ignored declaration', 'unknown property']),
['WARNING: Ignored', 'unknown property']),
('<html style="margin-top: red">',
['WARNING: Ignored declaration', 'invalid value']),
['WARNING: Ignored', 'invalid value']),
]:
with capture_logs() as logs:
TestPNGDocument(source).style_for('')