Commit 0d681454 authored by barraclough@apple.com's avatar barraclough@apple.com
Browse files

Pedantic test in Mozilla's JavaScript test suite fails. function-001.js function-001-n.js

https://bugs.webkit.org/show_bug.cgi?id=27219

Reviewed by Sam Weinig.

These tests are just wrong.
See ECMA 262 A.5, FunctionDelcaration does not require a semicolon.

* tests/mozilla/expected.html:
* tests/mozilla/js1_2/function/function-001-n.js:
* tests/mozilla/js1_3/Script/function-001-n.js:
* tests/mozilla/js1_3/regress/function-001-n.js:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@129289 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c2896149
2012-09-21 Gavin Barraclough <barraclough@apple.com>
Pedantic test in Mozilla's JavaScript test suite fails. function-001.js function-001-n.js
https://bugs.webkit.org/show_bug.cgi?id=27219
Reviewed by Sam Weinig.
These tests are just wrong.
See ECMA 262 A.5, FunctionDelcaration does not require a semicolon.
* tests/mozilla/expected.html:
* tests/mozilla/js1_2/function/function-001-n.js:
* tests/mozilla/js1_3/Script/function-001-n.js:
* tests/mozilla/js1_3/regress/function-001-n.js:
2012-09-21 Gavin Barraclough <barraclough@apple.com>
 
Remove redundant argument to op_instanceof
......
......@@ -9,9 +9,9 @@ Test List: All tests<br>
Skip List: ecma/Date/15.9.2.1.js, ecma/Date/15.9.2.2-1.js, ecma/Date/15.9.2.2-2.js, ecma/Date/15.9.2.2-3.js, ecma/Date/15.9.2.2-4.js, ecma/Date/15.9.2.2-5.js, ecma/Date/15.9.2.2-6.js, ecma_3/Date/15.9.5.7.js, ecma/Date/15.9.5.14.js, ecma/Date/15.9.5.31-1.js, ecma/Date/15.9.5.34-1.js<br>
1124 test(s) selected, 1116 test(s) completed, 44 failures reported (3.94% failed)<br>
Engine command line: "/Volumes/Data/Saxony/OpenSource/WebKitBuild/Debug/jsc" <br>
OS type: Darwin Bearclaw-Kaliber.local 12.0.0 Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64 x86_64<br>
Testcase execution time: 52 seconds.<br>
Tests completed on Thu Sep 6 15:11:19 2012.<br><br>
OS type: Darwin Bearclaw-Kaliber.local 12.0.0 Darwin Kernel Version 12.0.0: Fri Jun 22 20:01:10 PDT 2012; root:xnu-2050.7.7~1/RELEASE_X86_64 x86_64<br>
Testcase execution time: 54 seconds.<br>
Tests completed on Fri Sep 21 18:29:47 2012.<br><br>
[ <a href='#fail_detail'>Failure Details</a> | <a href='#retest_list'>Retest List</a> | <a href='menu.html'>Test Selection Page</a> ]<br>
<hr>
<a name='fail_detail'></a>
......@@ -80,7 +80,7 @@ f.arity = undefined FAILED! expected: 3<br>
Testcase terminated with signal 0<br>
Complete testcase output was:<br>
function-001.js functions not separated by semicolons are errors in version 120 and higher<br>
eval("function f(){}function g(){}") = undefined FAILED! expected: error<br>
eval("function f(){}function g(){}") = undefined PASSED!<br>
</tt><br>
<a name='failure9'></a><dd><b>Testcase <a target='other_window' href='./js1_2/function/regexparg-1.js'>js1_2/function/regexparg-1.js</a> failed</b> <br>
[ <a href='#failure8'>Previous Failure</a> | <a href='#failure10'>Next Failure</a> | <a href='#tippy_top'>Top of Page</a> ]<br>
......@@ -163,7 +163,7 @@ Testcase terminated with signal 0<br>
Complete testcase output was:<br>
BUGNUMBER: 10278<br>
function-001.js functions not separated by semicolons are errors in version 120 and higher<br>
eval("function f(){}function g(){}") = undefined FAILED! expected: error<br>
eval("function f(){}function g(){}") = undefined PASSED!<br>
</tt><br>
<a name='failure19'></a><dd><b>Testcase <a target='other_window' href='./js1_3/Script/script-001.js'>js1_3/Script/script-001.js</a> failed</b> <br>
[ <a href='#failure18'>Previous Failure</a> | <a href='#failure20'>Next Failure</a> | <a href='#tippy_top'>Top of Page</a> ]<br>
......@@ -181,7 +181,7 @@ Testcase terminated with signal 0<br>
Complete testcase output was:<br>
BUGNUMBER: 10278<br>
function-001.js functions not separated by semicolons are errors in version 120 and higher<br>
eval("function f(){}function g(){}") = undefined FAILED! expected: error<br>
eval("function f(){}function g(){}") = undefined PASSED!<br>
</tt><br>
<a name='failure21'></a><dd><b>Testcase <a target='other_window' href='./js1_5/Exceptions/catchguard-001.js'>js1_5/Exceptions/catchguard-001.js</a> failed</b> <br>
[ <a href='#failure20'>Previous Failure</a> | <a href='#failure22'>Next Failure</a> | <a href='#tippy_top'>Top of Page</a> ]<br>
......@@ -437,7 +437,7 @@ global code@./js1_6/String/regress-306591.js:48<br>
<pre>
<a name='retest_list'></a>
<h2>Retest List</h2><br>
# Retest List, squirrelfish, generated Thu Sep 6 15:11:19 2012.
# Retest List, squirrelfish, generated Fri Sep 21 18:29:47 2012.
# Original test base was: All tests.
# 1116 of 1124 test(s) were completed, 44 failures reported.
ecma_2/Exceptions/function-001.js
......
......@@ -53,7 +53,7 @@
testcases[tc++] = new TestCase(
SECTION,
"eval(\"function f(){}function g(){}\")",
"error",
undefined,
eval("function f(){}function g(){}") );
test();
......
......@@ -53,7 +53,7 @@
testcases[tc++] = new TestCase(
SECTION,
"eval(\"function f(){}function g(){}\")",
"error",
undefined,
eval("function f(){}function g(){}") );
test();
......
......@@ -53,7 +53,7 @@
testcases[tc++] = new TestCase(
SECTION,
"eval(\"function f(){}function g(){}\")",
"error",
undefined,
eval("function f(){}function g(){}") );
test();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment