Test forward-deleting links too
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Fri, 05 Aug 2011 15:45:17 -0600
changeset 505 8f67253a9877
parent 504 38d177ac3d75
child 506 fd429610f903
Test forward-deleting links too
tests.js
--- a/tests.js	Fri Aug 05 14:45:56 2011 -0600
+++ b/tests.js	Fri Aug 05 15:45:17 2011 -0600
@@ -1154,8 +1154,19 @@
 		'<p>foo[]</p><br><br><p>bar</p>',
 		'<p>foo[]</p><img src=/img/lion.svg><p>bar',
 		'foo[]<img src=/img/lion.svg>bar',
+
+		'foo[]<a>bar</a>',
+		'foo[]<a href=/>bar</a>',
+		'foo[]<a name=abc>bar</a>',
+		'foo[]<a href=/ name=abc>bar</a>',
+		'foo[]<span><a>bar</a></span>',
+		'foo[]<span><a href=/>bar</a></span>',
+		'foo[]<span><a name=abc>bar</a></span>',
+		'foo[]<span><a href=/ name=abc>bar</a></span>',
+		'<a>foo[]</a>bar',
 		'<a href=/>foo[]</a>bar',
-		'foo[]<a href=/>bar</a>',
+		'<a name=abc>foo[]</a>bar',
+		'<a href=/ name=abc>foo[]</a>bar',
 
 		'foo[] &nbsp;bar',
 		'foo[]&nbsp; bar',