summaryrefslogtreecommitdiff
path: root/test/built-ins/String
Commit message (Collapse)AuthorAgeFilesLines
* Revert "js-beautify: make all indentation consistent (depth & character) ↵André Bargull2018-02-09647-3191/+2353
| | | | | (#1409)" (#1412) This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
* js-beautify: make all indentation consistent (depth & character) (#1409)Rick Waldron2018-02-09647-2353/+3191
|
* [string-trimming] Fix whitespace testsMathias Bynens2018-01-252-2/+2
| | | | 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.
* String.prototype.trimEnd,trimStart: add feature (per new convention)Rick Waldron2018-01-2543-43/+43
|
* Fixup edit to infoValerie R Young2018-01-256-12/+12
|
* Add this value object testing to trimEndValerie R Young2018-01-2513-0/+746
|
* Fixup typosValerie R Young2018-01-252-4/+3
|
* Add tests for object to primitive returns object errorsValerie R Young2018-01-253-0/+151
|
* Add tests for object to primitive method errorsValerie R Young2018-01-253-0/+143
|
* Add tests for object to primitive call errorsValerie R Young2018-01-253-0/+137
|
* Add test of object without to primitive functionalityValerie R Young2018-01-251-0/+57
|
* Completely rewrite ToPrimitive method priority testingValerie R Young2018-01-254-95/+259
|
* fix typosValerie R Young2018-01-251-6/+6
|
* Add ToPrimitive method priority testingValerie R Young2018-01-251-0/+95
|
* Add tests for sucessful whitespace removingValerie R Young2018-01-254-0/+126
|
* Add number tests for trim(Start/End)Valerie R Young2018-01-252-0/+96
|
* fixup: Add boolean/Symbol() tests for trim(Start/End)Valerie R Young2018-01-254-27/+53
|
* Fixup: Add object coercible tests for trim(start/End)Valerie R Young2018-01-252-2/+4
|
* fixup: Add initial tests for trim(Start/End/Left/Right)Valerie R Young2018-01-256-32/+46
|
* Add boolean/Symbol() tests for trim(Start/End)Valerie R Young2018-01-254-0/+84
|
* Add object coercible tests for trim(start/End)Valerie R Young2018-01-252-0/+42
|
* Add initial tests for trim(Start/End/Left/Right)Valerie R Young2018-01-256-0/+148
|
* Frontmatter: fixup "info: >" to "info: |"Rick Waldron2018-01-05440-440/+440
|
* generate some type coercion testsJosh Wolfe2017-12-2110-37/+728
|
* fix repeated features tags (#1266)Leo Balter2017-10-061-2/+1
|
* Features.txt: Add string-trimming; replace "#" in feature tags (#1247)Rick Waldron2017-10-0352-28/+54
|
* Tag tests for U+180E and complete coverage for RegExp matchingLeo Balter2017-09-253-0/+3
|
* Add cross-realm featureLeo Balter2017-09-221-1/+1
|
* features: update all features flags for all test files with harness/* deps ↵Rick Waldron2017-09-082-0/+2
| | | | that require a feature flag
* test for String.prototype.indexOf first parameter type coercionJosh Wolfe2017-09-081-0/+25
|
* use informative stack traces instead of loopsJosh Wolfe2017-09-081-9/+7
|
* type coercion harness utilitiesJosh Wolfe2017-09-081-0/+30
|
* Remove execute bit from files (#976)André Bargull2017-04-1331-0/+0
|
* Fix invalid String#indexOf test in a coercible Date instanceLeonardo Balter2017-03-131-20/+0
| | | | | | | | | | | | | | | Fixes #793 As described by @ediosyncratic: Date(0) flows through the given algorithm to ToDateString, which should: > Return an implementation-dependent String value that represents tv as > a date and time in the current time zone using a convenient, human-readable form. The string is implementation-dependent and there is nothing constraining it to use a two-digit day-of-month (so "Thu Jan 1, 1970, 0:0:0" would be valid), much less to position it at index 8.
* Rename $ => $262. Fixes gh-802 (#823)Rick Waldron2017-03-011-1/+1
| | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Add tests for realm interactions (#688)jugglinmike2016-10-241-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tests for prototype realm inference * Add tests for miscellaneous realm concerns * Add tests for realm of spec-created Errors In some cases, Error objects produced by the specification are observable from ECMAScript code. Among these cases, some are further differentiated in that they occur outside of any built-in function and may be triggered through syntactic production directly. The current realm record is commonly interpreted incorrectly under these circumstances. Add tests asserting that the expected realm record is used when constructing such Error objects. * Add tests for realm use in ArraySpeciesCreate * Add tests for function realm retrieval * Add tests for cross-realm behaviors of Symbols * Add tests for GetValue and PutValue * Add tests for realm of spec-created Arrays In some cases, Arrays produced by CreateArrayFromList are observable from ECMAScript code. Among these cases, two occur outside of any built-in function and may be triggered through syntactic production directly. The current realm record is commonly interpreted incorrectly under these circumstances. Add tests asserting that the expected realm record is used when constructing arrays. * Add test for spec-created object * fixup! Add tests for realm of spec-created Errors * fixup! Add tests for realm of spec-created Errors * fixup! Add tests for prototype realm inference * fixup! Add tests for miscellaneous realm concerns
* Improve coverage for section 9 (#726)jugglinmike2016-08-051-0/+32
| | | | | | | | | | | | | * Assert creation of 'arguments' object Ensure that the 'arguments' object is created in cases where it is not required by the body but is required by the parameters. * Add tests for cases that disable "arguments" map * Add tests for NewTarget override of bound function * Add test for properties of exotic String objects
* Ensure U+180E is no longer considered whitespaceMathias Bynens2016-07-069-16/+151
| | | | | | | | Ref. https://hashseed.blogspot.com/2014/08/in-ecma-262-5.html Ref. https://github.com/tc39/ecma262/pull/300#issuecomment-181376767 Ref. https://github.com/mathiasbynens/regexpu-core/commit/9b10d2a597d4e56b236cae0f9aa2f21a9c6d1122 Fix and add @anba’s U+180E tests
* Improve coverage for section 21: String (#712)jugglinmike2016-07-0523-0/+522
| | | | | | | | | | | | | This changeset increases coverage for section 21, specifically "21.1 String Objects". * Add tests for "this" validation of String methods * Add tests for ToNumber as used by String methods * Add test for `length` prop of exotic String objs * fixup! Add test for `length` prop of exotic String objs
* Improve assertions comparing values to NaN (#690)Leo Balter2016-07-012-14/+2
| | | The global isNaN is not precise at all, and Number.isNaN is an ES6 feature that makes it preferrable to use assert's sameValue for NaN values, as it handles it internally using the comparison.
* Remove duplicate front matter keys (#621)Ian Halliday2016-05-061-1/+2
| | | Fixes #620
* Merge branch 'bocoup/global-object'Gorkem Yakin2016-04-252-6/+5
|\
| * Reduce reliance on `fnGlobalObject.js`Mike Pennisi2016-04-252-6/+5
| | | | | | | | | | | | | | | | | | | | This harness function is not necessary in the majority of cases in which it is used. Remove its usage to simplify tests and decrease the amount of domain-specific knowledge necessary to contribute to the test suite. Persist the harness function itself for use by future tests for ES2015 modules (such a helper is necessary for tests that are interpreted as module code).
* | Increase coverage for Symbol constructorMike Pennisi2016-04-252-13/+35
|/ | | | | Add new tests for invocation requirements; re-organize existing files according to the language feature under test.
* Add tests for `String#padStart` and `String#padEnd`.Jordan Harband2016-04-0624-0/+428
| | | | | | https://github.com/tc39/proposal-string-pad-start-end/issues/23 Closes gh-564
* Remove unused harness fileMike Pennisi2016-02-127-14/+0
| | | | | | | | | | | The harness file `Test262Error.js` has not contained executable code since it was introduced in this project [1]. The definition of the `Test262Error` function has consistently been located in the `sta.js` harness file which test runners are expected to inject into the test environment. Remove the file and all references to it. [1] See commit c33bf0e0439e6f6bf084c1524d7df8d2b41c515d
* Add missing tests for "length" and "name" properties of built-in functionsAndré Bargull2016-01-1521-0/+549
| | | | Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
* Revert primitive wrapper prototypes and String#split to ES5André Bargull2015-11-064-16/+9
| | | | | - Revert Number, Boolean and String prototypes to ES5 semantics - Revert String.prototype.split's to ES5 behavior
* Merge pull request #399 from bocoup/symbol-matchGorkem Yakin2015-09-147-31/+113
|\ | | | | Add tests for @@match
| * Add tests for @@matchMike Pennisi2015-09-147-31/+113
| | | | | | | | | | | | Introduce tests for the well-known Symbol, `@@match`. This effects the behavior of `String.prototype.match` and is also used by the IsRegExp abstract operation.