2005-10-05 Anders Carlsson <andersca@mac.com>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2005 07:11:38 +0000 (07:11 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 5 Oct 2005 07:11:38 +0000 (07:11 +0000)
        Reviewed by Maciej.

        * dom/xhtml/level3/core/nodeissamenode01-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode02-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode03-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode04-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode05-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode06-expected.txt:
        * dom/xhtml/level3/core/nodeissamenode10-expected.txt:
These tests pass now.

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

LayoutTests/ChangeLog
LayoutTests/dom/xhtml/level3/core/nodeissamenode01-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode02-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode03-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode04-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode05-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode06-expected.txt
LayoutTests/dom/xhtml/level3/core/nodeissamenode10-expected.txt
LayoutTests/fast/dom/attribute-namespaces-expected.txt [new file with mode: 0644]
LayoutTests/fast/dom/attribute-namespaces.xhtml [new file with mode: 0644]

index e8ff75b653aeaa6cecaab62bf6bedcb5c82d414a..d4b0016779f7efde76c30e2f97199734e76417e6 100644 (file)
@@ -1,4 +1,17 @@
-up2005-10-04  Eric Seidel  <eseidel@apple.com>
+2005-10-05  Anders Carlsson  <andersca@mac.com>
+
+        Reviewed by Maciej.
+
+        * dom/xhtml/level3/core/nodeissamenode01-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode02-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode03-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode04-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode05-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode06-expected.txt:
+        * dom/xhtml/level3/core/nodeissamenode10-expected.txt:
+       These tests pass now.
+
+2005-10-04  Eric Seidel  <eseidel@apple.com>
 
         Reviewed by mjs.
 
index bc7535bd7292e1428fd553363406a54bed4e8b74..4da977f79a6af819ef838cb269e48508b377c488 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode01
-Status error
-Message        TypeError: Value undefined (result of expression doc1.isSameNode) is not object.
+Status Success
index e5e003e445e8146d164f749875dd8e2f7625f83b..b41deb8f22e92e804c630f337a56c9f1805418a5 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode02
-Status error
-Message        TypeError: Value undefined (result of expression docType1.isSameNode) is not object.
+Status Success
index 8975149c5736184886d40cdcb9ce141a796839f8..4198312d17536e9e6c35238b55a47a84e3f53e16 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode03
-Status error
-Message        TypeError: Value undefined (result of expression element2.isSameNode) is not object.
+Status Success
index 27f98e70c80af0d21f4b451b311ed8a3976a0d57..42b19cb2c7827fb894537f140a128b631de235f8 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode04
-Status error
-Message        TypeError: Value undefined (result of expression element2.isSameNode) is not object.
+Status Success
index 9ee23c57f0bc4e235398434179b607b2de16b476..c5d9db598fdb93bbc28a8f946040c1b0c781d891 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode05
-Status error
-Message        TypeError: Value undefined (result of expression element2.isSameNode) is not object.
+Status Success
index 636a9a04611221c52741583488f26b03d4d1f4bf..a3256ea12250d047fdcf15ff8b8bd97b8e6de21d 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode06
-Status error
-Message        TypeError: Value undefined (result of expression attr1.isSameNode) is not object.
+Status Success
index 355a9d64a2cbdfc808663d18741acdf6928413e2..20e621d277f9581ddb4ffb87c197b375c818c5bf 100644 (file)
@@ -1,3 +1,2 @@
 Test   http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeissamenode10
-Status error
-Message        TypeError: Value undefined (result of expression newDoc.isSameNode) is not object.
+Status Success
diff --git a/LayoutTests/fast/dom/attribute-namespaces-expected.txt b/LayoutTests/fast/dom/attribute-namespaces-expected.txt
new file mode 100644 (file)
index 0000000..fc1b44d
--- /dev/null
@@ -0,0 +1,4 @@
+This tests that attributes will have the correct namespace, prefix and local name set.
+
+All tests succeeded!
+
diff --git a/LayoutTests/fast/dom/attribute-namespaces.xhtml b/LayoutTests/fast/dom/attribute-namespaces.xhtml
new file mode 100644 (file)
index 0000000..ec7efc9
--- /dev/null
@@ -0,0 +1,57 @@
+<?xml version="1.0"?>
+<html xmlns="http://www.w3.org/1999/xhtml">
+<script type="text/javascript">
+function debug(str) {
+       t = document.getElementById('console').firstChild;
+       
+       t.data += str + "\n";
+}
+
+function runTests() {
+       if (window.layoutTestController) {
+       layoutTestController.dumpAsText();
+       }
+
+       t = document.getElementById('test');
+       attr = t.getAttributeNodeNS('http://www.example.org/', 'attr');
+       errs = false;
+       
+       if (!attr) {
+               debug('Could not find attribute ');
+               return;
+       }
+
+       if (attr.nodeName != 'test:attr') {
+               debug('attr.nodeName is ' + attr.nodeName + ', expected test:attr');
+               errs = true;
+       }
+
+       if (attr.namespaceURI != 'http://www.example.org/') {
+               debug('attr.namespaceURI is ' + attr.namespaceURI + ', expected http://www.example.org');
+               errs = true;
+       }
+
+       if (attr.prefix != 'test') {
+               debug('attr.prefix is ' + attr.prefix + ', expected test');
+               errs = true;
+       }
+
+       if (attr.localName != 'attr') {
+               debug('attr.localName is ' + attr.localName + ', expected attr');
+               errs = true;
+       }
+
+       if (!errs)      
+               debug('All tests succeeded!');
+}      
+
+</script>
+<body onload="runTests();">
+<div>
+This tests that attributes will have the correct namespace, prefix and local name set.
+</div>
+<div id="test" xmlns:test="http://www.example.org/" test:attr="Attribute"></div>
+<pre id="console">
+</pre>
+</body>
+</html>