提交 d913fc87 编写于 作者: P prr

6942504: test/javax/imageio/metadata/DOML3Node.java fails

Reviewed-by: bae, jgodinez
上级 da58be75
/* /*
* Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
/* /*
* @test * @test
* @bug 6559064 * @bug 6559064 6942504
* *
* @summary Verify DOM L3 Node APIs behave as per Image I/O spec. * @summary Verify DOM L3 Node APIs behave as per Image I/O spec.
* *
...@@ -34,6 +34,7 @@ ...@@ -34,6 +34,7 @@
import javax.imageio.metadata.IIOMetadataNode; import javax.imageio.metadata.IIOMetadataNode;
import org.w3c.dom.Attr; import org.w3c.dom.Attr;
import org.w3c.dom.Node;
import org.w3c.dom.DOMException; import org.w3c.dom.DOMException;
import org.w3c.dom.UserDataHandler; import org.w3c.dom.UserDataHandler;
...@@ -74,7 +75,7 @@ public class DOML3Node { ...@@ -74,7 +75,7 @@ public class DOML3Node {
} }
try { try {
node.setUserData("key"); node.getUserData("key");
throw new RuntimeException("No expected DOM exception"); throw new RuntimeException("No expected DOM exception");
} catch (DOMException e) { } catch (DOMException e) {
} }
...@@ -115,12 +116,6 @@ public class DOML3Node { ...@@ -115,12 +116,6 @@ public class DOML3Node {
} catch (DOMException e) { } catch (DOMException e) {
} }
try {
node.lookupPrefix("namespaceURI");
throw new RuntimeException("No expected DOM exception");
} catch (DOMException e) {
}
try { try {
node.getTextContent(); node.getTextContent();
throw new RuntimeException("No expected DOM exception"); throw new RuntimeException("No expected DOM exception");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册