Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-17903

Make it easier to maintain the imported JS testsuites

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • None
    • Qt Script
    • None
    • 8d74ef15220e778bc93fcae2fa072c3615f52dfa 2817520cc3d1e9bf0125f34074bbdba8c31fca0f

    Description

      tests/auto/qscriptjstestsuite and tests/auto/qscriptv8testsuite do pretty much the same thing (run an imported JS test suite as a Qt autotest), but duplicate a lot of code. It's also difficult to update the expected test results, since they're embedded in a C++ file and you must fiddle with defines and recompile the test to generate new expected results.

      The tests should be refactored to share infrastructure, and should use external configuration files for defining skipped tests and expected failures. This will make it easier to adapt the tests when the QtScript back-end changes (e.g. to a more recent version of JavaScriptCore, or to V8). It will also make it easier to import other JS test suites (such as sputnik and es5conform) into the Qt autotests.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kenthans Kent Hansen (Inactive)
            kenthans Kent Hansen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes