Add some more insertText tests
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Sun, 19 Jun 2011 15:59:41 -0600
changeset 300 f654c59dd768
parent 299 ffcb5ceacab0
child 301 6583685ff9c9
Add some more insertText tests

Lots more bugs to fix, yay!
tests.js
--- a/tests.js	Sun Jun 19 15:49:44 2011 -0600
+++ b/tests.js	Sun Jun 19 15:59:41 2011 -0600
@@ -1805,7 +1805,15 @@
 		['\ud800', 'foo[]bar'],
 		['\x07', 'foo[]bar'],
 
+		[' ', '[]foo'],
+		[' ', 'foo[]'],
+		[' ', 'foo&nbsp;[]'],
+		[' ', 'foo&nbsp;&nbsp;[]'],
+		['   ', 'foo[]'],
+
 		'foo[]bar',
+		'foo&nbsp;[]',
+		'foo\xa0[]',
 		'<p>foo[]',
 		'<p>foo</p>{}',
 		'<p>[]foo',
@@ -1822,6 +1830,7 @@
 		'<p>fo[o<p>b]ar',
 		'<p>fo[o<p>bar<p>b]az',
 		'<p>{}<br>',
+		'<p><span>{}<br></span>',
 	],
 	//@}
 	insertunorderedlist: [