Skip to content

Commit 12f25e1

Browse files
committed
after the XMLHttpRequest.getAllResponseHeaders() fix, more test passing
1 parent 777105a commit 12f25e1

1 file changed

Lines changed: 4 additions & 26 deletions

File tree

src/test/java/org/htmlunit/javascript/host/fetch/FetchTest.java

Lines changed: 4 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ public class FetchTest extends WebDriverTestCase {
4141
@Test
4242
@Alerts({"200", "OK", "true", "text/xml;charset=iso-8859-1",
4343
"<xml><content>blah</content></xml>"})
44-
@HtmlUnitNYI(
45-
FF = {"200", "OK", "true", "text/xml", "<xml><content>blah</content></xml>"},
46-
FF_ESR = {"200", "OK", "true", "text/xml", "<xml><content>blah</content></xml>"})
4744
public void fetchGet() throws Exception {
4845
final String html = DOCTYPE_HTML
4946
+ "<html>\n"
@@ -151,9 +148,6 @@ public void fetchGetWrongUrl() throws Exception {
151148
*/
152149
@Test
153150
@Alerts({"200", "OK", "true", "text/xml;charset=iso-8859-1", "<response/>"})
154-
@HtmlUnitNYI(
155-
FF = {"200", "OK", "true", "text/xml", "<response/>"},
156-
FF_ESR = {"200", "OK", "true", "text/xml", "<response/>"})
157151
public void fetchPost() throws Exception {
158152
final String html = DOCTYPE_HTML
159153
+ "<html>\n"
@@ -193,9 +187,6 @@ public void fetchPost() throws Exception {
193187
@Test
194188
@Alerts({"200", "OK", "true",
195189
"text/plain;charset=iso-8859-1", "bla\\sbla"})
196-
@HtmlUnitNYI(
197-
FF = {"200", "OK", "true", "text/plain", "bla\\sbla"},
198-
FF_ESR = {"200", "OK", "true", "text/plain", "bla\\sbla"})
199190
public void fetchGetText() throws Exception {
200191
final String html = DOCTYPE_HTML
201192
+ "<html>\n"
@@ -231,9 +222,6 @@ public void fetchGetText() throws Exception {
231222
@Test
232223
@Alerts({"200", "OK", "true",
233224
"application/json;charset=iso-8859-1", "{\\s'Html':\\s'Unit'\\s}"})
234-
@HtmlUnitNYI(
235-
FF = {"200", "OK", "true", "application/json", "{\\s'Html':\\s'Unit'\\s}"},
236-
FF_ESR = {"200", "OK", "true", "application/json", "{\\s'Html':\\s'Unit'\\s}"})
237225
public void fetchGetJsonText() throws Exception {
238226
final String html = DOCTYPE_HTML
239227
+ "<html>\n"
@@ -271,11 +259,6 @@ public void fetchGetJsonText() throws Exception {
271259
@Alerts({"200", "OK", "true",
272260
"application/json;charset=iso-8859-1",
273261
"[object\\sObject]", "Unit", "{\"Html\":\"Unit\"}"})
274-
@HtmlUnitNYI(
275-
FF = {"200", "OK", "true", "application/json",
276-
"[object\\sObject]", "Unit", "{\"Html\":\"Unit\"}"},
277-
FF_ESR = {"200", "OK", "true", "application/json",
278-
"[object\\sObject]", "Unit", "{\"Html\":\"Unit\"}"})
279262
public void fetchGetJson() throws Exception {
280263
final String html = DOCTYPE_HTML
281264
+ "<html>\n"
@@ -320,9 +303,10 @@ public void fetchGetJson() throws Exception {
320303
"[object\\sBlob]", "4", "text/plain;charset=iso-8859-1"},
321304
FF_ESR = {"200", "OK", "true", "text/plain;charset=iso-8859-1",
322305
"[object\\sBlob]", "4", "text/plain;charset=iso-8859-1"})
323-
@HtmlUnitNYI(
324-
FF = {"200", "OK", "true", "text/plain", "[object\\sBlob]", "4", "text/plain"},
325-
FF_ESR = {"200", "OK", "true", "text/plain", "[object\\sBlob]", "4", "text/plain"})
306+
@HtmlUnitNYI(FF = {"200", "OK", "true", "text/plain;charset=iso-8859-1",
307+
"[object\\sBlob]", "4", "text/plain"},
308+
FF_ESR = {"200", "OK", "true", "text/plain;charset=iso-8859-1",
309+
"[object\\sBlob]", "4", "text/plain"})
326310
public void fetchGetBlob() throws Exception {
327311
final String html = DOCTYPE_HTML
328312
+ "<html>\n"
@@ -362,9 +346,6 @@ public void fetchGetBlob() throws Exception {
362346
@Test
363347
@Alerts({"200", "OK", "true", "text/plain;charset=iso-8859-1",
364348
"[object\\sArrayBuffer]", "4"})
365-
@HtmlUnitNYI(
366-
FF = {"200", "OK", "true", "text/plain", "[object\\sArrayBuffer]", "4"},
367-
FF_ESR = {"200", "OK", "true", "text/plain", "[object\\sArrayBuffer]", "4"})
368349
public void fetchGetArrayBuffer() throws Exception {
369350
final String html = DOCTYPE_HTML
370351
+ "<html>\n"
@@ -443,9 +424,6 @@ public void fetchGetCustomHeader() throws Exception {
443424
*/
444425
@Test
445426
@Alerts({"200", "OK", "true", "text/plain;charset=iso-8859-1", "x-tEsT"})
446-
@HtmlUnitNYI(
447-
FF = {"200", "OK", "true", "text/plain", "null"},
448-
FF_ESR = {"200", "OK", "true", "text/plain", "null"})
449427
public void fetchGetCustomResponseHeader() throws Exception {
450428
final String html = DOCTYPE_HTML
451429
+ "<html>\n"

0 commit comments

Comments
 (0)