111 Commits

Author SHA1 Message Date
Leo Balter
0fde488bb4
Update tests for CharacterClassEscapes in RegExps (#1611) 2018-07-09 12:30:33 -04:00
Mathias Bynens
c7ac073e73 Update tests for RegExp Unicode property escapes (#1633)
62cbe2f1cb
2018-07-09 12:26:53 -04:00
Leo Balter
012114a6c7 Update non whitespace RegExp tests 2018-06-18 15:53:08 -04:00
Rick Waldron
f90a52b396
Merge pull request #1587 from peterwmwong/update-matchall
Update tests for String.prototype.matchAll
2018-06-07 23:15:50 -04:00
peterwmwong
bbad9482e6 Update tests for String.prototype.matchAll
As per spec changes (https://github.com/tc39/proposal-string-matchall/pull/35), removed tests related to the removed IsRegExp call.
To prevent older implementations (not observing spec change) from passing, added a new test to verify the reduced number of observable calls to IsRegExp.

Also fix a misreference in `features` frontmatter.
2018-06-07 21:23:54 -05:00
Mathias Bynens
85d595effa Update RegExp Unicode property escape tests per Unicode 11
Emoji data is now published as part of the Unicode standard itself, and thus follows the same version number.

Ref. f302c60c84.
Ref. https://github.com/tc39/ecma262/pull/1218.
Ref. https://github.com/tc39/ecma262/issues/1219.
2018-06-07 15:32:41 +02:00
peterwmwong
f1e45d9e5e
Fleshed out tests for Symbol.matchAll, String.p.matchAll, RegExp.p[@@matchAll], and %RegExpStringIteratorPrototype%
Tests were updated and assuming https://github.com/tc39/proposal-string-matchall/pull/33 will be merged.
2018-03-17 22:48:31 -05:00
Jordan Harband
e15be1853b
String.prototype.matchAll: add tests for stage 3
`RegExp.prototype[Symbol.matchAll]`: Add basic tests.
2018-01-25 23:45:12 -08:00
Leo Balter
ac55e29ed0 Fix yaml consistency 2018-03-06 14:36:02 -05:00
André Bargull
f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
2018-02-09 12:09:47 -05:00
Rick Waldron
a01de4a722 js-beautify: make all indentation consistent (depth & character) (#1409) 2018-02-09 11:35:37 -05:00
André Bargull
f717982c94 Remove unused includes 2018-01-25 13:59:37 -05:00
André Bargull
8b50602099 Replace Annex-B __proto__ with Object.[gs]etPrototypeOf 2018-01-25 13:59:37 -05:00
Rick Waldron
92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00
Mathias Bynens
7446e885e9 [regexp-named-groups] Expand tests for groups property
The `groups` property must be created unconditionally. https://github.com/tc39/proposal-regexp-named-groups/pull/40
2017-12-20 15:33:37 -05:00
André Bargull
2d6a356699 Move incomplete_hex_unicode_escape.js to annexB
Fixes #1313
2017-11-01 08:23:43 -07:00
Mathias Bynens
4e7ed93da8
RegExp property escapes: test Extended_Pictographic 2017-10-22 10:05:05 -07:00
Zirak
d36a1777b4 Test for proper handling of incomplete hex escapes (#1274)
See relevant firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1408452
2017-10-16 13:04:51 -04:00
Daniel Ehrenberg
e6df79231d Update RegExp named capture tests for spec change (#1270)
The RegExp named groups specification has changed to not throw
errors in certain cases. This patch updates the test262 tests to match
the new specification, and throws in an additional test that verifies
the interaction between named group syntax and other replacement.
The tests pass on a version of V8 which implements the new semantics.

92ceba518c
2017-10-13 14:16:16 -04:00
Leo Balter
c969153145 Fix a test looping for space separator chars 2017-09-26 14:13:29 -04:00
Leo Balter
60782de95e Tag tests for U+180E and complete coverage for RegExp matching 2017-09-25 15:27:59 -04:00
Leo Balter
7cbbe51216 Add cross-realm feature 2017-09-22 15:29:10 -04:00
André Bargull
804e008310 Split Annex-B parts of non-unicode-malformed.js into annexB folder 2017-09-18 14:39:32 -04:00
Leo Balter
1bdddabf97 Add missing Symbol.split feature flags 2017-09-08 10:13:50 -04:00
Leo Balter
a9099c1f20 Add missing Symbol.replace feature flags 2017-09-08 10:13:50 -04:00
Leo Balter
f52f233934 Add missing Symbol.match feature flags 2017-09-08 10:13:50 -04:00
André Bargull
e44d73733b Expect early SyntaxError when character range consists of two character classes 2017-09-05 11:18:06 -04:00
Leo Balter
f1d7a67e11 Apply feedback for RegExp.prototype.flags (#1196)
* Apply feedback for RegExp.prototype.flags

Ref #1149
2017-08-23 15:03:28 -04:00
Aleksey Shvayka
d91044c788 Improve RegExp.prototype.flags coverage (#1149) 2017-08-23 14:03:01 -04:00
Mathias Bynens
953992d235 Update RegExp Unicode property escape tests per latest proposal & Unicode 10 2017-07-13 12:35:44 -04:00
Aleksey Shvayka
4327cdb207 Improve RegExp.prototype.source coverage (#1145) 2017-07-11 11:14:21 -04:00
Aleksey Shvayka
ce0ba9b2e6 add escaped substitution test 2017-06-27 00:45:08 +03:00
Aleksey Shvayka
f7b15e18d4 add empty replace test 2017-06-26 18:57:19 +03:00
Aleksey Shvayka
cb22dad417 add empty references tests 2017-06-26 18:35:16 +03:00
Aleksey Shvayka
c38f1d12b0 add groups object tests 2017-06-23 22:59:57 +03:00
Mathias Bynens
d587abccdb Fix test involving a Unicode property escape in a character class range (#1034)
Thanks to @anba for spotting this: 4843f049fa (r116528031)
2017-05-17 13:07:50 -04:00
Mathias Bynens
d5e1150325 Add regular RegExp Unicode property escape tests (#1014)
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/pull/8.
2017-05-01 13:25:51 -04:00
Leo Balter
ca314476a9 Update RegExp tests for named-capturing and dotAll (#1009)
* Split order tests for RegExp#flags

* small fixes for RegExp named groups

* Remove invalid syntax

* The test mustn't include the global flag
2017-05-01 12:08:31 -04:00
Leo Balter
a09f857ed8 Merge pull request #1006 from leobalter/fix-info
Update RegExp#dotAll tests
2017-04-27 19:37:54 -04:00
Leo Balter
0f10d73fef
Split tests and fix actual/expected order 2017-04-27 19:33:42 -04:00
Daniel Ehrenberg
6ee183a057
RegExp lookbehind tests
Tests for the stage 3 proposal at
https://tc39.github.io/proposal-regexp-lookbehind/

Tests ported from V8, written by @hashseed
2017-04-27 19:33:40 -04:00
Leo Balter
7493787a3f
Replace duplicate case 2017-04-27 18:39:37 -04:00
Leo Balter
028d984c0e
Update RegExp#dotAll tests 2017-04-27 18:35:37 -04:00
Leo Balter
f2db2b6829
fix metadata for regexp.prototype.dotall 2017-04-27 18:24:48 -04:00
Daniel Ehrenberg
bfc9020d51 Tests for RegExp dotAll proposal (#997)
Proposal from @mathiasbynens at https://github.com/tc39/proposal-regexp-dotall-flag and https://tc39.github.io/proposal-regexp-dotall-flag/
2017-04-27 18:20:24 -04:00
Daniel Ehrenberg
6cf15f523a RegExp named group tests (#998)
Tests against the Stage 3 named capture groups proposal
https://tc39.github.io/proposal-regexp-named-groups
2017-04-27 12:50:59 -04:00
Mathias Bynens
d354788f6f RegExp property escapes: list emoji data version (UTR51) (#981) 2017-04-18 12:30:35 -04:00
Mike Pennisi
2c0c3e7f96 Correct typo in copyright information 2017-04-18 12:23:22 -04:00
Mathias Bynens
1c1935e363 Remove tests for Unicode properties that are no longer supported (#980)
Ref. https://github.com/tc39/proposal-regexp-unicode-property-escapes/issues/27.
2017-04-15 12:57:32 -04:00
Mathias Bynens
92a85ed8fd Fix Script_Extensions=Inherited data (#977)
Ref. https://github.com/mathiasbynens/node-unicode-data/issues/45.
Ref. da8ae69b9b.
Ref. https://github.com/mathiasbynens/unicode-property-escapes-tests/issues/7.
2017-04-14 12:20:05 -04:00