Add some tests
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Wed, 27 Jul 2011 13:23:23 -0600
changeset 460 bd59b5c44793
parent 459 bb6e2a107b89
child 461 5a48d6ca52a7
Add some tests

Based on:
http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-July/020721.html
tests.js
--- a/tests.js	Tue Jul 26 15:23:25 2011 -0600
+++ b/tests.js	Wed Jul 27 13:23:23 2011 -0600
@@ -1547,6 +1547,14 @@
 		'<ol><li>foo<ol><li>bar<li>baz</ol><li>[quz]</ol>',
 		'<ol><li>foo</li><ol><li>bar<li>baz</ol><li>[quz]</ol>',
 
+		// Lists with id's:
+		// http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-July/020721.html
+		'<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>',
+		'<ol><ol><li id=i1>foo</ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>',
+		'<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</li><ol><li id=i3>baz</ol></ol>',
+		'<ol><li id=i2>[bar]</li><ol id=u3><li id=i3>baz</ol></ol>',
+		'<ol><ol id=u1><li id=i1>foo</ol><li id=i2>[bar]</ol>',
+
 		// Try indenting multiple items at once.
 		'<ol><li>foo<li>b[ar<li>baz]</ol>',
 		'<ol><li>[foo<ol><li>bar]</ol><li>baz</ol>',