2005-11-13 Anders Carlsson <andersca@mac.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Nov 2005 19:45:46 +0000 (19:45 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 13 Nov 2005 19:45:46 +0000 (19:45 +0000)
        Reviewed by Eric.

        Update tests for change to createDocument which now creates a document element.

        * dom/xhtml/level3/core/documentadoptnode14-expected.txt:
        * dom/xhtml/level3/core/documentadoptnode26-expected.txt:
        * dom/xhtml/level3/core/documentadoptnode27-expected.txt:
        * dom/xhtml/level3/core/infoset07-expected.txt:
        * dom/xhtml/level3/core/nodeisdefaultnamespace05-expected.txt:
        * dom/xhtml/level3/core/nodelookupnamespaceuri05-expected.txt:
        * dom/xhtml/level3/core/nodelookupprefix05-expected.txt:
        * dom/xhtml/level3/core/wellformed03-expected.txt:
        * dom/xhtml/level3/core/wellformed04-expected.txt:
        These tests still fail, but elsewhere now.

        * dom/xhtml/level3/core/nodereplacechild14-expected.txt:
        * dom/xhtml/level3/core/nodesettextcontent02-expected.txt:
        These tests now succeed.

        * fast/dom/createDocument.html: Added.
        * fast/dom/createDocument-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@11175 268f45cc-cd09-0410-ab3c-d52691b4dbfc

14 files changed:
LayoutTests/ChangeLog
LayoutTests/dom/xhtml/level3/core/documentadoptnode14-expected.txt
LayoutTests/dom/xhtml/level3/core/documentadoptnode26-expected.txt
LayoutTests/dom/xhtml/level3/core/documentadoptnode27-expected.txt
LayoutTests/dom/xhtml/level3/core/infoset07-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace05-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri05-expected.txt
LayoutTests/dom/xhtml/level3/core/nodelookupprefix05-expected.txt
LayoutTests/dom/xhtml/level3/core/nodereplacechild14-expected.txt
LayoutTests/dom/xhtml/level3/core/nodesettextcontent02-expected.txt
LayoutTests/dom/xhtml/level3/core/wellformed03-expected.txt
LayoutTests/dom/xhtml/level3/core/wellformed04-expected.txt
LayoutTests/fast/dom/createDocument-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/createDocument.html [new file with mode: 0644]

index 315cee95f2be917bf159f13d63adc6a67a2d3ca7..d27fc8aee0047899e394f66b4c183809db86cd89 100644 (file)
@@ -1,3 +1,27 @@
+2005-11-13  Anders Carlsson  <andersca@mac.com>
+
+        Reviewed by Eric.
+
+        Update tests for change to createDocument which now creates a document element.
+
+        * dom/xhtml/level3/core/documentadoptnode14-expected.txt:
+        * dom/xhtml/level3/core/documentadoptnode26-expected.txt:
+        * dom/xhtml/level3/core/documentadoptnode27-expected.txt:
+        * dom/xhtml/level3/core/infoset07-expected.txt:
+        * dom/xhtml/level3/core/nodeisdefaultnamespace05-expected.txt:
+        * dom/xhtml/level3/core/nodelookupnamespaceuri05-expected.txt:
+        * dom/xhtml/level3/core/nodelookupprefix05-expected.txt:
+        * dom/xhtml/level3/core/wellformed03-expected.txt:
+        * dom/xhtml/level3/core/wellformed04-expected.txt:
+        These tests still fail, but elsewhere now.
+
+        * dom/xhtml/level3/core/nodereplacechild14-expected.txt:
+        * dom/xhtml/level3/core/nodesettextcontent02-expected.txt:
+        These tests now succeed.
+
+        * fast/dom/createDocument.html: Added.
+        * fast/dom/createDocument-expected.txt: Added.
+
 2005-11-13  Anders Carlsson  <andersca@mac.com>
 
         Reviewed by Eric.
index 3dbc23530767699ed48c74d65b89635d6211118a..c0f3526b9f0513954afbd90090f848fdcb4e2059 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/documentadoptnode14
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression newDoc.adoptNode) is not object.
index 942c3d81102216702ce82e967360c49ce7729cb7..6592b972c7df597cd4b84aea808bf40e142330a2 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/documentadoptnode26
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression doc.adoptNode) is not object.
index 149938325c20183341fde623e3c933dd5b8575c2..45f7624abf717f53adeb0caf7bd6de3a2b143f20 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/documentadoptnode27
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression doc.adoptNode) is not object.
index bade4ccdc6b60eea17a5d585e6b27e869d7003a3..a1d66834dccc5ed07a92e277a58f3c77888c694c 100644 (file)
@@ -1,4 +1,4 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/infoset07
 Status error
-Message        TypeError: Null value
+Message        Error: DOM exception 5
 
index 4e32066cdd80a87e489f38db2d2d54f4f2045bf6..7769ba463cd64a9ca0eba5a923754b96e3181cfe 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace05
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression elem.isDefaultNamespace) is not object.
index b375b634944c49f0aca3c734dcc84d4389a12ce5..77ce0350b4e1f2f2bfc6803cf2b314f815512d33 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri05
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression elem.lookupNamespaceURI) is not object.
index af7e1f224153c5b6bce8f041d54dc1d780b52345..990a7c286e2ec9a23d6ea31a7b78b2ecce530e80 100644 (file)
@@ -1,3 +1,3 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupprefix05
 Status error
-Message        TypeError: Null value
+Message        TypeError: Value undefined (result of expression elem.lookupPrefix) is not object.
index 8948274bd68e34ba7f281df0f58f55d849a6a02a..7d3357fcc019f5e5ee08d10b437600e96a82de35 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodereplacechild14
-Status error
-Message        TypeError: Null value
+Status Success
index 73e067eaf718a6df9aefa64413174af80dd0619c..6326da5fa38b8a8e7fd95954a176bac51fbbc1b6 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodesettextcontent02
-Status error
-Message        TypeError: Null value
+Status Success
index 7a705f1d7775c79b1a6340b55639c69d58b07fbe..113774277ed178e3d96361a00e5bc5d076aa1a53 100644 (file)
@@ -1,4 +1,4 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/wellformed03
 Status error
-Message        TypeError: Null value
+Message        Error: DOM exception 5
 
index 1a32ca631a14d3bc435bee0fe9a6f37d5853a4a3..fe9eb713c7e9e09948f0faa7200b98f3ff5e5071 100644 (file)
@@ -1,4 +1,4 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/wellformed04
 Status error
-Message        TypeError: Null value
+Message        Error: DOM exception 5
 
diff --git a/LayoutTests/fast/dom/createDocument-expected.txt b/LayoutTests/fast/dom/createDocument-expected.txt
new file mode 100644 (file)
index 0000000..e1928ab
--- /dev/null
@@ -0,0 +1,3 @@
+This tests that a document created by createDocument has a document element, and that the document element has the correct name and namespace URI. If the test is successfull, 'SUCCESS' will be displayed below, otherwise 'FAILURE' and a reason will be displayed.
+SUCCESS!
+
diff --git a/LayoutTests/fast/dom/createDocument.html b/LayoutTests/fast/dom/createDocument.html
new file mode 100644 (file)
index 0000000..9eabc78
--- /dev/null
@@ -0,0 +1,41 @@
+<html>
+<head>
+<script>
+function debug(str) {
+    pre = document.getElementById('console');
+    txt = document.createTextNode(str)
+    pre.appendChild(txt)
+}
+function runTests() {
+    if (window.layoutTestController)
+        layoutTestController.dumpAsText();
+
+    var xhtmlURI = 'http://www.w3.org/1999/xhtml'
+    var doc = document.implementation.createDocument(xhtmlURI, 'html', null)
+    
+    if (!doc.documentElement) {
+        debug('FAILURE: document has no document element')
+        return;
+    }
+    
+    if (doc.documentElement.nodeName != 'html') {
+        debug('FAILURE: document element has wrong name')
+        return;
+    }
+    
+    if (doc.documentElement.namespaceURI != xhtmlURI) {
+        debug('FAILURE: document element has wrong namespace URI')
+        return;
+    }
+    
+    debug('SUCCESS!')
+}
+
+</script>
+</head>
+<body onload="runTests();">
+This tests that a document created by createDocument has a document element, and that the document element has the correct name and namespace URI. If the test is successfull, 'SUCCESS' will be displayed below, otherwise 'FAILURE' and a reason will be displayed.
+<pre id="console">
+</pre>
+</body>
+</html>