changeset 3938:7f80ba09441c

6942504: test/javax/imageio/metadata/DOML3Node.java fails Reviewed-by: bae, jgodinez
author prr
date Fri, 15 Apr 2011 12:58:56 -0700
parents 3e583bc83a52
children c27a80462285
files test/javax/imageio/metadata/DOML3Node.java
diffstat 1 files changed, 4 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/test/javax/imageio/metadata/DOML3Node.java	Wed Apr 13 15:17:42 2011 -0700
+++ b/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) {