Document-createCDATASection-xhtml.xhtml

FAILExpected4 of 7 subtests pass1,548 ms

Details

Test
/dom/nodes/Document-createCDATASection-xhtml.xhtml
Harness
OK

Subtests

StatusSubtestMessage
PASScreateCDATASection("\v")
PASScreateCDATASection("a -- b")
PASScreateCDATASection("a-")
PASScreateCDATASection("-b")
FAILcreateCDATASection(null)
assert_equals: data expected "null" but got ""
assert_equals: data expected "null" but got ""
FAILcreateCDATASection(undefined)
assert_equals: data expected "undefined" but got ""
assert_equals: data expected "undefined" but got ""
FAILCreating a CDATA section containing the string "]]>" must throw
assert_throws_dom: function "() => document.createCDATASection(" ]" + "]> ")" did not throw
assert_throws_dom: function "() => document.createCDATASection(" ]" + "]> ")" did not throw