summaryrefslogtreecommitdiff
path: root/testing/resources/javascript/bug_361.in
diff options
context:
space:
mode:
Diffstat (limited to 'testing/resources/javascript/bug_361.in')
-rw-r--r--testing/resources/javascript/bug_361.in20
1 files changed, 19 insertions, 1 deletions
diff --git a/testing/resources/javascript/bug_361.in b/testing/resources/javascript/bug_361.in
index 34fde70fe2..f98ef829f2 100644
--- a/testing/resources/javascript/bug_361.in
+++ b/testing/resources/javascript/bug_361.in
@@ -50,11 +50,13 @@ function testField(x) {
var y = field.value;
app.alert("Answer for \"" + x + "\" is: " + typeof(y) + " " + y);
}
+testField("");
testField("goats");
testField("b4");
testField("b4.5");
testField("4x");
testField("4.5x");
+testField(4);
testField("4");
testField(" 4");
testField("4 ");
@@ -63,15 +65,25 @@ testField("4 3 2 1");
testField("-4");
testField("23.00000001");
testField("23.00000000000000001");
+testField(40000000000000000000000000);
+testField("40000000000000000000000000");
testField("25,5");
testField("1e+5");
testField("1e5");
testField("1e-5");
testField("-1e-5");
testField("1.2e5");
-testField("NAN");
+testField(Infinity);
+testField("Infinity");
+testField("INFINITY");
testField("INF");
+testField(NaN);
+testField("NaN");
+testField("NAN");
testField("0x100");
+testField("0x100.1");
+testField("0x100,1");
+testField("0x100x1");
testField("123x6");
testField("123xy6");
testField("123.y6");
@@ -81,6 +93,12 @@ testField("1-3");
testField("1+3");
testField("1.-3");
testField("1.+3");
+testField([1, 2, 3, 4]);
+testField("[1, 2, 3, 4]");
+testField({a: 1, b: 2});
+testField("{a: 1, b: 2}");
+testField(function(x) { return x+1; });
+testField("function(x) { return x+1; }");
endstream
endobj
{{xref}}