[Lxml-checkins] r50902 - in lxml/trunk: . src/lxml/html/tests
scoder at codespeak.net
scoder at codespeak.net
Wed Jan 23 11:25:01 CET 2008
Author: scoder
Date: Wed Jan 23 11:24:59 2008
New Revision: 50902
Modified:
lxml/trunk/ (props changed)
lxml/trunk/src/lxml/html/tests/test_clean.txt
Log:
r3282 at delle: sbehnel | 2008-01-21 22:23:44 +0100
fix doctests
Modified: lxml/trunk/src/lxml/html/tests/test_clean.txt
==============================================================================
--- lxml/trunk/src/lxml/html/tests/test_clean.txt (original)
+++ lxml/trunk/src/lxml/html/tests/test_clean.txt Wed Jan 23 11:24:59 2008
@@ -3,29 +3,28 @@
>>> from lxml.html import usedoctest
>>> doc = '''<html>
-... <head>
-... <script type="text/javascript" src="evil-site"></script>
-... <link rel="alternate" type="text/rss" src="evil-rss">
-... <style>
-... body {background-image: url(javascript:do_evil)};
-... div {color: expression(evil)};
-... </style>
-... </head>
-... <body onload="evil_function()">
-... <!-- I am interpreted for EVIL! -->
-... <a href="javascript:evil_function()">a link</a>
-... <a href="#" onclick="evil_function()">another link</a>
-... <p onclick="evil_function()">a paragraph</p>
-... <div style="display: none">secret EVIL!</div>
-... <object> of EVIL! </object>
-... <iframe src="evil-site"></iframe>
-... <form action="evil-site">
-... Password: <input type="password" name="password">
-... </form>
-... <blink>annoying EVIL!</blink>
-... <a href="evil-site">spam spam SPAM!</a>
-... <image src="evil!">
-... </body>
+... <head>
+... <script type="text/javascript" src="evil-site"></script>
+... <link rel="alternate" type="text/rss" src="evil-rss">
+... <style>
+... body {background-image: url(javascript:do_evil)};
+... div {color: expression(evil)};
+... </style>
+... </head>
+... <body onload="evil_function()">
+... <!-- I am interpreted for EVIL! -->
+... <a href="javascript:evil_function()">a link</a>
+... <a href="#" onclick="evil_function()">another link</a>
+... <p onclick="evil_function()">a paragraph</p>
+... <div style="display: none">secret EVIL!</div>
+... <object> of EVIL! </object>
+... <iframe src="evil-site"></iframe>
+... <form action="evil-site">
+... Password: <input type="password" name="password">
+... </form>
+... <a href="evil-site">spam spam SPAM!</a>
+... <img src="evil!">
+... </body>
... </html>'''
>>> print doc
@@ -49,9 +48,8 @@
<form action="evil-site">
Password: <input type="password" name="password">
</form>
- <blink>annoying EVIL!</blink>
<a href="evil-site">spam spam SPAM!</a>
- <image src="evil!">
+ <img src="evil!">
</body>
</html>
@@ -76,9 +74,8 @@
<form action="evil-site">
Password: <input type="password" name="password">
</form>
- <blink>annoying EVIL!</blink>
<a href="evil-site">spam spam SPAM!</a>
- <image src="evil!">
+ <img src="evil!">
</body>
</html>
@@ -94,7 +91,6 @@
<div style="display: none">secret EVIL!</div>
of EVIL!
Password:
- annoying EVIL!
<a href="evil-site">spam spam SPAM!</a>
<img src="evil!">
</body>
@@ -112,7 +108,6 @@
<div>secret EVIL!</div>
of EVIL!
Password:
- annoying EVIL!
<a href="evil-site" rel="nofollow">spam spam SPAM!</a>
<img src="evil!">
</body>
More information about the lxml-checkins
mailing list