| Index: test/webkit/fast/js/regexp-bol-with-multiline.js
|
| diff --git a/test/webkit/array-constructor-host-call.js b/test/webkit/fast/js/regexp-bol-with-multiline.js
|
| similarity index 82%
|
| copy from test/webkit/array-constructor-host-call.js
|
| copy to test/webkit/fast/js/regexp-bol-with-multiline.js
|
| index 50d6489cafd0716dd5cbbe0f9da8a958d9f61ca6..1611b6964c13c4f47a31c37fde2b14cdcecf2722 100644
|
| --- a/test/webkit/array-constructor-host-call.js
|
| +++ b/test/webkit/fast/js/regexp-bol-with-multiline.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."
|
| +'Test for beginning of line (BOL or ^) matching in a multiline string</a>'
|
| );
|
|
|
| -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");
|
| -}
|
| +var s = "aced\nabc";
|
| +shouldBeNull('s.match(/^abc/)');
|
| +shouldBe('s.match(/^abc/m)', '["abc"]');
|
| +shouldBeNull('s.match(/(^|X)abc/)');
|
| +shouldBe('s.match(/(^|X)abc/m)', '["abc",""]');
|
| +shouldBe('s.match(/(^a|Xa)bc/m)', '["abc","a"]');
|
|
|