|
16 | 16 |
|
17 | 17 | import org.htmlunit.WebDriverTestCase; |
18 | 18 | import org.htmlunit.junit.annotation.Alerts; |
| 19 | +import org.htmlunit.junit.annotation.HtmlUnitNYI; |
19 | 20 | import org.junit.jupiter.api.Disabled; |
20 | 21 | import org.junit.jupiter.api.Test; |
21 | 22 |
|
@@ -173,6 +174,12 @@ public void argumentsCalleeProperty() throws Exception { |
173 | 174 | FF_ESR = {"function/function() { [native code] }", |
174 | 175 | "function/function() { [native code] }", |
175 | 176 | "W-undefined", "C-false", "E-false"}) |
| 177 | + @HtmlUnitNYI(FF = {"function/function () { [native code] }", |
| 178 | + "function/function () { [native code] }", |
| 179 | + "W-undefined", "C-false", "E-false"}, |
| 180 | + FF_ESR = {"function/function () { [native code] }", |
| 181 | + "function/function () { [native code] }", |
| 182 | + "W-undefined", "C-false", "E-false"}) |
176 | 183 | public void argumentsCalleePropertyStrict() throws Exception { |
177 | 184 | final String html = DOCTYPE_HTML |
178 | 185 | + "<html><body>" |
@@ -224,6 +231,10 @@ public void argumentsShouldBeNullOutsideFunction() throws Exception { |
224 | 231 | */ |
225 | 232 | @Test |
226 | 233 | @Alerts({"TypeError", "[object Arguments]", "TypeError", "TypeError"}) |
| 234 | + @HtmlUnitNYI(CHROME = {"null", "[object Arguments]", "[object Arguments]", "null"}, |
| 235 | + EDGE = {"null", "[object Arguments]", "[object Arguments]", "null"}, |
| 236 | + FF = {"null", "[object Arguments]", "[object Arguments]", "null"}, |
| 237 | + FF_ESR = {"null", "[object Arguments]", "[object Arguments]", "null"}) |
227 | 238 | public void argumentsShouldBeNullOutsideFunctionStrict() throws Exception { |
228 | 239 | final String html = DOCTYPE_HTML |
229 | 240 | + "<html>\n" |
@@ -333,6 +344,10 @@ public void passedCountDifferentFromDeclared() throws Exception { |
333 | 344 | */ |
334 | 345 | @Test |
335 | 346 | @Alerts({"2", "TypeError"}) |
| 347 | + @HtmlUnitNYI(CHROME = {"2", "[object Arguments]"}, |
| 348 | + EDGE = {"2", "[object Arguments]"}, |
| 349 | + FF = {"2", "[object Arguments]"}, |
| 350 | + FF_ESR = {"2", "[object Arguments]"}) |
336 | 351 | public void passedCountDifferentFromDeclaredStrict() throws Exception { |
337 | 352 | final String html = DOCTYPE_HTML |
338 | 353 | + "<html>\n" |
@@ -713,6 +728,7 @@ public void argumentsAsParameter() throws Exception { |
713 | 728 | * @throws Exception if the test fails |
714 | 729 | */ |
715 | 730 | @Test |
| 731 | + @Disabled |
716 | 732 | @Alerts({}) |
717 | 733 | public void argumentsAsParameterStrict() throws Exception { |
718 | 734 | final String html = DOCTYPE_HTML |
@@ -763,6 +779,10 @@ public void argumentsCallee() throws Exception { |
763 | 779 | */ |
764 | 780 | @Test |
765 | 781 | @Alerts({"TypeError", "function/", "function/", "true"}) |
| 782 | + @HtmlUnitNYI(CHROME = {"TypeError", "function/", "function/", "false"}, |
| 783 | + EDGE = {"TypeError", "function/", "function/", "false"}, |
| 784 | + FF = {"TypeError", "function/", "function/", "false"}, |
| 785 | + FF_ESR = {"TypeError", "function/", "function/", "false"}) |
766 | 786 | public void argumentsCalleeStrict() throws Exception { |
767 | 787 | final String html = DOCTYPE_HTML |
768 | 788 | + "<html><body>" |
@@ -819,6 +839,10 @@ public void argumentsCalleeDifferentFunctions() throws Exception { |
819 | 839 | */ |
820 | 840 | @Test |
821 | 841 | @Alerts({"true", "true"}) |
| 842 | + @HtmlUnitNYI(CHROME = {"false", "false"}, |
| 843 | + EDGE = {"false", "false"}, |
| 844 | + FF = {"false", "false"}, |
| 845 | + FF_ESR = {"false", "false"}) |
822 | 846 | public void argumentsCalleeDifferentFunctionsStrict() throws Exception { |
823 | 847 | final String html = DOCTYPE_HTML |
824 | 848 | + "<html><body>" |
|
0 commit comments