Skip to content
Snippets Groups Projects
  1. Oct 12, 2017
  2. Oct 04, 2017
  3. Jun 28, 2017
  4. Jun 12, 2017
    • Rick Waldron's avatar
    • jugglinmike's avatar
      Lint test `features` tag (#1060) · 66bd632b
      jugglinmike authored
      A recent commit introduced a document that enumerated acceptable values
      for the test "features" metadata tag. However, this list was incomplete,
      and maintaining it placed extra burden on the project owners.
      
      Restructure the document into a machine-readable format. Add entries for
      all previously-omitted values. Add in-line documentation with
      recommendations for maintenance of the file. Extend the project's
      linting tool to validate tests according to the document's contents.
      66bd632b
  5. May 01, 2017
  6. Apr 14, 2017
  7. Apr 10, 2017
    • jugglinmike's avatar
      Automate deployment (#546) · bcb76515
      jugglinmike authored
      Introduce configuration to allow build servers provided by the Travis CI
      service to execute the test generation tool and commit the resultant
      files to the canonical upstream repository.
      
      Enabling this workflow required additional administrative work:
      
      1. Create an account with TravisCI
      2. Install the `travis` command-line utility
      3. Create a "deploy key" and an encrypted version using the command
         `./make.py github_deploy_key_enc`
      4. Register the deploy key with the project's GitHub account
      5. Check the encrypted deploy key to the repository
      6. Configure the TravisCI service to automatically build this project
      bcb76515
  8. Mar 06, 2017
  9. Oct 19, 2016
    • Mike Pennisi's avatar
      Remove "NotEarlyError" object · ade6d2e3
      Mike Pennisi authored
      Because expectations regarding error "phase" are now expressed via test
      meta-data, the test runner may now enforce this requirement on negative
      tests.
      
      Remove the "NotEarlyError" from the project source. This reduces the
      amount of domain knowledge required to author tests and lessens the
      potential for inconsistencies between tests.
      ade6d2e3
    • Mike Pennisi's avatar
      Update documentation · 0d4a07ba
      Mike Pennisi authored
      0d4a07ba
  10. Sep 27, 2016
  11. Sep 02, 2016
    • Aleksey Shvayka's avatar
      Fix operator precedence (#754) · 8fbe992e
      Aleksey Shvayka authored
      Unlike PHP, in JavaScript ! has higher precedence than instanceof, thus !smth instanceof TypeError will never (unless @@hasInstance is defined) be true.
      8fbe992e
  12. Mar 22, 2016
    • Mike Pennisi's avatar
      Correct example in contribution guidelines · 3a3ced17
      Mike Pennisi authored
      As written, the example for asserting runtime errors is written with an
      early error. Because the error is expected to be reported prior to
      program execution, the `assert.throws` function cannot be used to detect
      it.
      
      Demonstrate the usage of the helper function with a runtime error.
      3a3ced17
  13. Mar 16, 2016
  14. Feb 22, 2016
  15. Feb 12, 2016
    • Mike Pennisi's avatar
      Make asynchronous test configuration explicit · 23d56620
      Mike Pennisi authored
      For asynchronous tests, the contract between test file and test runner
      is implicit: runners are expected to inspect the source code for
      references to a global `$DONE` identifier.
      
      Promote a more explicit contract between test file and test runner by
      introducing a new frontmatter "tag", `async`. This brings asynchronous
      test configuration in-line with other configuration mechanisms and also
      provides a more natural means of test filtering.
      
      The modifications to test files was made programatically using the
      `grep` and `sed` utilities:
      
          $ grep "\$DONE" test/ -r --files-with-match --null | \
              xargs -0 sed -i 's/^\(flags:\s*\)\[/\1[async, /g'
          $ grep "\$DONE" test/ -rl --null | \
              xargs -0 grep -E '^flags:' --files-without-match --null | \
              xargs -0 sed -i 's/^---\*\//flags: [async]\n---*\//'
      23d56620
  16. Feb 04, 2016
    • Mike Pennisi's avatar
      Update contribution guidelines · 60afce36
      Mike Pennisi authored
      It was recently decided to prefer the new `id` tag over the existing
      `es5id` and `es6id` tag when authoring tests. Update the contribution
      guidelines to reference the new tag.
      60afce36
  17. Jan 29, 2016
  18. Jul 07, 2015
    • Mike Pennisi's avatar
      Implement `raw` flag · ab7617de
      Mike Pennisi authored
      Some tests involving the directive prologue are invalidated by source
      text transformations that insert executable code in the beginning of the
      script. Implement a `raw` flag that allows these tests to opt-out of
      this transformation. Update the relevant tests to use this flag (and
      remove references to globals only available when code is injected).
      
      Update the Python runner accordingly:
      
      - Do not run tests marked as "raw" in strict mode
      - Reject invalid test configurations
      
      Update the browser runner accordingly:
      
      - Do not modify the script body of tests marked as "raw"
      ab7617de
  19. Jun 24, 2015
  20. Jun 18, 2015
    • Mike Pennisi's avatar
      Update browser runner to honor `onlyStrict` flag · cb617493
      Mike Pennisi authored
      Unlike the console runner, the browser runner does not modify the
      strictness of tests prior to running them. Regardless of a given test's
      metadata, it runs every test exactly once, and it never enables strict
      mode. This means that tests intended to function in strict mode must
      declare the "use strict"; directive prologue in addition to the
      `onlyStrict` flag.
      
      For any test that specifies the `onlyStrict` metadata flag, transform
      the source code by injecting a "use strict" directive prologue prior to
      running the test.
      cb617493
  21. Jun 03, 2015
    • Mike Pennisi's avatar
      Add tests for early errors in module syntax · b8b46231
      Mike Pennisi authored
      Introduce the `module` flag to unambiguously identify tests that are
      intended to be interpreted as module code.
      b8b46231
    • Mike Pennisi's avatar
      Update contribution guidelines · 4e4ea114
      Mike Pennisi authored
      - Remove trailing white space
      - Streamline documentation of test tags
      - Do not reference obsolete tags
      - Document `features` frontmatter tag
      - Document `es6id` frontmatter tag
      - Omit unnecessary detail about test262 website generation. This is not
        directly useful to potential test contributors. Implementation details
        like these can be taken for granted by that audience.
      - Remove documentation on YAML syntax. Details on YAML may be helpful
        for some new contributors, but this document should not attempt to
        cover the topic (especially not from the description of a specific
        frontmatter entry). Replace with a link to a more comprehensive source
        as this will be more generally useful to those who need it (and less
        obtrusive for those who do not).
      - Consolidate information on test helpers
      - Document `assert` helpers
      - Update instructions for asserting errors. Since the introduction of
        `assert.throws` in gh-22, the preferred means of expressing
        expectations regarding errors has changed. Update the CONTRIBUTING.md
        file to reflect the latest approach. Explain purpose of `throw
        NotEarlyError;` in example test.
      - Re-order information on file names. The inconsistency in the project's
        file names should not go unmentioned, but neither should it not
        preceed instructions for the accepted approach to namine tests.
      - More clearly document required frontmatter tags. Explicitly list
        `description` as a required frontmatter tag, implicitly identifying
        all other tags as optional.
      4e4ea114
  22. Feb 17, 2015
  23. Feb 16, 2015
  24. Aug 25, 2014
    • Sam Mikes's avatar
      document `timeout` and clean up · 5b8879b9
      Sam Mikes authored
      CONTRIBUTING.md
      - document `timeout` tag
      - reorder tags in frontmatter doc
      - minor cleanups
      - minor fixes
      - add style note
      - reformat flags
      - remove discussion of obsolete $INCLUDE
      - incorporate line notes from @domenic
      - integrate additional comments
      - add links back, move arg notes down
      - Raise outline level by one
      
      README.md
      - link to CONTRIBUTING
      5b8879b9
  25. Jul 31, 2014
    • smikes's avatar
      CONTRIBUTING.md: minor fixes · 240635c9
      smikes authored
      Minor fixes: typos, formatting, verb tense&agreement
      Add example of short-list `includes: []` and long-list `includes: \n - \n -`
      240635c9
    • Sam Mikes's avatar
      CONTRIBUTING: more notes on test writing · 23ef85c9
      Sam Mikes authored
      Add section on test environment
      Add section on custom helpers
      describe YAML frontmatter
      Fix minor formatting errors
      document $INCLUDE as obsolete
      Change documentation of negative error
      Move test environment and custom helpers down
      indent copyright and frontmatter sections
      better description of the async calls between a promise
      and the functions in its `.then`
      Correct Early Error example: don't throw a string
      
      CONSOLE-RUNNER: split runner doc into new file
      add troubleshooting section
      23ef85c9
  26. Jul 23, 2014
    • smikes's avatar
      CONTRIBUTING: add notes on async · 99706a27
      smikes authored
      add a table showing which print handle to use when
      running async tests through test262.py runner
      
      @anba contributed information about async tests in
      SpiderMonkey and JavaScriptCore
      99706a27
  27. Jul 21, 2014
  28. Jul 10, 2014
Loading