Commit Graph

2606 Commits

Author SHA1 Message Date
jugglinmike 7b01f9799f [generation] Tolerate unicode in source files (#1411) 2018-02-09 11:27:33 -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
Daniel Ehrenberg d5fc8b25af Test for change to cache templates by site, not contents (#972)
* Test for change to cache templates by site, not contents

These tests are against a specification change based on discussion in
https://github.com/tc39/ecma262/issues/840

The tests here passed on SpiderMonkey but failed on other
implementations, which implement the current specification.

* Add a test that caching is by source location, not function identity

* Update existing tests to reference the spec properly
2018-02-05 14:40:19 -05:00
Leo Balter 31dfa8761a
Merge pull request #1404 from jugglinmike/refactor-for-parsers-function
Refactor function literal tests for parsers
2018-02-05 11:44:03 -05:00
Mike Pennisi 1d96e25784 Refactor function literal tests for parsers
A number of tests for the parsing of function literals were expressed
using `eval`. This made the tests more complex than necessary and also
prevented the tests from providing value to ECMAScript parsers.

Remove the use of `eval` in the relevant tests and instead express the
expectations with literal source text.
2018-02-03 23:25:41 -05:00
Mike Pennisi 6dafe71f1a Improve file names 2018-02-03 23:15:40 -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
Zirak 1bcb4fc2ef Fix typo in comments (Standart -> Standard) 2018-01-29 09:51:13 -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
Rick Waldron 2d80b92cb8 features.txt: use new convention 2018-01-25 14:37:48 -05:00
Rick Waldron 6f59ddc457 Fix annex B tests 2018-01-25 14:37:36 -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 524f545f3d Add reference tests for trimLeft and trimRight 2018-01-25 14:10:40 -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 55c39cc58b Add feature: string-trimming 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
André Bargull 40a7bd2401 Add test cases for tc39/ecma402#194 2018-01-25 14:04:44 -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
Mike Pennisi baa5d94bc5 Refactor object initializer tests for parsers
A number of tests for the parsing of object initializers were expressed
using `eval`. This made the tests more complex than necessary and also
prevented the tests from providing value to ECMAScript parsers.

Remove the use of `eval` in the relevant tests and instead express the
expectations with literal source text.
2018-01-25 14:01:06 -05:00
Josh Wolfe 4455b1017e remove unnecessary method syntax 2018-01-25 14:00:43 -05:00
Josh Wolfe 9d066a8181 Order of evaluation tests for infix numeric operators 2018-01-25 14:00:43 -05:00
Josh Wolfe 186ec5d177 BigInt and Number type mismatch tests for infix operators 2018-01-25 14:00:10 -05:00
Viktor f9d8b29ae4 A fix for the copyright 2018-01-25 13:59:50 -05:00
André Bargull cbe12a53e1 Remove duplicate esids 2018-01-25 13:59:37 -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