From dd596ab148987c385e898336c7e33c2245f8e81d Mon Sep 17 00:00:00 2001 From: Jesse Wilson Date: Thu, 13 Jan 2011 15:53:53 -0800 Subject: Fix another DOM test that had broken expectations for the number of results. The input XML file looks something like this: &c; The &c; entity expands to on the RI. On Android, it is ignored. That behavior is known. The results from the RI were 3 elements: The results from Android were also 3 elements, but a different 3: With my recent fix, the result is what it should be for a system that doesn't expand entities: I've adjusted the test to expect one fewer element. It now fails on the RI, because we're not expecting the expanded entity. http://b/3350005 Change-Id: I20ab5c0521d20075582c0038bcf6e9e15d50597f --- .../org/w3c/domts/level2/core/getElementsByTagNameNS08.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'dom/src/test/java/org/w3c') diff --git a/dom/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java b/dom/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java index 4afe927..da356ab 100644 --- a/dom/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java +++ b/dom/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java @@ -6,14 +6,14 @@ The source document contained the following notice: -Copyright (c) 2001 World Wide Web Consortium, +Copyright (c) 2001 World Wide Web Consortium, (Massachusetts Institute of Technology, Institut National de -Recherche en Informatique et en Automatique, Keio University). All +Recherche en Informatique et en Automatique, Keio University). All Rights Reserved. This program is distributed under the W3C's Software -Intellectual Property License. This program is distributed in the +Intellectual Property License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even -the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR -PURPOSE. +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more details. @@ -68,7 +68,7 @@ public final class getElementsByTagNameNS08 extends DOMTestCase { doc = (Document) load("staffNS", false); docElem = doc.getDocumentElement(); newList = docElem.getElementsByTagNameNS("*", "*"); - assertSize("listSize", 36, newList); + assertSize("listSize", 35, newList); // 36 on the RI, which supports entity references } /** * Gets URI that identifies the test. @@ -85,4 +85,3 @@ public final class getElementsByTagNameNS08 extends DOMTestCase { DOMTestCase.doMain(getElementsByTagNameNS08.class, args); } } - -- cgit v1.1