| Index: LayoutTests/fast/dom/DOMImplementation/resources/createDocument-with-used-doctype-frame.html
|
| diff --git a/LayoutTests/fast/dom/DOMImplementation/resources/createDocument-with-used-doctype-frame.html b/LayoutTests/fast/dom/DOMImplementation/resources/createDocument-with-used-doctype-frame.html
|
| index e0e7e6795d7a891fb243760f4207c63517f5c85d..3fd85d77cd4b14ae27e47151042c1ff74ced909b 100644
|
| --- a/LayoutTests/fast/dom/DOMImplementation/resources/createDocument-with-used-doctype-frame.html
|
| +++ b/LayoutTests/fast/dom/DOMImplementation/resources/createDocument-with-used-doctype-frame.html
|
| @@ -1,17 +1,18 @@
|
| <!doctype html>
|
| -<title>document.implementation.createDocument with current document's DOCTYPE</title>
|
| +<html>
|
| +<head>
|
| +<script src="../../../js/resources/js-test-pre.js"></script>
|
| +</head>
|
| <body>
|
| -FAIL (Script did not run);
|
| <script>
|
| -document.body.textContent = "FAIL";
|
| -try {
|
| - document.implementation.createDocument(null, null, document.doctype);
|
| - document.body.textContent = "FAIL (no exception)";
|
| -}
|
| -catch(e) {
|
| - if (e.code === DOMException.WRONG_DOCUMENT_ERR || e.code === DOMException.NOT_SUPPORTED_ERR)
|
| - document.body.textContent = "PASS";
|
| - else
|
| - document.body.textContent = "FAIL (wrong exception: " + e.code + ")";
|
| -}
|
| +description("document.implementation.createDocument with current document's DOCTYPE.")
|
| +
|
| +var doctype = document.doctype;
|
| +var doc;
|
| +shouldNotThrow("doc = document.implementation.createDocument(null, null, document.doctype)");
|
| +shouldBe('doc.doctype', 'doctype');
|
| +shouldBe('doc.firstChild', 'doctype');
|
| +shouldBe('document.doctype', 'null');
|
| </script>
|
| +</body>
|
| +</html>
|
|
|