summaryrefslogtreecommitdiff
path: root/test/built-ins/Date
Commit message (Collapse)AuthorAgeFilesLines
* Revert "js-beautify: make all indentation consistent (depth & character) ↵André Bargull2018-02-09398-1136/+972
| | | | | (#1409)" (#1412) This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
* js-beautify: make all indentation consistent (depth & character) (#1409)Rick Waldron2018-02-09398-972/+1136
|
* A fix for the copyrightViktor2018-01-251-1/+1
|
* Frontmatter nitsRick Waldron2018-01-171-3/+18
|
* Create non-integer-values.jsViktor2018-01-171-0/+14
|
* Frontmatter: fixup "info: >" to "info: |"Rick Waldron2018-01-05279-279/+279
|
* Add cross-realm featureLeo Balter2017-09-223-3/+3
|
* Remove duplicate frontmatter tagsRick Waldron2017-08-116-6/+0
|
* fix valueof frontmatter under DateSue Lockwood2017-08-022-2/+2
|
* add esid to Date frontmatterdeathbearbrown2017-08-02495-2/+497
|
* Merge pull request #924 from littledan/date-throwDaniel Ehrenberg2017-06-292-0/+35
|\ | | | | Test that Date.prototype.toString throws for non-Date receiver
| * Test toString() behavior of invalid DatesDaniel Ehrenberg2017-03-211-0/+15
| |
| * Changes to Date test from reviewDaniel Ehrenberg2017-03-211-2/+10
| |
| * Test that Date.prototype.toString throws for non-Date receiverDaniel Ehrenberg2017-03-211-0/+12
| | | | | | | | | | | | Pending discussion of https://github.com/tc39/ecma262/issues/849 Test passes in V8.
* | Make all harness/* file names consistent; update occurrences in testRick Waldron2017-06-284-8/+4
| | | | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* | Merge pull request #930 from littledan/date-tostring-testsRick Waldron2017-06-229-0/+176
|\ \ | | | | | | Date toString tests
| * | Fix typo from reviewDaniel Ehrenberg2017-06-151-1/+1
| | |
| * | Add tests for the formats of toString functionsDaniel Ehrenberg2017-03-236-0/+126
| | |
| * | Tests for "Invalid Date" in more casesDaniel Ehrenberg2017-03-213-0/+50
| |/ | | | | | | | | Following the proposed specification in https://github.com/tc39/ecma262/pull/848
* | Remove execute bit from files (#976)André Bargull2017-04-1348-0/+0
| |
* | Fix Date coercion tests (#906)Leo Balter2017-03-204-8/+107
|/ | | Fixes #767
* Rename $ => $262. Fixes gh-802 (#823)Rick Waldron2017-03-013-3/+3
| | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Fix various test issues (#840)André Bargull2017-02-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | test/annexB/built-ins/Date/prototype/setYear/time-clip.js test/built-ins/Date/prototype/setFullYear/new-value-time-clip.js test/built-ins/Date/prototype/setMonth/new-value-time-clip.js - Don't try to test time-clip at the end points, because this is near impossible to get right (needs to consider time zone offset, dst, local mean time because of Africa/Monrovia, etc.). test/built-ins/DataView/prototype/setFloat64/detached-buffer-after-toindex-byteoffset.js test/built-ins/DataView/prototype/setInt16/detached-buffer-after-toindex-byteoffset.js - Wasn't update to expect RangeError test/built-ins/Function/internals/Construct/derived-this-uninitialized-realm.js - Change ClassDeclaration -> ClassExpression to get completion value test/built-ins/Function/prototype/toString/AsyncFunction.js - Add missing \n in expected string - Also fixed in gh-847 test/built-ins/global/global-object.js - Add 'var' to make test pass in strict-mode test/language/block-scope/syntax/redeclaration-in-block/attempt-to-redeclare-function-declaration-with-function-declaration.js - This is allowed in sloppy mode when Annex B is implemented test/language/expressions/async-generators/expression-yield-as-statement.js - Fix calls to then() test/language/module-code/namespace/internals/own-property-keys-binding-types.js test/language/module-code/namespace/internals/own-property-keys-sort.js - Tests weren't updated after removal of @@iterator from module namespace objects test/language/module-code/namespace/internals/set-prototype-of-null.js - Fix syntax error test/language/statements/async-function/early-errors-no-async-generator.js - No longer valid now that async iteration proposal is at stage 3
* Merge pull request #766 from juandopazo/date-utc-nanLeo Balter2017-01-234-10/+37
|\ | | | | Add tests for non-optional arguments of Date.UTC()
| * Add Date.UTC(+/-Infinity) single arg test variants to infinity-make-day.jsRick Waldron2017-01-191-1/+5
| | | | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
| * Moves Date.UTC() test to no-args.jsRick Waldron2017-01-192-3/+20
| | | | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
| * Adds missing Date.UTC(NaN) variant, per review request.Rick Waldron2017-01-191-0/+1
| | | | | | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
| * Add tests for non-optional arguments of Date.UTC()Juan Dopazo2016-09-292-9/+14
| |
* | Add tests for realm interactions (#688)jugglinmike2016-10-243-0/+95
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Remove duplicate description keysAnthony Van de Gejuchte2016-08-272-2/+0
|
* Add tests for Date.prototype methodsMike Pennisi2016-07-09153-0/+6129
|
* Add tests for Date.UTCMike Pennisi2016-07-0910-0/+330
|
* Add test for subclassing DateMike Pennisi2016-07-091-0/+55
|
* Add test for `name` property of Date constructorMike Pennisi2016-07-091-0/+24
|
* Add tests for use of ToPrimitive in Date ctorMike Pennisi2016-07-096-0/+243
|
* Improve assertions comparing values to NaN (#690)Leo Balter2016-07-016-189/+128
| | | 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.
* Add tests for additional uses of @@toPrimitive (#666)jugglinmike2016-06-105-0/+207
|
* Merge pull request #534 from mythrialle/masterGorkem Yakin2016-04-251-12/+4
|\ | | | | Removes special handling for UTC timezone in toISOString/15.9.5.43-0-1…
| * Moves Date constructor outside of assert, so that it actually tests toISOStringMythri2016-04-251-6/+3
| |
| * Fixed commentsMythri2016-04-251-4/+4
| |
| * Removes special handling for UTC timezon in toISOString/15.9.5.43-0-13.jsMythri2016-03-101-5/+0
| |
* | Correct invalid tests for the Date constructorjugglinmike2016-04-196-246/+84
|/ | | | | | | | | | | The millisecond representation of a given Date instance is dependent on the local system's time zone settings. In order to pass consistently across contexts, tests for this value must take the system configuration into account. Introduce a test harness utility function to encapsulate these concerns. Re-use this function across all test files that assert the exact millisecond representation of Date instances.
* Add missing tests for "length" and "name" properties of built-in functionsAndré Bargull2016-01-1546-0/+1196
| | | | Note: Already uses the updated DataView function lengths from tc39/ecma262#266 (ES2016 Draft 2015-12-20)
* Interpret date-only forms as UTCAndré Bargull2015-11-111-1/+1
| | | | - Don't interpret date-only as local time
* Merge pull request #418 from bocoup/symbol-to-primitiveGorkem Yakin2015-09-1817-0/+551
|\ | | | | Add tests for well-known Symbol: @@toPrimitive
| * Add tests for well-known Symbol: @@toPrimitiveMike Pennisi2015-09-1215-252/+399
| | | | | | | | Split up test files as per review feedback.
| * Add tests for well-known Symbol: @@toPrimitiveMike Pennisi2015-08-168-0/+404
| |
* | Tests for changes introduced in ES2015 (Annex E)André Bargull2015-09-072-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - String case functions iterate over code points - Has called before Get in Array.p.reverse - Add test for web-compat Array.p.splice behaviour; Plus missing test for no arguments case - ToObject no longer applied to this-value in Array.p.toLocaleString - ToObject no longer applied to this-value in Object.p.toLocaleString - Add tests for Object.p.propertyIsEnumerable and symbol property keys - Add tests for Object.p.hasOwnProperty and symbol property keys - Test property descriptor attributes of message property - Tests for RegExp constructor checks - Date constructor when called with date object - TimeClip never returns negative zero
* | Replace runTestCase with assert helpers, rest [test/built-ins]André Bargull2015-08-133-30/+9
| |
* | Replace runTestCase with assert helpers [test/built-ins]André Bargull2015-08-135-25/+5
| |