Skip to content
Snippets Groups Projects
  1. Apr 21, 2016
  2. Apr 19, 2016
    • jugglinmike's avatar
      Correct invalid tests for the Date constructor · cf68c3be
      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.
      cf68c3be
  3. Apr 15, 2016
  4. Apr 11, 2016
  5. Feb 22, 2016
  6. Feb 19, 2016
  7. Feb 17, 2016
  8. Feb 13, 2016
  9. Jun 18, 2015
    • Mike Pennisi's avatar
      Update handling of directive prologues · 29ecced6
      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.
      29ecced6
  10. Apr 22, 2015
  11. Dec 09, 2014
  12. Dec 07, 2014
  13. Dec 05, 2014
  14. Dec 01, 2014
  15. Oct 24, 2014
  16. Aug 13, 2014
    • Sam Mikes's avatar
      browser runner: check negative regex · 4debe087
      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
      4debe087
  17. Aug 02, 2014
    • Sam Mikes's avatar
      harness: remove unused code · 4205a1da
      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
      4205a1da
  18. Jul 30, 2014
    • Sam Mikes's avatar
      tools, harness: support new YAML frontmatter · c33bf0e0
      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)
      c33bf0e0
  19. Jul 22, 2014
  20. Jul 21, 2014
    • Sam Mikes's avatar
      test262.py: only include helper scripts when needed · d4a3479a
      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
      d4a3479a
  21. Jul 18, 2014
    • Sam Mikes's avatar
      async,promises: initial tests of Promises · 7e07cc13
      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
      7e07cc13
  22. Jul 15, 2014
  23. Jun 07, 2013
  24. Mar 25, 2013
  25. Aug 09, 2012
  26. Sep 10, 2012
  27. Aug 27, 2012
  28. Jul 18, 2012
    • Norbert Lindenberg's avatar
      Got test402 web site into usable shape. Unified headers of test262/402 sites. · 9a4b4011
      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.
      9a4b4011
  29. Jun 12, 2012
  30. Mar 28, 2012
  31. Mar 26, 2012
  32. Feb 29, 2012
  33. Feb 27, 2012
  34. Feb 22, 2012
  35. Nov 11, 2011
  36. Sep 30, 2011
  37. Sep 26, 2011
Loading