blob: 069f59467d041413c8069ac5b9976f4d6ed13802 [file] [log] [blame]
<!DOCTYPE html>
<script src="../../../resources/js-test-pre.js"></script>
<script>
description('This tests optional title for createHTMLDocument');
shouldBeNull('document.implementation.createHTMLDocument().querySelector("title")');
shouldBeEqualToString('document.implementation.createHTMLDocument(null).querySelector("title").textContent', 'null');
shouldBeNull('document.implementation.createHTMLDocument(undefined).querySelector("title")');
shouldBeEqualToString('document.implementation.createHTMLDocument("").querySelector("title").textContent', '');
shouldBeEqualToString('document.implementation.createHTMLDocument("x").querySelector("title").textContent', 'x');
</script>
<script src="../../../resources/js-test-post.js"></script>