Skip to content

Commit 98007da

Browse files
committed
time to remove IE (issue #735)
1 parent 933a9f4 commit 98007da

132 files changed

Lines changed: 286 additions & 2314 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/test/java/org/htmlunit/CookieManagerTest.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414
*/
1515
package org.htmlunit;
1616

17-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
18-
1917
import java.net.URL;
2018
import java.nio.charset.StandardCharsets;
2119
import java.util.ArrayList;
@@ -29,8 +27,6 @@
2927
import org.htmlunit.html.HtmlPageTest;
3028
import org.htmlunit.junit.BrowserRunner;
3129
import org.htmlunit.junit.BrowserRunner.Alerts;
32-
import org.htmlunit.junit.BrowserRunner.HtmlUnitNYI;
33-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
3430
import org.htmlunit.util.MimeType;
3531
import org.htmlunit.util.NameValuePair;
3632
import org.junit.Assert;
@@ -425,7 +421,6 @@ public void cookieExpires_TwoDigits3() throws Exception {
425421
@Test
426422
@Alerts(DEFAULT = "cookie1=1",
427423
IE = "cookie1=1; cookie2=2")
428-
@NotYetImplemented(IE)
429424
public void cookieExpires_GMT() throws Exception {
430425
final List<NameValuePair> responseHeader = new ArrayList<>();
431426
responseHeader.add(new NameValuePair("Set-Cookie",
@@ -666,7 +661,6 @@ public void setCookieDifferentPathSlashAtEnd() throws Exception {
666661
@Test
667662
@Alerts(DEFAULT = {"cookies: first=1", "cookies: "},
668663
IE = {})
669-
@HtmlUnitNYI(IE = {"cookies: first=1", "cookies: "})
670664
public void setCookieDuring302() throws Exception {
671665
final String html = HtmlPageTest.STANDARDS_MODE_PREFIX_
672666
+ "<html><head>\n"
@@ -740,7 +734,6 @@ public void httpOnly() throws Exception {
740734
@Test
741735
@Alerts(DEFAULT = {"first=1; second=2; third=3", "26"},
742736
IE = {"second=2; third=3", "17"})
743-
@HtmlUnitNYI(IE = {"first=1; second=2; third=3", "26"})
744737
public void sameSite() throws Exception {
745738
final List<NameValuePair> responseHeader = new ArrayList<>();
746739
responseHeader.add(new NameValuePair("Set-Cookie", "first=1; path=/; SameSite=None; Secure"));

src/test/java/org/htmlunit/DefaultCredentialsProvider2Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
*/
1515
package org.htmlunit;
1616

17-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
1817
import static org.junit.Assert.fail;
1918

2019
import java.io.StringWriter;
@@ -30,7 +29,6 @@
3029
import org.htmlunit.html.HtmlPage;
3130
import org.htmlunit.junit.BrowserRunner;
3231
import org.htmlunit.junit.BrowserRunner.Alerts;
33-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
3432
import org.junit.Test;
3533
import org.junit.runner.RunWith;
3634

@@ -408,7 +406,6 @@ public void basicAuthenticationXHR() throws Exception {
408406
@Test
409407
@Alerts(DEFAULT = "HTTP ERROR 401",
410408
IE = "HTTP ERROR 500")
411-
@NotYetImplemented(IE)
412409
public void basicAuthenticationXHRWithUsername() throws Exception {
413410
final String html = "<html><head><script>\n"
414411
+ "var xhr = new XMLHttpRequest();\n"

src/test/java/org/htmlunit/WebClient3Test.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
package org.htmlunit;
1616

1717
import static java.nio.charset.StandardCharsets.UTF_8;
18-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
1918
import static org.junit.Assert.assertArrayEquals;
2019

2120
import java.net.URL;
@@ -417,7 +416,6 @@ public void deflateCompressionGZipCompatible() throws Exception {
417416
@Test
418417
@Alerts(DEFAULT = "modified",
419418
IE = "Hello world")
420-
@NotYetImplemented(IE)
421419
// IE does not support deflate compression anymore but I couldn't find a way to disable it in HttpClient
422420
public void deflateCompressionNonGZipCompatible() throws Exception {
423421
doTestDeflateCompression(false);
@@ -466,7 +464,6 @@ public void javascriptContentDetectorWithoutContentType() throws Exception {
466464
@Test
467465
@Alerts(DEFAULT = "executed",
468466
IE = "")
469-
@NotYetImplemented(IE)
470467
public void javascriptContentDetectorWithoutContentType500() throws Exception {
471468
final MockWebConnection conn = getMockWebConnection();
472469
conn.setDefaultResponse("<script>alert('executed')</script>", 500, "OK", null);

src/test/java/org/htmlunit/activex/javascript/msxml/XMLDOMCDATASectionTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callCreateXMLDOMDocument;
2121
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromURL;
2222
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
23-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2423

2524
import org.htmlunit.WebDriverTestCase;
2625
import org.htmlunit.junit.BrowserRunner;
2726
import org.htmlunit.junit.BrowserRunner.Alerts;
28-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2927
import org.htmlunit.util.MimeType;
3028
import org.junit.Test;
3129
import org.junit.runner.RunWith;
@@ -287,7 +285,6 @@ public void nodeValue() throws Exception {
287285
@Test
288286
@Alerts(DEFAULT = "no\\sActiveX",
289287
IE = "")
290-
@NotYetImplemented(IE)
291288
// Xerxes is the problem here as they drop empty CDATA sections. So <root> has no children and our test fails.
292289
// see: https://issues.apache.org/jira/browse/XERCESJ-1033
293290
public void nodeValue_empty() throws Exception {

src/test/java/org/htmlunit/activex/javascript/msxml/XMLDOMDocumentTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,10 @@
2323
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromString;
2424
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromURL;
2525
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
26-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2726

2827
import org.htmlunit.WebDriverTestCase;
2928
import org.htmlunit.junit.BrowserRunner;
3029
import org.htmlunit.junit.BrowserRunner.Alerts;
31-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
3230
import org.htmlunit.util.MimeType;
3331
import org.junit.Test;
3432
import org.junit.runner.RunWith;
@@ -457,7 +455,6 @@ public void firstChild_element() throws Exception {
457455
@Test
458456
@Alerts(DEFAULT = "no ActiveX",
459457
IE = "xml(7)=version=\"1.0\"")
460-
@NotYetImplemented(IE)
461458
// Xerces does not offer any way to access the XML declaration
462459
public void firstChild_xmlDeclaration() throws Exception {
463460
final String xml = ""
@@ -584,7 +581,6 @@ public void lastChild_element() throws Exception {
584581
@Test
585582
@Alerts(DEFAULT = "no ActiveX",
586583
IE = "xml(7)=version=\"1.0\"")
587-
@NotYetImplemented(IE)
588584
// Xerces does not offer any way to access the XML declaration
589585
public void lastChild_xmlDeclaration() throws Exception {
590586
final String xml = ""

src/test/java/org/htmlunit/activex/javascript/msxml/XMLDOMDocumentTypeTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@
1818
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.LOAD_XMLDOMDOCUMENT_FROM_URL_FUNCTION;
1919
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromURL;
2020
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
21-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2221

2322
import org.htmlunit.WebDriverTestCase;
2423
import org.htmlunit.junit.BrowserRunner;
2524
import org.htmlunit.junit.BrowserRunner.Alerts;
26-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2725
import org.htmlunit.util.MimeType;
2826
import org.junit.Test;
2927
import org.junit.runner.RunWith;
@@ -272,7 +270,6 @@ public void text_set() throws Exception {
272270
@Test
273271
@Alerts(DEFAULT = "no ActiveX",
274272
IE = "<!DOCTYPE a [ <!ELEMENT a (b+)> <!ELEMENT b (#PCDATA)> ]>")
275-
@NotYetImplemented(IE)
276273
// It seems we currently do not have access to the DTD.
277274
public void xml() throws Exception {
278275
property("xml");

src/test/java/org/htmlunit/activex/javascript/msxml/XMLDOMProcessingInstructionTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callCreateXMLDOMDocument;
2121
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromURL;
2222
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
23-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2423

2524
import org.htmlunit.WebDriverTestCase;
2625
import org.htmlunit.junit.BrowserRunner;
2726
import org.htmlunit.junit.BrowserRunner.Alerts;
28-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2927
import org.htmlunit.util.MimeType;
3028
import org.junit.Test;
3129
import org.junit.runner.RunWith;
@@ -65,7 +63,6 @@ public void attributes() throws Exception {
6563
@Test
6664
@Alerts(DEFAULT = "no ActiveX",
6765
IE = {"1", "version=1.0"})
68-
@NotYetImplemented(IE)
6966
// DOM processing instructions do not support attributes
7067
public void attributes_xmlDecl() throws Exception {
7168
final String test = ""
@@ -81,7 +78,6 @@ public void attributes_xmlDecl() throws Exception {
8178
@Test
8279
@Alerts(DEFAULT = "no ActiveX",
8380
IE = {"3", "version=1.0", "encoding=utf-8", "standalone=yes"})
84-
@NotYetImplemented(IE)
8581
// DOM processing instructions do not support attributes
8682
public void attributes_complete_xmlDecl() throws Exception {
8783
final String html = ""

src/test/java/org/htmlunit/activex/javascript/msxml/XMLDOMTextTest.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callCreateXMLDOMDocument;
2121
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromURL;
2222
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
23-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2423

2524
import org.htmlunit.WebDriverTestCase;
2625
import org.htmlunit.junit.BrowserRunner;
2726
import org.htmlunit.junit.BrowserRunner.Alerts;
28-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
2927
import org.htmlunit.util.MimeType;
3028
import org.junit.Test;
3129
import org.junit.runner.RunWith;
@@ -284,7 +282,6 @@ public void nodeValue() throws Exception {
284282
@Test
285283
@Alerts(DEFAULT = "no\\sActiveX",
286284
IE = {"true", "true", "true"})
287-
@NotYetImplemented(IE)
288285
// Xerxes is the problem here as they do treat whitespaces as text nodes.
289286
public void nodeValue_empty() throws Exception {
290287
final String test =

src/test/java/org/htmlunit/activex/javascript/msxml/XMLHTTPRequestTest.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.CREATE_XMLHTTPREQUEST_FUNCTION_NAME;
2121
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callCreateXMLHTTPRequest;
2222
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
23-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2423

2524
import java.io.IOException;
2625
import java.io.Writer;
@@ -41,7 +40,6 @@
4140
import org.htmlunit.javascript.host.xml.XMLHttpRequestTest.BasicAuthenticationServlet;
4241
import org.htmlunit.junit.BrowserRunner;
4342
import org.htmlunit.junit.BrowserRunner.Alerts;
44-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
4543
import org.htmlunit.junit.Retry;
4644
import org.htmlunit.util.MimeType;
4745
import org.htmlunit.util.NameValuePair;
@@ -794,7 +792,6 @@ public void open_method() throws Exception {
794792
@Alerts(DEFAULT = "no ActiveX",
795793
IE = {"4:200 DELETE localhost/bounce?null,0 ",
796794
"4:200 OPTIONS localhost/bounce?null,0 "})
797-
@NotYetImplemented(IE)
798795
// HtmlUnit does not send a body for DELETE and OPTIONS requests
799796
public void open_method2() throws Exception {
800797
final String test = ""
@@ -1077,7 +1074,6 @@ public void send_head() throws Exception {
10771074
"4:200 DELETE localhost/bounce?null,0 ",
10781075
"4:200 DELETE localhost/bounce?null,0 ",
10791076
"4:200 DELETE localhost/bounce?null,4 "})
1080-
@NotYetImplemented(IE)
10811077
// HtmlUnit does not send a body for DELETE and OPTIONS requests
10821078
public void send_delete() throws Exception {
10831079
final String test = ""
@@ -1118,7 +1114,6 @@ public void send_delete() throws Exception {
11181114
"4:200 OPTIONS localhost/bounce?null,0 ",
11191115
"4:200 OPTIONS localhost/bounce?null,0 ",
11201116
"4:200 OPTIONS localhost/bounce?null,4 "})
1121-
@NotYetImplemented(IE)
11221117
// HtmlUnit does not send a body for DELETE and OPTIONS requests
11231118
public void send_options() throws Exception {
11241119
final String test = ""

src/test/java/org/htmlunit/activex/javascript/msxml/XMLSerializerTest.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callLoadXMLDOMDocumentFromString;
2323
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.callSerializeXMLDOMDocumentToString;
2424
import static org.htmlunit.activex.javascript.msxml.MSXMLTestHelper.createTestHTML;
25-
import static org.htmlunit.junit.BrowserRunner.TestedBrowser.IE;
2625

2726
import org.htmlunit.WebDriverTestCase;
2827
import org.htmlunit.junit.BrowserRunner;
2928
import org.htmlunit.junit.BrowserRunner.Alerts;
30-
import org.htmlunit.junit.BrowserRunner.NotYetImplemented;
3129
import org.junit.Test;
3230
import org.junit.runner.RunWith;
3331
import org.openqa.selenium.By;
@@ -106,7 +104,6 @@ public void xmlEntities() throws Exception {
106104
@Test
107105
@Alerts(DEFAULT = "no ActiveX",
108106
IE = {})
109-
@NotYetImplemented(IE)
110107
// so far we are not able to add the XML header
111108
public void nameSpaces() throws Exception {
112109
final String expectedString = getExpectedAlerts().length != 0 ? ""
@@ -158,7 +155,6 @@ public void attributes() throws Exception {
158155
@Test
159156
@Alerts(DEFAULT = "no ActiveX",
160157
IE = {})
161-
@NotYetImplemented(IE)
162158
// so far we are not able to add the XML header
163159
public void htmlAttributes() throws Exception {
164160
final String expectedString = getExpectedAlerts().length != 0 ? ""

0 commit comments

Comments
 (0)