OSDN Git Service

Fixing tests to handle changes in our behaviour since DOM 3.
authorJesse Wilson <jessewilson@google.com>
Fri, 26 Mar 2010 21:03:36 +0000 (14:03 -0700)
committerJesse Wilson <jessewilson@google.com>
Fri, 26 Mar 2010 21:03:36 +0000 (14:03 -0700)
commit94640f175b2fcda6a4fd890c6686240f76d01f55
treed5abca93538b38a957554f697b38fa26888ce8de
parent63868feb2cc6a1fb1c76d7b54296ef4869f632be
Fixing tests to handle changes in our behaviour since DOM 3.

Our exception priority has changed for DOM attributes. We
previously used to throw DOMExceptions with namespace error
codes and now throw DOMExceptions with character error codes
when the attribute name is malformed. This caused changes to
many tests.

Another notable behaviour change is that we now supply the
qname (like the RI) where previously we did not. It is optional,
but we now include it for RI-consistency.

Yet another behaviour change is that we don't look at System
properties when choosing a SAX implementation. This simplifies
our internals significantly. End users who want an alternative
SAX implementation should construct it manually.

Also adding @KnownFailure tags for new tests that we have
never yet passed.

Change-Id: I6f81bedd7c2a0867086dc507b3220c2b07c4d3d3
16 files changed:
libcore/dom/src/test/java/org/w3c/domts/level2/core/documentcreateattributeNS04.java
libcore/dom/src/test/java/org/w3c/domts/level2/core/setAttributeNS02.java
libcore/support/src/test/java/tests/util/TestEnvironment.java
libcore/xml/src/test/java/tests/api/javax/xml/parsers/DocumentBuilderTest.java
libcore/xml/src/test/java/tests/api/javax/xml/parsers/SAXParserFactoryTest.java
libcore/xml/src/test/java/tests/api/javax/xml/parsers/SAXParserTest.java
libcore/xml/src/test/java/tests/org/w3c/dom/CreateAttributeNS.java
libcore/xml/src/test/java/tests/org/w3c/dom/CreateDocument.java
libcore/xml/src/test/java/tests/org/w3c/dom/CreateElementNS.java
libcore/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java
libcore/xml/src/test/java/tests/org/w3c/dom/SetAttributeNS.java
libcore/xml/src/test/java/tests/xml/DeclarationTest.java
libcore/xml/src/test/java/tests/xml/DomTest.java
libcore/xml/src/test/java/tests/xml/NodeTest.java
libcore/xml/src/test/java/tests/xml/NormalizeTest.java
libcore/xml/src/test/java/tests/xml/SaxTest.java