Add useful tests for styleWithCSS/useCSS
authorAryeh Gregor <AryehGregor+gitcommit@gmail.com>
Mon, 19 Sep 2011 12:55:17 -0600
changeset 594 66aa66602f18
parent 593 4c61c7a9e750
child 595 ea6a5d169a17
Add useful tests for styleWithCSS/useCSS
conformancetest/data.js
tests.js
--- a/conformancetest/data.js	Mon Sep 19 13:28:52 2011 -0600
+++ b/conformancetest/data.js	Mon Sep 19 12:55:17 2011 -0600
@@ -16064,13 +16064,277 @@
 	"foo[bar]baz",
 	{"stylewithcss":[false,false,"",false,false,""],"selectall":[false,false,"",false,false,""]}],
 ["foo[bar]baz",
-	[["stylewithcss","false"],["stylewithcss",""]],
+	[["stylewithcss","false"],["stylewithcss","true"]],
 	"foo[bar]baz",
 	{"stylewithcss":[false,false,"",false,true,""]}],
 ["foo[bar]baz",
-	[["stylewithcss","false"],["usecss",""]],
+	[["stylewithcss","true"],["stylewithcss","true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","TRUE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","TRUE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss"," true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss"," true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","truer"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","truer"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss"," true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss"," true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss"," TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss"," TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss",""]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss",""]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss"," "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss"," "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","FALSE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","FALSE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","FaLsE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","FaLsE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss"," false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss"," false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","false "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","false "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","falser"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","falser"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["stylewithcss","falsé"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["stylewithcss","falsé"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","true"]],
 	"foo[bar]baz",
 	{"stylewithcss":[false,true,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","TRUE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","TRUE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss"," true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss"," true"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","truer"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","truer"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss"," true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss"," true "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss"," TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss"," TrUe"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss",""]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss",""]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss"," "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss"," "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","FALSE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","FALSE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","FaLsE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","FaLsE"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,true,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss"," false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,true,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss"," false"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","false "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","false "]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","falser"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","falser"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","false"],["usecss","falsé"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
+["foo[bar]baz",
+	[["stylewithcss","true"],["usecss","falsé"]],
+	"foo[bar]baz",
+	{"stylewithcss":[false,false,"",false,false,""],"usecss":[false,false,"",false,false,""]}],
 ["foo[]bar",
 	[["bold",""],["inserttext","a"]],
 	"foo<b>a[]</b>bar",
--- a/tests.js	Mon Sep 19 13:28:52 2011 -0600
+++ b/tests.js	Mon Sep 19 12:55:17 2011 -0600
@@ -3583,8 +3583,48 @@
 	cut: ['foo[bar]baz'],
 	paste: ['foo[bar]baz'],
 	selectall: ['foo[bar]baz'],
-	stylewithcss: ['foo[bar]baz'],
-	usecss: ['foo[bar]baz'],
+	stylewithcss: [
+	//@{
+		['true', 'foo[bar]baz'],
+		['TRUE', 'foo[bar]baz'],
+		['TrUe', 'foo[bar]baz'],
+		['true ', 'foo[bar]baz'],
+		[' true', 'foo[bar]baz'],
+		['truer', 'foo[bar]baz'],
+		[' true ', 'foo[bar]baz'],
+		[' TrUe', 'foo[bar]baz'],
+		['', 'foo[bar]baz'],
+		[' ', 'foo[bar]baz'],
+		['false', 'foo[bar]baz'],
+		['FALSE', 'foo[bar]baz'],
+		['FaLsE', 'foo[bar]baz'],
+		[' false', 'foo[bar]baz'],
+		['false ', 'foo[bar]baz'],
+		['falser', 'foo[bar]baz'],
+		['falsé', 'foo[bar]baz'],
+	],
+	//@}
+	usecss: [
+	//@{
+		['true', 'foo[bar]baz'],
+		['TRUE', 'foo[bar]baz'],
+		['TrUe', 'foo[bar]baz'],
+		['true ', 'foo[bar]baz'],
+		[' true', 'foo[bar]baz'],
+		['truer', 'foo[bar]baz'],
+		[' true ', 'foo[bar]baz'],
+		[' TrUe', 'foo[bar]baz'],
+		['', 'foo[bar]baz'],
+		[' ', 'foo[bar]baz'],
+		['false', 'foo[bar]baz'],
+		['FALSE', 'foo[bar]baz'],
+		['FaLsE', 'foo[bar]baz'],
+		[' false', 'foo[bar]baz'],
+		['false ', 'foo[bar]baz'],
+		['falser', 'foo[bar]baz'],
+		['falsé', 'foo[bar]baz'],
+	],
+	//@}
 	quasit: ['foo[bar]baz'],
 	multitest: [
 	//@{
@@ -3747,6 +3787,8 @@
 	inserthtml: "ab<b>c</b>d",
 	insertimage: "/img/lion.svg",
 	inserttext: "a",
+	stylewithcss: "true",
+	usecss: "true",
 };
 //@}
 
@@ -3769,9 +3811,11 @@
 	"justifyleft",
 	"justifyright",
 	"strikethrough",
+	"stylewithcss",
 	"subscript",
 	"superscript",
 	"underline",
+	"usecss",
 ];
 //@}