124 Commits

Author SHA1 Message Date
Alexey Shvayka
6fb6ff6ac5 Add String.prototype.split test 2020-04-09 09:48:21 -04:00
Alexey Shvayka
0c0bcef6ea Add String.prototype.search test 2020-04-09 09:48:21 -04:00
Alexey Shvayka
25978298a4 Add String.prototype.replaceAll test 2020-04-09 09:48:21 -04:00
Alexey Shvayka
f21c828965 Add String.prototype.replace test 2020-04-09 09:48:21 -04:00
Alexey Shvayka
d8a6a06dcd Add String.prototype.match test 2020-04-09 09:48:21 -04:00
Alexey Shvayka
c1a7ffa2ef Rename searchValue-replace-method-abrupt.js 2020-04-09 09:48:21 -04:00
Alexey Shvayka
72c4433687 Add replaceValue evaluation order test 2020-02-05 15:08:07 -05:00
Alexey Shvayka
946a2a3fec Merge "length" tests 2020-02-05 15:08:07 -05:00
Leo Balter
3682ddd7e3
Add tests for String#replaceAll (#2423)
Fixes #2417
2019-11-18 10:22:07 -05:00
Jordan Harband
59d1af9d2a [matchAll] pass a global regex (#2399)
- also, expect the right kind of error in `flags-undefined-throws.js`

Fixes #2398
2019-10-09 10:32:39 -04:00
Jordan Harband
f3e950e8ed tests for String.prototype.matchAll changes (#2389)
Per https://github.com/tc39/ecma262/pull/1716
2019-10-03 14:47:00 -04:00
Leo Balter
e2903e2648
Merge pull request #2366 from bocoup/unnecessary-includes
Remove unnecessary "includes" directives
2019-09-27 16:46:22 -04:00
Mike Pennisi
9cd62ffbd7 Improve coverage: ctor props of the global object
Prior to this commit, the descriptors of the constructor properties of
the global object were verified inconsistently, many independent
assertions occured in the same file, and that file test was poorly
located.

Restructure the relevant tests to improve coverage, follow convention,
and promote discoverability.
2019-09-27 15:39:10 -04:00
Mike Pennisi
f26c2a11bd Remove unnecessary "includes" directives
The values defined by the referenced files are not used by these tests.
This makes their inclusion superfluous, which needlessly increases the
time to execute the tests and may confuse some readers.
2019-09-25 13:59:24 -04:00
Leo Balter
ff9763729d Remove duplicated es[56]id if esid is present 2019-08-05 10:54:37 -04:00
Aleksey Shvayka
4838fc3167 Improve String#toString and String#valueOf coverage (#2160)
* toString: rename "length" test

* toString: use verifyProperty in "name" test

* toString: rename & merge non-generic tests

* toString: add cross-realm non-generic test

* toString: rename happy path tests

* valueOf: use verifyProperty in "length" test

* valueOf: use verifyProperty in "name" test

* valueOf: rename & merge non-generic tests

* valueOf: add cross-realm non-generic test

* valueOf: rename happy path tests

* toString: add indirect invocation tests

* valueOf: add indirect invocation tests
2019-05-22 17:47:15 -04:00
Leo Balter
e403eea331 Fix false positives 2018-12-21 10:50:23 -05:00
Leo Balter
46c557247e Fix more false positives throwing TypeError in functions 2018-12-17 16:45:56 -05:00
Peter Wong
c36bdcfeb3 Update tests for String.prototype.matchAll (#1990)
- Changes associated with spec changes (tc39/proposal-string-matchall#41)
- Update spec comments
- Added test verifying error thrown when `regexp[Symbol.matchAll]` is not callable
- Added test verifying `ToString` is called on `receiver`
2018-12-10 10:53:01 -05:00
Rick Waldron
d98f3f4d63 Eliminate false positives: String.prototype.trimEnd, String.prototype.trimStart 2018-11-30 09:37:16 -05:00
Rick Waldron
f1e362d558 Fix typos; generate tests (#1907) 2018-10-26 17:11:05 -04:00
André Bargull
3febd4c536 Update matchAll tests to reflect latest spec proposal 2018-09-26 10:38:35 -04:00
Kevin Gibbons
89ec038cf2 remove some trailing commas in calls 2018-09-21 10:04:33 -04:00
Leo Balter
6c2503a810
Adds String.fromCodePoint to the features list (#1606) 2018-06-21 16:03:08 -04: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
5b3914a37b
String.prototype.matchAll: add tests for stage 3
`String.prototype.matchAll`: Add basic tests.
2018-01-25 00:25:10 -08:00
Rick Waldron
19ca734bea built-ins/String/*: make all indentation consistent (depth & character) (#1430) 2018-02-15 15:39:13 -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
Mathias Bynens
6fa2525107 [string-trimming] Fix whitespace tests
This patch fixes a typo (`\FEFF` → `\uFEFF`) and adds some missing whitespace symbols as a follow-up to https://github.com/tc39/test262/pull/1246.
2018-01-25 17:32:06 -05:00
Rick Waldron
966dfb4cd0 String.prototype.trimEnd,trimStart: add feature (per new convention) 2018-01-25 14:38:51 -05:00
Valerie R Young
05d1ddf670 Fixup edit to info 2018-01-25 14:10:41 -05:00
Valerie R Young
56d57956a0 Add this value object testing to trimEnd 2018-01-25 14:10:41 -05:00
Valerie R Young
2b7df61dd6 Fixup typos 2018-01-25 14:10:41 -05:00
Valerie R Young
828c8031ef Add tests for object to primitive returns object errors 2018-01-25 14:10:40 -05:00
Valerie R Young
7c0053358a Add tests for object to primitive method errors 2018-01-25 14:10:40 -05:00
Valerie R Young
94325316be Add tests for object to primitive call errors 2018-01-25 14:10:40 -05:00
Valerie R Young
f945473767 Add test of object without to primitive functionality 2018-01-25 14:10:40 -05:00
Valerie R Young
232eec1f3b Completely rewrite ToPrimitive method priority testing 2018-01-25 14:10:40 -05:00
Valerie R Young
fc86cef984 fix typos 2018-01-25 14:10:40 -05:00
Valerie R Young
6501563705 Add ToPrimitive method priority testing 2018-01-25 14:10:40 -05:00
Valerie R Young
bdcb73ae27 Add tests for sucessful whitespace removing 2018-01-25 14:10:40 -05:00
Valerie R Young
583a67af4c Add number tests for trim(Start/End) 2018-01-25 14:10:14 -05:00
Valerie R Young
812e071f03 fixup: Add boolean/Symbol() tests for trim(Start/End) 2018-01-25 14:10:14 -05:00
Valerie R Young
fdf8e8bd3f Fixup: Add object coercible tests for trim(start/End) 2018-01-25 14:10:14 -05:00
Valerie R Young
2905e6a293 fixup: Add initial tests for trim(Start/End/Left/Right) 2018-01-25 14:10:14 -05:00
Valerie R Young
0c796ea88b Add boolean/Symbol() tests for trim(Start/End) 2018-01-25 14:10:14 -05:00
Valerie R Young
3f42003974 Add object coercible tests for trim(start/End) 2018-01-25 14:10:14 -05:00
Valerie R Young
5931e313fc Add initial tests for trim(Start/End/Left/Right) 2018-01-25 14:10:14 -05:00
Rick Waldron
92a2621901 Frontmatter: fixup "info: >" to "info: |" 2018-01-05 12:27:59 -05:00