Skip to content

Commit e10aab5

Browse files
committed
NYI
1 parent 7c0776e commit e10aab5

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/test/java/org/htmlunit/javascript/ArgumentsTest.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
import org.htmlunit.WebDriverTestCase;
1818
import org.htmlunit.junit.annotation.Alerts;
19+
import org.htmlunit.junit.annotation.HtmlUnitNYI;
1920
import org.junit.jupiter.api.Disabled;
2021
import org.junit.jupiter.api.Test;
2122

@@ -173,6 +174,12 @@ public void argumentsCalleeProperty() throws Exception {
173174
FF_ESR = {"function/function() { [native code] }",
174175
"function/function() { [native code] }",
175176
"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"})
176183
public void argumentsCalleePropertyStrict() throws Exception {
177184
final String html = DOCTYPE_HTML
178185
+ "<html><body>"
@@ -224,6 +231,10 @@ public void argumentsShouldBeNullOutsideFunction() throws Exception {
224231
*/
225232
@Test
226233
@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"})
227238
public void argumentsShouldBeNullOutsideFunctionStrict() throws Exception {
228239
final String html = DOCTYPE_HTML
229240
+ "<html>\n"
@@ -333,6 +344,10 @@ public void passedCountDifferentFromDeclared() throws Exception {
333344
*/
334345
@Test
335346
@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]"})
336351
public void passedCountDifferentFromDeclaredStrict() throws Exception {
337352
final String html = DOCTYPE_HTML
338353
+ "<html>\n"
@@ -713,6 +728,7 @@ public void argumentsAsParameter() throws Exception {
713728
* @throws Exception if the test fails
714729
*/
715730
@Test
731+
@Disabled
716732
@Alerts({})
717733
public void argumentsAsParameterStrict() throws Exception {
718734
final String html = DOCTYPE_HTML
@@ -763,6 +779,10 @@ public void argumentsCallee() throws Exception {
763779
*/
764780
@Test
765781
@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"})
766786
public void argumentsCalleeStrict() throws Exception {
767787
final String html = DOCTYPE_HTML
768788
+ "<html><body>"
@@ -819,6 +839,10 @@ public void argumentsCalleeDifferentFunctions() throws Exception {
819839
*/
820840
@Test
821841
@Alerts({"true", "true"})
842+
@HtmlUnitNYI(CHROME = {"false", "false"},
843+
EDGE = {"false", "false"},
844+
FF = {"false", "false"},
845+
FF_ESR = {"false", "false"})
822846
public void argumentsCalleeDifferentFunctionsStrict() throws Exception {
823847
final String html = DOCTYPE_HTML
824848
+ "<html><body>"

0 commit comments

Comments
 (0)