Commit Graph

1168 Commits

Author SHA1 Message Date
André Bargull b552dad5cb Various test cases for cross-browser compliance bugs 2018-05-03 09:27:27 -07:00
Leo Balter 24356b0c2c fix yaml 2018-04-25 11:39:23 -03:00
Rick Waldron a43777651c Atomics.wait: additional coverage. Completes gh-1466 2018-04-25 11:01:37 -03:00
Rick Waldron d12d7d270e Atomics.wake: additional coverage. (#1523)
Completes gh-1472
2018-04-25 10:00:35 -04:00
André Bargull a1faccdd41 Fix various test bugs
- "CannotSuspendMainAgent" feature was changed to "CanBlockIsFalse" flag
- Move annex-b tests into annex-b directory
- Update variable names in nonshared-int-views.js tests
- Move getReport() call in nan-for-timeout.js to avoid iloop
- Update BigInt constructor to match new semantics (tc39/proposal-bigint#138)
2018-04-24 09:52:35 -07:00
Rick Waldron c55d2ab7c3 Extensive Function toString updates for "Function.prototype.toString revision" proposal. (#1510)
Fixes gh-1453
2018-04-19 16:44:52 -04:00
Rick Waldron ac65ecab7c Atomics: updates to tests 2018-04-19 15:09:39 -04:00
Amal Hussein 251a69acca wip 2018-04-19 15:07:05 -04:00
Amal Hussein 9d909ed681 fixup from pr feedback 2018-04-19 15:07:05 -04:00
Amal Hussein 0059b4783d additional test coverage for atomics.wait + removing old tests which have been replaced + test cleanup and renaming test files for consistency 2018-04-19 15:07:05 -04:00
Rick Waldron 9f57733ed9 Test all no-construct no-call objects consistently (#1520)
Related to https://github.com/tc39/ecma262/pull/1177
2018-04-19 11:23:17 -04:00
Rick Waldron cd6305155b BigInt: additional info frontmatter. Validated features (#1518) 2018-04-18 16:56:06 -04:00
Rick Waldron 14931c923f
Merge pull request #1516 from cxielarko/tostring-default-radix
test BigInt toString with default radix
2018-04-18 16:21:39 -04:00
Rick Waldron 119c8eadfa
Merge pull request #1517 from cxielarko/valueof-realm
cross-realm test for BigInt.prototype.valueOf
2018-04-18 16:19:49 -04:00
Robin Templeton 5be8900d6b cross-realm test for BigInt.prototype.valueOf
Thanks to Jeff Walden for suggesting this test case.
2018-04-17 20:50:05 -04:00
Robin Templeton 6d4b9a55f1 test BigInt toString with default radix
Thanks to Jeff Walden for suggesting this test case.
2018-04-17 20:25:35 -04:00
Robin Templeton bf1b79d65a remove IsSafeInteger checks for BigInt 2018-04-16 13:29:03 -04:00
Andrew Paprocki cab89848ad Date.parse: Test maximum time value range per spec. 2018-03-22 15:42:56 +00:00
Andrew Paprocki 9db5005ac3 Date.parse: Add 0 (UTC epoch) test per spec. 2018-03-22 15:42:55 +00:00
Amal Hussein 5d6899522a additional test coverage for atomics.wait (#1497) 2018-03-19 20:06:53 -04:00
Leo Balter 478f5b4c0c
Add features tags for Atomics and SharedArrayBuffer (#1494)
* Add features tags for Atomics

* Add features tags for SharedArrayBuffer
2018-03-19 19:51:32 -04:00
Leo Balter 431e6cb20c
Add more tests for Atomics wait (#1495) 2018-03-19 19:50:28 -04:00
Rick Waldron 03f0f56961 Promise.all/race with non-iterable or invalid return from Symbol.iterator. (#1496)
Fixes gh-1490
2018-03-19 14:01:36 -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
Amal Hussein 50dd1fbd58 additional tests for atomics wait + updated input values #1492 fix (#1493) 2018-03-16 15:41:59 -04:00
Amal Hussein b07c546b8a Initial tests for extending Atomics.wait test coverage (#1488) 2018-03-13 17:22:10 -04:00
Valerie R Young cc86629301 BigInt: fix, make sure to correctly use different typedarray ctor 2018-03-13 15:23:39 -04:00
Valerie R Young 3f96092cb9 BigInt: fix, set only BigInts to index to avoid false negatives 2018-03-13 15:07:17 -04:00
Valerie R Young 324c18038b BigInt: fix input values to be type BigInt 2018-03-13 14:58:43 -04:00
Valerie R Young 7c857318f0 BigInt: fix, other TypedArray should be Big 2018-03-13 14:53:06 -04:00
Valerie R Young 07fdc340a4 BigInt: fix make buffer size BYTES_PER_ELEMENT 2018-03-13 14:37:15 -04:00
Valerie R Young a9827c945d BigInt: fix TypedArray fncs expecting BigInt for cmp 2018-03-13 13:47:29 -04:00
Valerie R Young fcb5207932 BigInt: fix test sortcompare does not call toString 2018-03-13 13:26:50 -04:00
Rick Waldron 2975694f86 Weaken tests about NaN canonicalization.
Fixes gh-1476
Closes gh-1484
2018-03-13 12:53:39 -04:00
Valerie 7b200cb9e7 Rename TypedArrays folder to TypedArrayConstructors (#1489) 2018-03-13 12:47:18 -04:00
Valerie 496771cd64 BigInt: fix error type in BigInt from string conversion (#1487) 2018-03-12 15:22:29 -04:00
Valerie b1bbf08bdc BigInt: some fixes listed in #1461 (#1485)
test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-conversion-once.js
- Should refer to BigInt conversion instead of ToNumber

test/built-ins/TypedArray/prototype/fill/BigInt/fill-values-non-numeric.js
- Missing coverage for non-convertable values like undefined or null?
- added fill-values-non-numeric-throw.js

test/built-ins/TypedArray/prototype/set/BigInt/array-arg-return-abrupt-tointeger-offset-symbol.js
- Change [1] to [1n] to avoid possible false-positives because ToBigInt(1) also throws a TypeError.
- Issue also present in other set() tests.
2018-03-12 14:23:58 -04:00
Valerie 985c439c94 BigInt: Add tests for BigInt conversions in TypedArray prototype/set and TypedArray internal [[set]] (#1478)
* BigInt: Add tests for BigInt conversions in prototype/set

* BigInt: add conversion tests for internal [[set]]
2018-03-12 14:21:27 -04:00
Valerie 3c69133cc4 Bigint typedarray conversion (#1469)
* BigInt: add tests for TypedArray(typedArray) constructor of mixed 'Big'/'not Big' element types

* BigInt: update info text on tests of ToBigInt

* BigInt: conversion to big int on creation of Big(U)Int64 TypedArray

* BigInt: Add tests for ToBigInt64 and ToBigUint64 wrapping
2018-03-09 11:23:50 -05:00
Leo Balter 3854fc38dd
Merge pull request #1481 from bocoup/anba-fixes
TypedArray and Async Iteration bug fixes
2018-03-09 10:39:34 -05:00
Leo Balter dd147e5052 Whitespace 2018-03-09 10:31:38 -05:00
Valerie R Young 2576b60364 TypedArray and Async Iteration bug fixes 2018-03-08 18:23:27 -05:00
Leo Balter ccab9a18b0
Fix length prop tests for the TypedArrays ctors family (#1479) 2018-03-08 09:21:09 -05:00
Rick Waldron 3af53b8087 test/built-ins/Object/prototype/toString/*.js: clean up and extended fixes from gh-1473 (#1475) 2018-03-07 14:11:28 -05:00
Michael Ficarra 3207bf74d0 Function.prototype.toString works on symbol-named built-ins 2018-03-07 14:09:45 -05:00
Michael Ficarra f3b8aff71f Function.prototype.toString works on anonymous well-known intrinsics 2018-03-07 14:09:45 -05:00
Michael Ficarra 7d5a5fef36 add Function.prototype.toString result for callable proxies 2018-03-07 14:09:45 -05:00
Michael Ficarra 83ffb4bbf2 allow any function to report its toString as a NativeFunction
related: https://github.com/tc39/Function-prototype-toString-revision/pull/26
2018-03-07 14:09:45 -05:00
Rick Waldron ce9419779f typed-arrays/bigint: fixes per recommendation. (#1473)
Fixes gh-1467
2018-03-06 15:14:11 -05:00
Leo Balter ac55e29ed0 Fix yaml consistency 2018-03-06 14:36:02 -05:00
Valerie 52f70e2f63 typed-array: ctor test renames (#1468) 2018-03-02 15:20:41 -05:00
Valerie e14a9ad9fe async-iteration: AsyncGeneratorPrototype tests (#1451) 2018-03-02 09:44:23 -05:00
Valerie R Young 4a3e19b3e4 async-iteration: AsyncFromSyncIteratorPrototype next/throw/return 2018-03-01 18:40:06 -05:00
Rick Waldron 0192e0d70e TypedArrays with elementSize 1 cannot produce these range errors (#1465) 2018-03-01 15:10:10 -05:00
Leo Balter 7add5252e5 Remove unused parameter for testWithBigIntTypedArrayConstructors
+whitespace
2018-02-28 11:06:31 -05:00
Adrian Heine né Lang a01e2a3f03 Remove unused BigInt syntax in TA test (#1455) 2018-02-27 17:45:53 -05:00
Rick Waldron 4efdb83ae9 Updates a portion of the BigInt tests that need work. Ref gh-1461 (#1462) 2018-02-27 17:45:25 -05:00
Leo Balter 2712807027
Fix errors recently introduced. (#1448)
* Fix bad references on tests for BigInt TypedArrays

* Remove bad conversions for BigInt TypedArray

* Cleanup the BigInt TypedArray harness file

Remove non used code (testBigIntTypedArrayConversions)

Move the constructors list to inside the exposed function, this prevents early implementations to fail before the function is called.

* Fix bad references in TypedArrays.of (BigInt)

* Remove BigInt tests from typedarray harness test

* Use BigInt for BigInt typedArrays

* Apply last fixings on BigInt TypedArray tests

* Apply fixes to last revision from @anba
2018-02-27 14:58:56 -05:00
Sathya Gunasekaran 476ebcebf1 Remove whitespace between Literal and BigIntLiteralSuffix (#1452) 2018-02-22 21:55:13 -05:00
Valerie R Young 7882fbfae3 async-iteration: move existing throw/return tests to AsyncGeneratorPrototype dir 2018-02-22 13:34:08 -05:00
Valerie R Young d807e8fa96 Update Function/prototype/toString 'esid: pending' frontmatter 2018-02-22 13:34:08 -05:00
Leo Balter 8add0d64b2 Fix whitespace 2018-02-15 18:04:03 -05:00
Rick Waldron 7024f3fa11
Merge pull request #1413 from leobalter/cxielarko-bigint-ta-3
BigInt+TypedArray tests, splitted
2018-02-15 18:03:39 -05:00
Leo Balter 857f1d429b fix bad fixings from Remove N 2018-02-15 17:51:52 -05:00
Rick Waldron afa24856b4 built-ins/Array/*: make all indentation consistent (depth & character) (#1415) 2018-02-15 17:40:02 -05:00
Rick Waldron 0bf08dff3d built-ins/Math/*: make all indentation consistent (depth & character) (#1435) 2018-02-15 17:35:45 -05:00
Leo Balter 77096157d1 fix syntax typo 2018-02-15 16:45:10 -05:00
Leo Balter c6cd535940 Last cases of convertToBigInt 2018-02-15 16:45:10 -05:00
Leo Balter 3325e2a516 Minimize use of convertToBigInt 2018-02-15 16:45:10 -05:00
Leo Balter 296657cd90 Fix missing BigInt usage in TypedArrays 2018-02-15 16:45:09 -05:00
Leo Balter dd2dfc9fb1 remove bogus checks 2018-02-15 16:45:09 -05:00
Leo Balter 098c69540e Remove N() 2018-02-15 16:45:08 -05:00
Leo Balter b6664ca24a Add missing feature flag for TypedArrays 2018-02-15 16:45:08 -05:00
Leo Balter d30bf82d47 Add missing feature flags 2018-02-15 16:45:07 -05:00
Leo Balter 08c1f36828 Use esid tags on TypedArray/prototype/* 2018-02-15 16:45:07 -05:00
Leo Balter c1bc43b1b1 Restore original tests for TypedArrays and optimize files
- optimize file names
- BigInt folder for TAs.from and of
- copy tests preparing for bigint
- copy ta prototype methods for bigint
- Use an exclusive harness for bigint typedarrays
- add features
- use proper harness
- use preper harness
- Restore original tests for TypedArrays
- final fixes
- fix includes
2018-02-15 16:45:06 -05:00
Leo Balter 5722ac494b Move TypedArray ctors tests to a bigint specific folder 2018-02-15 16:45:05 -05:00
Robin Templeton 9232d65b30 BigInt TypedArray tests
- add @jakobkummerow's changes
- remove EOL whitespace
- use 'Array.isArray' instead of 'instanceof Array'
- check for BigInt type in toLocaleString tests
- specify TypedArray constructor list for non-BigInt tests
- update TypedArray harness test for BigInt
- add a missing type coercion
- disable more tests for Big(U)Int64Array
- check for BigInt before using BigInt TypedArray constructors
2018-02-15 16:45:05 -05:00
Rick Waldron b59d956b3c built-ins/Date/*: make all indentation consistent (depth & character) (#1422) 2018-02-15 16:40:26 -05:00
Rick Waldron 6c50d46b39 built-ins/BigInt/*: make all indentation consistent (depth & character) (#1418) 2018-02-15 15:57:16 -05:00
Rick Waldron 4b5f07a9ff built-ins/DataView/*: make all indentation consistent (depth & character) (#1416) 2018-02-15 15:55:14 -05:00
Rick Waldron a7ab6b4fd5 built-ins/Boolean/*: make all indentation consistent (depth & character) (#1417) 2018-02-15 15:54:27 -05:00
Rick Waldron 93d0256d87 built-ins/ArrayBuffer/*: make all indentation consistent (depth & character) (#1421) 2018-02-15 15:54:16 -05:00
Rick Waldron 319a5bdb08 built-ins/SharedArrayBuffer/*: make all indentation consistent (depth & character) (#1426) 2018-02-15 15:51:40 -05:00
Rick Waldron b85474508c built-ins/decode/* - built-ins/eval/*: make all indentation consistent (depth & character) (#1423) 2018-02-15 15:50:18 -05:00
Rick Waldron 1b30a976e8 built-ins/Function/*: make all indentation consistent (depth & character) (#1424)
This intentionally skips test/built-ins/Function/prototype/toString/*
2018-02-15 15:49:19 -05:00
Rick Waldron f574680595 built-ins/Symbol/*: make all indentation consistent (depth & character) (#1425) 2018-02-15 15:41:33 -05:00
Rick Waldron bc70e0339f built-ins/ThrowTypeError/*: make all indentation consistent (depth & character) (#1427) 2018-02-15 15:41:09 -05:00
Rick Waldron 621d34d5ea built-ins/WeakMap/*: make all indentation consistent (depth & character) (#1428) 2018-02-15 15:40:46 -05:00
Rick Waldron e0db75f74b built-ins/Reflect/*: make all indentation consistent (depth & character) (#1429) 2018-02-15 15:40:15 -05:00
Rick Waldron 19ca734bea built-ins/String/*: make all indentation consistent (depth & character) (#1430) 2018-02-15 15:39:13 -05:00
Rick Waldron af37c92af7 built-ins/Set/*: make all indentation consistent (depth & character) (#1431) 2018-02-15 15:34:45 -05:00
Rick Waldron a61b9cd671 built-ins/Object/*: make all indentation consistent (depth & character) (#1432) 2018-02-15 15:33:45 -05:00
Rick Waldron dedd68020b built-ins/Atomics/*: make all indentation consistent (depth & character) (#1442) 2018-02-15 15:26:13 -05:00
Rick Waldron e1f4ced053 built-ins/Generator*: make all indentation consistent (depth & character) (#1441) 2018-02-15 15:25:56 -05:00
Rick Waldron 7c66f39f41 built-ins/JSON/*: make all indentation consistent (depth & character) (#1440) 2018-02-15 15:25:45 -05:00
Rick Waldron ff4f13099c built-ins/Infinity, NaN, undefined: make all indentation consistent (depth & character) (#1439) 2018-02-15 15:25:35 -05:00
Rick Waldron 6e7ba5060c built-ins/global/*: make all indentation consistent (depth & character) (#1438) 2018-02-15 15:25:21 -05:00
Rick Waldron 7108616b8e built-ins/parseInt, parseFloat/*: make all indentation consistent (depth & character) (#1437) 2018-02-15 15:12:07 -05:00
Rick Waldron 9a211b1c9f built-ins/Number/*: make all indentation consistent (depth & character) (#1436) 2018-02-15 15:11:50 -05:00
Rick Waldron 4fd36e7f1d built-ins/Proxy/*: make all indentation consistent (depth & character) (#1434) 2018-02-15 15:11:36 -05:00
Rick Waldron 133dfa8793 built-ins/Promise/*: make all indentation consistent (depth & character) (#1433) 2018-02-15 15:11:21 -05:00
Leo Balter 832542844c s/es6id/esid 2018-02-15 10:46:28 -05:00
Valerie R Young 14d7bfeda2 async-iteration: add tests for AsyncIteratorPrototype 2018-02-15 10:45:13 -05:00
Valerie R Young 510d6b7f44 async-iteration: add tests for AsyncGenerationFunction 2018-02-15 10:45:13 -05:00
Jeff Walden a19993e269 Add tests for the behavior of INT32_MIN (-2147483648) as exponent with the exponentiation operator and with Math.pow (which shares the same core algorithm in the spec, but might be differently implemented in actual implementations). (#1445) 2018-02-14 17:02:39 -05:00
Rick Waldron 8342824894 built-ins/AsyncFunction/*: make all indentation consistent (depth & character) 2018-02-13 14:35:02 -05:00
Amal Hussein 66eaf57f88 added coverage for built-in Map spec to ensure that a TypeError is thrown when Symbol.iterator is undefined (#1444) 2018-02-13 11:36:10 -05:00
Adrian Heine 2fb8eca677 Fix typo intialize(r) -> initialize(r) 2018-02-12 10:05:52 -05:00
André Bargull f95b56ab28 Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722.
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
Yusuke Suzuki 18c1e799a0 Prefer spaces to tabs if it is not syntax related tests
This patch changes tabs to spaces for newly added tests.
2018-02-08 13:32:42 -05:00
Leo Balter 6d5a7adf4e Fix ToNumber operations 2018-02-08 11:13:54 -05:00
Rick Waldron 12797840ae features: [numeric-separator-literal] 2018-02-08 11:13:54 -05:00
Leo Balter 53c00784b6 Revert "Revert "Tests for NumericSeparatorLiteral. Closes gh-1051" (#1188)"
This reverts commit 8422147c17.
2018-02-08 11:13:54 -05:00
André Bargull 82c6148980 Add missing closing parenthesis and remove invalid async flag (#1402) 2018-02-01 14:04:51 -05:00
Jordan Harband 03da22868a Promise.prototype.finally: add more tests
- per https://github.com/tc39/ecma262/pull/1083#issuecomment-361775023
2018-01-30 20:47:35 -05:00
André Bargull 1989f0fe6d Add test case for tc39/ecma262#1009 (#1240) 2018-01-30 10:29:19 -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
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
Jordan Harband 7c5b5bf750 Promise.prototype.finally: add missing tests
Per:
 - https://github.com/tc39/test262/issues/866#issuecomment-328565337
 - https://github.com/tc39/test262/issues/866#issuecomment-359978873

Closes #866.
2018-01-25 14:03:28 -05:00
Robin Templeton 8b71c5fea5 Atomics tests for BigInt 2018-01-25 14:01:33 -05:00
Viktor f9d8b29ae4 A fix for the copyright 2018-01-25 13:59:50 -05:00
André Bargull 79283bd80f Add missing 'SharedArrayBuffer' feature tag 2018-01-25 13:59:37 -05:00
André Bargull f717982c94 Remove unused includes 2018-01-25 13:59:37 -05:00
André Bargull 658f19005b assert.compareArray does not perform deep-equality comparison 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
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
Ross Kirsling a7b2d07a94 Remove errant LF from CR line ending test. 2018-04-05 23:32:25 -07:00
Valerie Young 714fdc9125 whitespace and delete file (#1505) 2018-04-04 14:57:56 -04:00
Jeff Walden ba783aef91 Add a test verifying that the OrdinaryCreateFromConstructor call in the DataView constructor is checked for underlying-buffer detachedness before its result is used. 2018-04-02 15:19:13 -07:00