diff options
author | Jesse Wilson <jessewilson@google.com> | 2011-01-13 15:53:53 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2011-01-13 15:58:33 -0800 |
commit | dd596ab148987c385e898336c7e33c2245f8e81d (patch) | |
tree | f2dc36326181d407ce3ef120a228c2ee48d8f82a /dom/src/test/java/org/w3c | |
parent | 094ef67758c76f2331378a3805b1e6db8ada17fe (diff) | |
download | libcore-dd596ab148987c385e898336c7e33c2245f8e81d.zip libcore-dd596ab148987c385e898336c7e33c2245f8e81d.tar.gz libcore-dd596ab148987c385e898336c7e33c2245f8e81d.tar.bz2 |
Fix another DOM test that had broken expectations for the number of results.
The input XML file looks something like this:
<foo> <a></a> <b></b> &c; </foo>
The &c; entity expands to <c></c> on the RI. On Android, it is ignored. That
behavior is known.
The results from the RI were 3 elements:
<a> <b> <c>
The results from Android were also 3 elements, but a different 3:
<foo> <a> <b>
With my recent fix, the result is what it should be for a system that doesn't
expand entities:
<a> <b>
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
Diffstat (limited to 'dom/src/test/java/org/w3c')
-rw-r--r-- | dom/src/test/java/org/w3c/domts/level2/core/getElementsByTagNameNS08.java | 13 |
1 files changed, 6 insertions, 7 deletions
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); } } - |