Summary

Harness status: OK

Found 3 tests

Details

ResultTest NameMessage
PassTemplate contents should be serialized instead of template element if serializing template element
Asserts run
Pass
assert_equals("<template><div id=\"div1\">some text</div></template>", "<template><div id=\"div1\">some text</div></template>", "template element is serialized incorrectly")
    at Test.<anonymous> ( /html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html:25:5)
PassTemplate contents should be serialized instead of template element if serializing template element. Test nested template
Asserts run
Pass
assert_equals("<template><template><div id=\"div1\">some text</div></template></template>", "<template><template><div id=\"div1\">some text</div></template></template>", "template element is serialized incorrectly")
    at Test.<anonymous> ( /html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html:44:5)
PassTemplate contents should be serialized instead of template element if serializing template element. Test serializing whole document
Asserts run
Pass
assert_equals("<html><head><title>Test Document</title></head><body><template><div id=\"div1\">some text</div></template></body></html>", "<html><head><title>Test Document</title></head><body><template><div id=\"div1\">some text</div></template></body></html>", "template element is serialized incorrectly")
    at Test.<anonymous> ( /html/semantics/scripting-1/the-template-element/serializing-html-templates/outerhtml.html:62:5)