- Apr 21, 2016
-
-
jugglinmike authored
Modify the regular expression for native functions' toString value to satisfy all test cases. Correct the test file's reference to the harness file. Re-format the test file's assertions to aid debugging in the event of failure.
-
- Apr 19, 2016
-
-
jugglinmike authored
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.
-
- Apr 15, 2016
-
-
Leonardo Balter authored
-
- Apr 11, 2016
-
-
Michael Ficarra authored
See the proposal at https://tc39.github.io/Function-prototype-toString-revision/
-
- Feb 22, 2016
-
-
Leonardo Balter authored
Fixes #477
-
- Feb 19, 2016
-
-
Jordan Harband authored
-
- Feb 17, 2016
-
- Feb 13, 2016
-
-
Jordan Harband authored
-
- Jun 18, 2015
-
-
Mike Pennisi authored
Some tests specifically concern the application of the `use strict` directive as it appears in JavaScript source code. These tests should *not* be run with the `onlyStrict` flag because relying on the test runner to enable strict mode makes the semantics of the source code irrelevant. Update these tests to use the `noStrict` flag. Other tests concern language semantics that are only valid in strict mode, but the mechanism for enabling strictness is inconseqential. Update these tests to use the `onlyStrict` flag and remove any redundant `use strict` directive prologues contained within. Still other tests are valid both within and outside of strict mode. In keeping with the majority of other tests, do not specify any restrictions on the environments in which these tests may be run.
-
- Apr 22, 2015
-
-
Mike Pennisi authored
-
- Dec 09, 2014
-
-
Brian Terlson authored
-
- Dec 07, 2014
-
-
Brian Terlson authored
-
- Dec 05, 2014
-
-
Domenic Denicola authored
Closes #57.
-
- Dec 01, 2014
-
-
Domenic Denicola authored
Closes #110
-
- Oct 24, 2014
-
-
Sam Mikes authored
-
- Aug 13, 2014
-
-
Sam Mikes authored
1. use negative regex (instead of ".") to check iframeError 2. make Test262Error.prototype.toString() always include the string Test262Error (no spaces) so it matches /Test262Error/ 3. modify check for supportsWindowOnerror - require that first argument (message) to onerror() contains the error name by checking for /Error:/. Change (3) above forces IE11 onto the !supportsWindowOnerror path. Test262 tests are run inside an eval() on IE11, and errors are caught and explicitly have toString() called. Without this, IE11 passes only the `message` property to onerror(), and regexes that expect to match error name fail. sth: revert to simple `onerror` checking gs: refactor function `$DONE` refactor logic tree add support for async test failures ed.js: crude support for error typing S8.7.1_A2: cache result of delete `delete` has a side-effect and its return value depends on this; cache result of delete so when reporting result, we are always reporting the result that made us fail, not the result of a new delete [pedantic] ed: explicitly pass cooked error to $DONE gs: only let $DONE be called once
-
- Aug 02, 2014
-
-
Sam Mikes authored
sta.js: slight change to Test262Error() semantics; message property now always set (default "") make $ERROR a var set $ERROR to function $ERROR so it can be overridden if needed remove 2009 copyright in favor of 2012 copyright REVERTED: remove never-used fn testFailed testFailed actually used by $FAIL remove obsolete fn $INCLUDE ed.js: remove commented-out obsolete code test262.py: remove always-included harness file that provides no functions used by any extant test add comment line to nonstrict cth.js: define `print` for node, cscript use cth (console test harness) to define functions for console runner. V8, Spidermonkey (js) and JavaScriptCore (jsc) provide a function `print`. Provide a default `print` for node and cscript set print_handle to 'print' by default (can still override) for cscript: wrap tests in try/catch so we get syntax errors
-
- Jul 30, 2014
-
-
Sam Mikes authored
parseTestRecord: add support for YAML frontmatter parseTestRecord: initial unit test for test record parser parseTestRecord: refactor for testing factor old parsing; add YAML parsing runner: support "includes" from YAML frontmatter support frontmatter "includes" in python runner use test.includes if present instead of scanning test code with regex harness: factor individual functions out into files tools: handle YAML errors tolerate missing keys in dictionary (flags, includes) report filename when empty frontmatter block new option --list-includes to test262.py harness: factor helper functions into separate files sth: remove extra close-paren (syntax error) test_common: TDD; failing parse of YAML common: use parseTestRecord (YAML-aware)
-
- Jul 22, 2014
-
-
smikes authored
-
- Jul 21, 2014
-
-
Sam Mikes authored
test262.py: only supply async helper scripts when test is async sth.js: factor out function isAsyncTest() timer.js: improve workaround for async tests when Promise is defined but setTimeout is noot timer.js emulates setTimeout using Promise by doing a busy loop that checks if `timeout` milliseconds have elapsed. Modified check to (timeLeft > 0) instead of (!timeLeft) to prevent infinite loop when check does not happen to run at precise millisecond timeout expires. Because test262.py did not support the $INCLUDE directive, some helper scripts were added to every test -- notably testIntl, timer, and donePrintHandle Now that $INCLUDE is supported, these can be dropped, speeding overall test run time
-
- Jul 18, 2014
-
-
Sam Mikes authored
doneprintHandle.js: make $DONE accept any falsy argument as meaning 'pass' PromiseHelper.js: checkSequence: new helper fn for async tests .gitignore: port .hgignore to .gitignore syntax test262.py: support $INCLUDE directive in python test runner S25.4.4.1*: tests to cover Section 25.4.4.1, Promise.all( iterable ) A1.1: Promise.all is callable A1.2: Promise.all expects 1 argument A2.1: Promise.all([]) is a Promise A2.2: Promise.all([]) is resolved immediately A2.3: Promise.all([]) is resolved with a new empty array A3.1: Promise.all expects an iterable argument
-
- Jul 15, 2014
-
-
NikSurya authored
-
- Jun 07, 2013
-
-
Brent Baker authored
-
- Mar 25, 2013
-
-
Norbert Lindenberg authored
Updated copyright notice for 2013.
-
- Aug 09, 2012
-
-
Bill Ticehurst authored
-
- Sep 10, 2012
-
-
Norbert Lindenberg authored
- Updated DateTimeFormat tests for new handling of hour12 options property. - Added a few invalid language tags to test of IsStructurallyValidLanguageTag. - Added user-defined language tag to test of CanonicalizeLanguageTag. - Added test for the Intl property of the global object.
-
- Aug 27, 2012
-
-
Norbert Lindenberg authored
-
Norbert Lindenberg authored
- Removed a few old test cases that were redundant with new, more comprehensive ones. - Added testIntl.js as standard include for all console tests in test262.py – see related bug 574. - Added .jshintrc file for settings for the JSHint tool.
-
Norbert Lindenberg authored
Added tests for requirements imposed on the built-in objects of the ECMAScript Internationalization API Specification by the introduction of chapter 15 of the ECMAScript Language Specification. - Removed some old tests that were redundant with the new tests. - Added testBuiltInObject.js as standard include for all console tests in test262.py – see related bug 574.
-
- Jul 18, 2012
-
-
Norbert Lindenberg authored
- Added table of contents for ECMA-402. - Added ability to load the right table of contents into results display. - Added meaningful text to test402 web page. - Updated test262 web pages for 5.1 edition of ECMA-262. - Unified headers of test262/402 web pages to ECMAScript <area> <test>. - Replaced text logos with styled text. - Decapitalized some text; fixed a typo; expanded an abbreviation. - Fixed a few issues found by W3 HTML validator.
-
- Jun 12, 2012
-
-
t-adamre authored
-
- Mar 28, 2012
-
- Mar 26, 2012
-
-
https://bugs.ecmascript.org/show_bug.cgi?id=293David Fugate authored
salvaged (e.g., need locale info to properly predict whether we're subject to DST).
-
- Feb 29, 2012
-
-
David Fugate authored
All Microsoft-contributed *.js and *.py sources now have Ecma's copyright header.
-
- Feb 27, 2012
-
-
David Fugate authored
-
- Feb 22, 2012
-
- Nov 11, 2011
-
- Sep 30, 2011
-
-
Mark Miller authored
-
Mark Miller authored
-
- Sep 26, 2011
-
-
David Fugate authored
Laid down the groundwork for a console-based test runner.
-