| Index: test/webkit/fast/js/function-toString-semicolon-insertion.js
|
| diff --git a/test/webkit/array-constructor-host-call.js b/test/webkit/fast/js/function-toString-semicolon-insertion.js
|
| similarity index 75%
|
| copy from test/webkit/array-constructor-host-call.js
|
| copy to test/webkit/fast/js/function-toString-semicolon-insertion.js
|
| index 50d6489cafd0716dd5cbbe0f9da8a958d9f61ca6..fa89b918df685f949f179e05eb6bfd51657ab225 100644
|
| --- a/test/webkit/array-constructor-host-call.js
|
| +++ b/test/webkit/fast/js/function-toString-semicolon-insertion.js
|
| @@ -22,15 +22,12 @@
|
| // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| description(
|
| -"This tests that array construction via a host call works."
|
| +"This test checks that functions re-string-ify in a way that is syntactically " +
|
| +"compatible with concatenation."
|
| );
|
|
|
| -function constructArray(arrayConstructor) {
|
| - return new arrayConstructor(100);
|
| -}
|
| -
|
| -for (var i = 0; i < 3; ++i) {
|
| - var array = constructArray(Array);
|
| - shouldBeTrue("array instanceof Array");
|
| - shouldBe("array.length", "100");
|
| -}
|
| +shouldBe("(function(){return}).toString()", "'function () {return;}'");
|
| +shouldBe("(function(){return }).toString()", "'function () {return; }'");
|
| +shouldBe("(function(){return" + "\n" + "}).toString()", "'function () {return;" + "\\n" + "}'");
|
| +shouldBe("(function(){}).toString()", "'function () {}'");
|
| +shouldBe("(function(){ }).toString()", "'function () { }'");
|
|
|