Skip to content

Commit 1aa41f8

Browse files
committed
[bugfix] Fix bad HTML5 tests
1 parent be3a965 commit 1aa41f8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

exist-core/src/test/java/org/exist/util/serializer/HTML5WriterTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void setUp() throws Exception {
4242

4343
@Test
4444
public void testAttributeWithBooleanValue() throws Exception {
45-
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html>\n<input checked>";
45+
final String expected = "<!DOCTYPE html>\n<input checked>";
4646
final QName elQName = new QName("input");
4747
writer.startElement(elQName);
4848
writer.attribute("checked", "checked");
@@ -54,7 +54,7 @@ public void testAttributeWithBooleanValue() throws Exception {
5454

5555
@Test
5656
public void testAttributeWithNonBooleanValue() throws Exception {
57-
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html>\n<input name=\"name\">";
57+
final String expected = "<!DOCTYPE html>\n<input name=\"name\">";
5858
final QName elQName = new QName("input");
5959
writer.startElement(elQName);
6060
writer.attribute("name", "name");
@@ -66,7 +66,7 @@ public void testAttributeWithNonBooleanValue() throws Exception {
6666

6767
@Test
6868
public void testAttributeQNameWithBooleanValue() throws Exception {
69-
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html>\n<input checked>";
69+
final String expected = "<!DOCTYPE html>\n<input checked>";
7070
final QName elQName = new QName("input");
7171
final QName attrQName = new QName("checked");
7272
writer.startElement(elQName);
@@ -79,7 +79,7 @@ public void testAttributeQNameWithBooleanValue() throws Exception {
7979

8080
@Test
8181
public void testAttributeQNameWithNonBooleanValue() throws Exception {
82-
final String expected = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<!DOCTYPE html>\n<input name=\"name\">";
82+
final String expected = "<!DOCTYPE html>\n<input name=\"name\">";
8383
final QName elQName = new QName("input");
8484
final QName attrQName = new QName("name");
8585
writer.startElement(elQName);

0 commit comments

Comments
 (0)