6942504: test/javax/imageio/metadata/DOML3Node.java fails
authorprr
Fri, 15 Apr 2011 12:58:56 -0700
changeset 9196 4ec60abb855b
parent 9195 089fad98a0e0
child 9197 cf8aa53be4b2
6942504: test/javax/imageio/metadata/DOML3Node.java fails Reviewed-by: bae, jgodinez
jdk/test/javax/imageio/metadata/DOML3Node.java
--- a/jdk/test/javax/imageio/metadata/DOML3Node.java	Wed Apr 13 15:17:42 2011 -0700
+++ b/jdk/test/javax/imageio/metadata/DOML3Node.java	Fri Apr 15 12:58:56 2011 -0700
@@ -1,5 +1,5 @@
 /*
- * 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.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -25,7 +25,7 @@
 
 /*
  * @test
- * @bug 6559064
+ * @bug 6559064 6942504
  *
  * @summary Verify DOM L3 Node APIs behave as per Image I/O spec.
  *
@@ -34,6 +34,7 @@
 
 import javax.imageio.metadata.IIOMetadataNode;
 import org.w3c.dom.Attr;
+import org.w3c.dom.Node;
 import org.w3c.dom.DOMException;
 import org.w3c.dom.UserDataHandler;
 
@@ -74,7 +75,7 @@
         }
 
         try {
-            node.setUserData("key");
+            node.getUserData("key");
             throw new RuntimeException("No expected DOM exception");
         } catch (DOMException e) {
         }
@@ -116,12 +117,6 @@
         }
 
         try {
-            node.lookupPrefix("namespaceURI");
-            throw new RuntimeException("No expected DOM exception");
-        } catch (DOMException e) {
-        }
-
-        try {
             node.getTextContent();
             throw new RuntimeException("No expected DOM exception");
         } catch (DOMException e) {