summaryrefslogtreecommitdiffstats
path: root/luni/src/test/java/tests/xml
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-05-13 12:36:25 -0700
committerElliott Hughes <enh@google.com>2010-05-13 12:49:12 -0700
commitf33eae7e84eb6d3b0f4e86b59605bb3de73009f3 (patch)
treef6cb62c04ce2669d2fa4715fbab86d38c8fca06d /luni/src/test/java/tests/xml
parentd21d78fd49a2d798218e8c8aefbddb26a0e71bbb (diff)
downloadlibcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.zip
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.gz
libcore-f33eae7e84eb6d3b0f4e86b59605bb3de73009f3.tar.bz2
Remove all trailing whitespace from the dalvik team-maintained parts of libcore.
Gentlemen, you may now set your editors to "strip trailing whitespace"... Change-Id: I85b2f6c80e5fbef1af6cab11789790b078c11b1b
Diffstat (limited to 'luni/src/test/java/tests/xml')
-rw-r--r--luni/src/test/java/tests/xml/DomTest.java2
-rw-r--r--luni/src/test/java/tests/xml/NodeTest.java6
-rw-r--r--luni/src/test/java/tests/xml/SimpleBuilderTest.java14
-rw-r--r--luni/src/test/java/tests/xml/SimpleParserTest.java4
4 files changed, 13 insertions, 13 deletions
diff --git a/luni/src/test/java/tests/xml/DomTest.java b/luni/src/test/java/tests/xml/DomTest.java
index 1f723f7..90748a6 100644
--- a/luni/src/test/java/tests/xml/DomTest.java
+++ b/luni/src/test/java/tests/xml/DomTest.java
@@ -602,7 +602,7 @@ public class DomTest extends TestCase {
public void testNodeEqualsPositive() throws Exception {
DomTest copy = new DomTest();
copy.setUp();
-
+
for (int i = 0; i < allNodes.size(); i++) {
Node a = allNodes.get(i);
Node b = copy.allNodes.get(i);
diff --git a/luni/src/test/java/tests/xml/NodeTest.java b/luni/src/test/java/tests/xml/NodeTest.java
index d1d99c1..82feb39 100644
--- a/luni/src/test/java/tests/xml/NodeTest.java
+++ b/luni/src/test/java/tests/xml/NodeTest.java
@@ -1,12 +1,12 @@
/*
* Copyright (C) 2009 The Android Open Source Project
- *
+ *
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
diff --git a/luni/src/test/java/tests/xml/SimpleBuilderTest.java b/luni/src/test/java/tests/xml/SimpleBuilderTest.java
index 1a555c6..585050e 100644
--- a/luni/src/test/java/tests/xml/SimpleBuilderTest.java
+++ b/luni/src/test/java/tests/xml/SimpleBuilderTest.java
@@ -36,7 +36,7 @@ import org.w3c.dom.Text;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
-@TestTargetClass(DocumentBuilder.class)
+@TestTargetClass(DocumentBuilder.class)
public class SimpleBuilderTest extends TestCase {
private DocumentBuilder builder;
@@ -134,21 +134,21 @@ public class SimpleBuilderTest extends TestCase {
Element root = document.getDocumentElement();
assertNotNull(root);
-
+
// dump("", root);
}
-
+
private void dump(String prefix, Element element) {
System.out.print(prefix + "<" + element.getTagName());
-
+
NamedNodeMap attrs = element.getAttributes();
for (int i = 0; i < attrs.getLength(); i++) {
Node item = attrs.item(i);
System.out.print(" " + item.getNodeName() + "=" + item.getNodeValue());
}
-
+
System.out.println(">");
-
+
NodeList children = element.getChildNodes();
for (int i = 0; i < children.getLength(); i++) {
Node item = children.item(i);
@@ -156,7 +156,7 @@ public class SimpleBuilderTest extends TestCase {
dump(prefix + " ", (Element)item);
}
}
-
+
System.out.println(prefix + "</" + element.getTagName() + ">");
}
}
diff --git a/luni/src/test/java/tests/xml/SimpleParserTest.java b/luni/src/test/java/tests/xml/SimpleParserTest.java
index 4651039..663c863 100644
--- a/luni/src/test/java/tests/xml/SimpleParserTest.java
+++ b/luni/src/test/java/tests/xml/SimpleParserTest.java
@@ -39,7 +39,7 @@ import java.util.Map;
import javax.xml.parsers.SAXParser;
import javax.xml.parsers.SAXParserFactory;
-@TestTargetClass(SAXParser.class)
+@TestTargetClass(SAXParser.class)
public class SimpleParserTest extends TestCase implements ContentHandler {
private SAXParser parser;
@@ -272,7 +272,7 @@ public class SimpleParserTest extends TestCase implements ContentHandler {
args = {java.io.InputStream.class, org.xml.sax.helpers.DefaultHandler.class}
)
public void testGetValue() throws Exception{
- parser.parse(getClass().getResourceAsStream("/staffNS.xml"),
+ parser.parse(getClass().getResourceAsStream("/staffNS.xml"),
new DefaultHandler() {
boolean firstAddressElem = true;
@Override