Skip to content

Commit 8de9b66

Browse files
committed
the last fix makes all these test passing
1 parent 24edb67 commit 8de9b66

File tree

3 files changed

+0
-22
lines changed

3 files changed

+0
-22
lines changed

src/test/java/org/htmlunit/html/HtmlElement2Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,6 @@ public void removeParentOfActiveElement() throws Exception {
298298
*/
299299
@Test
300300
@Alerts({"before appendChild;after appendChild;image onload;after removeChild;", "2"})
301-
// HtmlUnit loads images synchron - because of this the removeChild is called before the
302-
// node is appended and fails
303-
@NotYetImplemented
304301
public void addRemove() throws Exception {
305302
try (InputStream is = getClass().getClassLoader().getResourceAsStream("testfiles/tiny-jpg.img")) {
306303
final byte[] directBytes = IOUtils.toByteArray(is);

src/test/java/org/htmlunit/javascript/host/dom/DOMImplementationTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
import org.htmlunit.html.HtmlPageTest;
1919
import org.htmlunit.junit.BrowserRunner;
2020
import org.htmlunit.junit.BrowserRunner.Alerts;
21-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2221
import org.htmlunit.util.MimeType;
2322
import org.junit.Test;
2423
import org.junit.runner.RunWith;
@@ -623,7 +622,6 @@ public void createHTMLDocumentInnerAddImg() throws Exception {
623622
*/
624623
@Test
625624
@Alerts("before1")
626-
@NotYetImplemented
627625
public void createHTMLDocumentInnerAddImgAddDocToIframe() throws Exception {
628626
final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
629627
+ "<html>\n"
@@ -641,7 +639,6 @@ public void createHTMLDocumentInnerAddImgAddDocToIframe() throws Exception {
641639
+ " var srcNode = doc.documentElement;\n"
642640
+ " var newNode = destDocument.importNode(srcNode, true);\n"
643641
+ " destDocument.replaceChild(newNode, destDocument.documentElement);\n"
644-
// + " alert('before');\n"
645642
+ " window.parent.document.title += 'before';"
646643

647644
+ " } catch(e) { window.parent.document.title += 'exception'; }\n"

src/test/java/org/htmlunit/javascript/host/html/HTMLImageElementTest.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1489,22 +1489,6 @@ public void onLoad_orderNotAttached() throws Exception {
14891489
"mousedown", "in", "out",
14901490
"mouseup", "in", "out",
14911491
"click", "in", "out", "Image.onload(1)", "Image.onload(2)", "Image.onload(3)"})
1492-
@HtmlUnitNYI(CHROME = {"in", "Image.onload(0)", "out",
1493-
"mousedown", "in", "Image.onload(1)", "out",
1494-
"mouseup", "in", "Image.onload(2)", "out",
1495-
"click", "in", "Image.onload(3)", "out"},
1496-
EDGE = {"in", "Image.onload(0)", "out",
1497-
"mousedown", "in", "Image.onload(1)", "out",
1498-
"mouseup", "in", "Image.onload(2)", "out",
1499-
"click", "in", "Image.onload(3)", "out"},
1500-
FF = {"in", "Image.onload(0)", "out",
1501-
"mousedown", "in", "Image.onload(1)", "out",
1502-
"mouseup", "in", "Image.onload(2)", "out",
1503-
"click", "in", "Image.onload(3)", "out"},
1504-
FF_ESR = {"in", "Image.onload(0)", "out",
1505-
"mousedown", "in", "Image.onload(1)", "out",
1506-
"mouseup", "in", "Image.onload(2)", "out",
1507-
"click", "in", "Image.onload(3)", "out"})
15081492
public void onload_complex() throws Exception {
15091493
try (InputStream is = getClass().getClassLoader().getResourceAsStream("testfiles/tiny-jpg.img")) {
15101494
final byte[] directBytes = IOUtils.toByteArray(is);

0 commit comments

Comments
 (0)