summaryrefslogtreecommitdiffstats
path: root/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java
diff options
context:
space:
mode:
Diffstat (limited to 'xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java')
-rw-r--r--xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java b/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java
index e46f3b3..87c8661 100644
--- a/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java
+++ b/xml/src/test/java/tests/org/w3c/dom/DocumentCreateAttributeNS.java
@@ -216,13 +216,15 @@ public final class DocumentCreateAttributeNS extends DOMTestCase {
qualifiedName = (String) qualifiedNames.get(indexN1004E);
{
- boolean success = false;
+
+ // BEGIN android-changed
+ // Our exception priorities differ from the spec
try {
doc.createAttributeNS(namespaceURI, qualifiedName);
+ fail();
} catch (DOMException ex) {
- success = (ex.code == DOMException.NAMESPACE_ERR);
}
- assertTrue("documentcreateattributeNS04", success);
+ // END android-changed
}
}
}