Skip to content
Snippets Groups Projects
  1. Nov 12, 2014
  2. Nov 11, 2014
  3. Nov 10, 2014
    • smikes's avatar
      add tests for 24.4.4.1 - Promise.all · 26787ab0
      smikes authored
      add more tests of Promise.all
      
      additional Promise test
      
      add tests of Promise.prototype
      
      add some tests for Promise.race
      
      additional Promise tests
      
      add Promise.reject and Promise.resolve tests
      
      correct test description
      
      rename badly-named files
      
      use current license and minor style cleanup
      
      correct understanding of undefined as thisArgument
      
      incorporate line notes
      
      Is this enough to make a constructor in ES6?
      
      more accurate use of resolved,fulfilled etc.
      remove some redundant tests
      add new tests
      
      remove "constant array" unclear language
      
      better description
      
      Update S25.4.2.1_A3.2_T1.js
      
      address dangling ()
      
      changes per @anba line notes
       - if GetIterator is abrupt, the Promise.race / Promise.all should reject
       - if Promise.race is called with nonconforming constructor as 'this',
         TypeError should be thrown (cannot reject if exeption is thrown from
         NewPromiseCapability; no promise exists yet...)
      
      correct description of "this" testing in callbacks
      
      fix whitespace, formatting
      
      remove tab
      add "next-turn" checking to sequencers
      26787ab0
  4. Oct 24, 2014
  5. Oct 15, 2014
  6. Aug 28, 2014
    • Sam Mikes's avatar
      provide fallback parser if YAML not installed · 4f9cec2f
      Sam Mikes authored
      parseTestRecord.py:
      - recover from ImportError when YAML not defined
      - use monkeyYaml as backup
      
      monkeyYaml.py:
      - parser for subset of YAML used in test262 frontmatter
      
      test_monkeyYaml.py:
      - unit tests
      4f9cec2f
  7. Aug 25, 2014
  8. Aug 19, 2014
    • Sam Mikes's avatar
      ES5.S15: new tests to clarify Array.concat · c650b1a9
      Sam Mikes authored
      Test of spec language from 15.4.4.4,
      5.b.iii.3.b states 'Call the [[DefineOwnProeprty]] internal method of A'
      which means that the result of Array.prototype.concat
      should return `true` from `hasOwnProperty` for every property
      created by `concat`, up to `length`
      
      Set length to 3.
      a[0] is set to 0 on a
      a[1] is unset
      a[2] is set to 2 via a prototype of a
      
      add assertions for values of b[0], b[1], b[2]
      add assertions for b.hasOwnProperty('2')
      
      Check with Array.prototype and Object.prototype, separate tests
      
      fix typo in assertion message
      
      test was correct, but assertion message was incorrect
      c650b1a9
  9. 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
  10. Aug 12, 2014
    • Brian Terlson's avatar
      Merge pull request #67 from smikes/negative-addErrorName-bestPractice · 595a36b2
      Brian Terlson authored
      Remove negative flag from test bed. Replace with specific errors. Other misc. fixes.
      595a36b2
    • Sam Mikes's avatar
      bestPractice: supply error names to negative · 6b7e5d77
      Sam Mikes authored
      pilot directory for replacing flags: [negative] with
      negative: errorname
      
      ch07-7.2,7.3: add error names
      ch07-rest: insert error names rest of ch07
      ch08: add expected error name
      ch11: add error name to negative
      ch12: put error name in negative
      
      ch13: add error name to negative
      only one test, did it manually
      
      ch15: add error name to negative:
      
      ch07: add error name to negative
      
      these tests used flags: \n - negative and so
      were not caught by the earlier naive grep for flags: [negative]
      
      --- changes suggested by @anba
      
      bestPractice - remove added NotEarlyError
      ch07,ch11 - expect ReferenceError (req'd by ES6)
      correct test descriptions to expect ReferenceError only
      enforce parsing as block statement by adding `;`
      remove needless include of $FAIL.js
      
      effectively, a rebase of all changes onto master
      
          Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
      
          Merge branch 'saved-bestPractice-negative' into negative-addErrorName-work
      
          Conflicts:
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
          	test/suite/ch12/12.1/S12.1_A4_T1.js
          	test/suite/ch12/12.5/S12.5_A2.js
      
          incorporate changes made on PR branch
      
          re-remove added NotEarlyError
      
          Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
      
          Conflicts:
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
          	test/suite/ch12/12.1/S12.1_A4_T1.js
          	test/suite/ch12/12.5/S12.5_A2.js
      
          ch15: correct negative regexes
      
          ch10: avoid use of not-NotEarlyError regex
      
          ch14 error regexps
      
          ch13 error regexps
      
          ch12: negative error matching
      
          Merge branch 'console-runner-checkError' into negative-addErrorName-work
      
          test262.py: check negative tests with regex
      
          implement checking of negative tests =>
      
          negative: SyntaxError
      
          means that /SyntaxError/ must match stderr
          or test is reported as failure
      
          Fixes #78
      
          expect real errors
      
          bestPractice: supply error names to negative
      
          pilot directory for replacing flags: [negative] with
          negative: errorname
      
          ch07-7.2,7.3: add error names
          ch07-rest: insert error names rest of ch07
          ch08: add expected error name
          ch11: add error name to negative
          ch12: put error name in negative
      
          ch13: add error name to negative
          only one test, did it manually
      
          ch15: add error name to negative:
      
          ch07: add error name to negative
      
          these tests used flags: \n - negative and so
          were not caught by the earlier naive grep for flags: [negative]
      
          --- changes suggested by @anba
      
          bestPractice - remove added NotEarlyError
          ch07,ch11 - expect ReferenceError (req'd by ES6)
          correct test descriptions to expect ReferenceError only
          enforce parsing as block statement by adding `;`
          remove needless include of $FAIL.js
      
          Merge branch 'negative-addErrorName-work' into negative-addErrorName-bestPractice
      
          resolved Conflicts:
          	test/suite/ch07/7.9/S7.9_A5.7_T1.js
          	test/suite/ch11/11.13/11.13.1/S11.13.1_A2.1_T3.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T1.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T10.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T11.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T2.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T3.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T4.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T5.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T6.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T7.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T8.js
          	test/suite/ch11/11.13/11.13.2/S11.13.2_A2.2_T9.js
          	test/suite/ch11/11.3/11.3.1/S11.3.1_A2.1_T3.js
          	test/suite/ch11/11.3/11.3.2/S11.3.2_A2.1_T3.js
          	test/suite/ch11/11.4/11.4.4/S11.4.4_A2.1_T3.js
          	test/suite/ch11/11.4/11.4.5/S11.4.5_A2.1_T3.js
          	test/suite/ch12/12.5/S12.5_A2.js
          	test/suite/ch12/12.6/12.6.3/S12.6.3_A4_T2.js
      
          negative: second half of @anba notes
      
          correct test descriptions to expect ReferenceError only
          enforce parse as block statement by adding `;`
          remove needless include of $FAIL.js
      
          ch12: specify type
      
          negative: @anba fixes
      
          bestPractice - remove added NotEarlyError
          ch07,ch11 - expect ReferenceError (req'd by ES6)
      
          bestPractice: supply error names to negative
      
          pilot directory for replacing flags: [negative] with
          negative: errorname
      
          ch07-7.2,7.3: add error names
          ch07-rest: insert error names rest of ch07
          ch08: add expected error name
          ch11: add error name to negative
          ch12: put error name in negative
      
          ch13: add error name to negative
          only one test, did it manually
      
          ch15: add error name to negative:
      
          ch07: add error name to negative
      
          these tests used flags: \n - negative and so
          were not caught by the earlier naive grep for flags: [negative]
      
          expect a SyntaxError
      
          ch07: add error name to negative
      
          these tests used flags: \n - negative and so
          were not caught by the earlier naive grep for flags: [negative]
      
          ch15: add error name to negative:
      
          ch13: add error name to negative
      
          only one test, did it manually
      
          ch12: put error name in negative
      
          ch11: add error name to negative
      
          ch08: add expected error name
          ch07-rest: insert error names rest of ch07
      
          ch07-7.2,7.3: add error names
      
          negative-errorname: pilot
      
          pilot directory for replacing flags: [negative] with
          negative: errorname
      
          bestPractice: supply error names to negative
      
      bestPractice: supply error names to negative
      
      pilot directory for replacing flags: [negative] with
      negative: errorname
      
      ch07-7.2,7.3: add error names
      ch07-rest: insert error names rest of ch07
      ch08: add expected error name
      ch11: add error name to negative
      ch12: put error name in negative
      
      ch13: add error name to negative
      only one test, did it manually
      
      ch15: add error name to negative:
      
      ch07: add error name to negative
      
      these tests used flags: \n - negative and so
      were not caught by the earlier naive grep for flags: [negative]
      
      bestPractice: supply error names to negative
      
      negative-errorname: pilot
      
      pilot directory for replacing flags: [negative] with
      negative: errorname
      
      ch07-7.2,7.3: add error names
      
      ch07-rest: insert error names rest of ch07
      
      ch08: add expected error name
      
      ch11: add error name to negative
      
      ch12: put error name in negative
      
      ch13: add error name to negative
      
      only one test, did it manually
      
      ch15: add error name to negative:
      
      ch07: add error name to negative
      
      these tests used flags: \n - negative and so
      were not caught by the earlier naive grep for flags: [negative]
      
      expect a SyntaxError
      
      negative: @anba fixes
      
      bestPractice - remove added NotEarlyError
      ch07,ch11 - expect ReferenceError (req'd by ES6)
      
      ch12: specify type
      
      negative: second half of @anba notes
      
      correct test descriptions to expect ReferenceError only
      enforce parse as block statement by adding `;`
      remove needless include of $FAIL.js
      
      expect real errors
      
      ch12: negative error matching
      
      ch13 error regexps
      
      ch14 error regexps
      
      add "description" header back
      
      remove now-unused includes
      
      remove needless include
      6b7e5d77
  11. Aug 06, 2014
  12. Aug 04, 2014
  13. Aug 03, 2014
  14. 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
  15. Jul 31, 2014
  16. Jul 30, 2014
    • Brian Terlson's avatar
      Merge pull request #51 from bterlson/normalize-format · 413e16e3
      Brian Terlson authored
      Normalize testcase format
      413e16e3
    • 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
Loading