Add some tests for a delete bug
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Thu, 18 Aug 2011 15:05:30 -0600
changeset 544 1c80b43d4c31
parent 543 3ba5534ca807
child 545 57010626d9b8
Add some tests for a delete bug

http://www.w3.org/Bugs/Public/show_bug.cgi?id=13830
tests.js
--- a/tests.js	Thu Aug 18 15:01:46 2011 -0600
+++ b/tests.js	Thu Aug 18 15:05:30 2011 -0600
@@ -403,10 +403,27 @@
 		'<ol><li>foo</ol>[]bar',
 		'<ol><li>foo<br></ol>[]bar',
 		'<ol><li>foo<br><br></ol>[]bar',
-
 		'<ol><li><br></ol>[]bar',
 		'<ol><li>foo<li><br></ol>[]bar',
 
+		'<ol><li>foo</ol><p>[]bar',
+		'<ol><li>foo<br></ol><p>[]bar',
+		'<ol><li>foo<br><br></ol><p>[]bar',
+		'<ol><li><br></ol><p>[]bar',
+		'<ol><li>foo<li><br></ol><p>[]bar',
+
+		'<ol><li>foo</ol>{}<br>',
+		'<ol><li>foo<br></ol>{}<br>',
+		'<ol><li>foo<br><br></ol>{}<br>',
+		'<ol><li><br></ol>{}<br>',
+		'<ol><li>foo<li><br></ol>{}<br>',
+
+		'<ol><li>foo</ol><p>{}<br>',
+		'<ol><li>foo<br></ol><p>{}<br>',
+		'<ol><li>foo<br><br></ol><p>{}<br>',
+		'<ol><li><br></ol><p>{}<br>',
+		'<ol><li>foo<li><br></ol><p>{}<br>',
+
 		// Indented stuff with collapsed selection
 		'foo<blockquote>[]bar</blockquote>',
 		'foo<blockquote><blockquote>[]bar</blockquote></blockquote>',
@@ -1239,10 +1256,24 @@
 
 		'<ol><li>foo[]</ol>bar',
 		'<ol><li>foo[]<br></ol>bar',
-
 		'<ol><li>{}<br></ol>bar',
 		'<ol><li>foo<li>{}<br></ol>bar',
 
+		'<ol><li>foo[]</ol><p>bar',
+		'<ol><li>foo[]<br></ol><p>bar',
+		'<ol><li>{}<br></ol><p>bar',
+		'<ol><li>foo<li>{}<br></ol><p>bar',
+
+		'<ol><li>foo[]</ol><br>',
+		'<ol><li>foo[]<br></ol><br>',
+		'<ol><li>{}<br></ol><br>',
+		'<ol><li>foo<li>{}<br></ol><br>',
+
+		'<ol><li>foo[]</ol><p><br>',
+		'<ol><li>foo[]<br></ol><p><br>',
+		'<ol><li>{}<br></ol><p><br>',
+		'<ol><li>foo<li>{}<br></ol><p><br>',
+
 		// Indented stuff with collapsed selection
 		'foo[]<blockquote>bar</blockquote>',
 		'foo[]<blockquote><blockquote>bar</blockquote></blockquote>',