Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Feb 1, 2015
Commits on Jan 24, 2015
Commits on Jan 9, 2015
  1. Paul Millar

    remove hardcoded "PhantomJS is launching GhostDriver..." message

    paulmillar authored committed
    Apart from being undesirable that debugging messages are always
    written to stdout, the information is redundant as a similar message
    is logged at debug level.
Commits on Dec 18, 2014
  1. Cast maxDiskCacheSize to qint64 to allow disk cache be more than 2Gb.

    Andrey Plotnikov authored committed
Commits on Dec 12, 2014
  1. Jacek Migdal
  2. Jacek Migdal
Commits on Dec 11, 2014
  1. Jacek Migdal

    Don't rely on JSON.parse() for page.evaluate().

    jakozaur authored committed
Commits on Dec 8, 2014
  1. Jacek Migdal

    Port the tests from webpage-spec.js

    jakozaur authored
    Callback, clip-rect, confirm, object, prompt, scroll-position,
    viewport-size and window.
Commits on Nov 21, 2014
  1. Zack Weinberg

    Add a command-line option --local-urls={true,false}

    zackw authored
    The default is 'true'.  When set 'false', file: and qrc: URLs are
    treated as invalid (unknown scheme) rather than opening local files,
    as requested in issue #12752.
    In order to test this, I added a mechanism to test/
    allowing individual tests to be annotated with command-line
    options to pass to phantomjs or the script.
Commits on Nov 17, 2014
  1. Vitaly Slobodin

    Fix invalid directory path for Windows.

    Vitallium authored committed
Commits on Nov 14, 2014
  1. Vitaly Slobodin

    Fix JPG image rendering.

    Vitallium authored committed
    To pass QString as a const char* we should call <QString>.toLocal8Bit().constData().
Commits on Oct 10, 2014
Commits on Oct 9, 2014
Commits on Oct 8, 2014
Commits on Oct 3, 2014
Commits on Oct 2, 2014
Commits on Oct 1, 2014
Commits on Sep 30, 2014
Commits on Sep 29, 2014
Commits on Sep 27, 2014
Commits on Sep 25, 2014
  1. Implement clearMemoryCache() on a web page to clear the cache.

    Unfortunately, due to Qt and WebKit limitation, this is technically
    clearing all the cache used by every web page instance. It is the
    best we can have right now.
Commits on Sep 23, 2014
  1. System#os.version workaround for new(er) OS X versions.

    In case Qt doesn't provide the information yet, deduce it from the OS
    kernel version (e.g. 14.x.y for OS 10.10 Yosemite).
Commits on Sep 22, 2014
  1. Provide OS kernel version in system.os.

    This is available via the new property called `release`. A very simple
    example to demonstrate it:
      var system = require('system');
      console.log('Kernel release', system.os.release);
    which will print (on OS X 10.7.5 Lion):
      Kernel release 11.4.2
Commits on Sep 19, 2014
Commits on Sep 18, 2014
  1. Port the user agent test.

Commits on Sep 17, 2014
  1. Speed-up the tests by reducing some time-outs.

    Running all tests should finish in 22 seconds instead of 41 seconds.
Commits on Sep 16, 2014
  1. Zack Weinberg

    Set SO_REUSEADDR on the test server's listening port.

    zackw authored
    This means you don't have to wait 30 seconds in between invocations of
    Also, if the test server fails to bind its port, print the actual
    OS-level error message rather than guessing what the problem is.
    issue #12439
  2. Zack Weinberg

    Bug fixes to test-server Python response hook support.

    zackw authored
    * correctly fake a package to hold all the response-hook modules
    * use StringIO correctly in the response hooks
    * prevent .py(c) files in test/www/ from being accessed directly
    * prevent test/www/__init__ from being treated as a response hook
    * add a test case that makes sure the existing hooks _can_ return 200 OK
    (issue #12439; buggy commit 4d60e94)
  3. Minor test runner clean-up.

    Unused imports are removed.
    Ensure that the correct reference is used.
Commits on Sep 15, 2014
  1. Zack Weinberg

    Add support for selective test execution.

    zackw authored
    If there are any positional arguments to test/, they are matched
    (verbatim, not as regular expressions) against each test's name.  Only those
    tests whose names contain at least one of the positional arguments will be
    run.  Thus, for instance, you can run just the webpage tests with
        ./test/ module/webpage
    or one specific test with
        ./test/ exact/name/of/test.js
    or the basics and standards tests with
        ./test/ basics standards
    If no tests at all match, will print "ALL TESTS SKIPPED" and
    exit unsuccessfully.
    Ongoing work on issue #12439.
  2. Zack Weinberg

    Support Python scripts in test/www/.

    zackw authored
    Rather than add all the special URLs we'll ever want to,
    the embedded HTTP server now supports scripts in test/www/.  If you
    try to load http://localhost:9180/path and test/www/path doesn't exist
    but test/www/ does, then test/www/ is loaded as a module.
    That module must export one function, handle_request(), which is called
    to produce the response.
    handle_request() has the same semantics as
    SimpleHTTPRequestHandler.send_head().  That is, it takes one argument,
    the SimpleHTTPRequestHandler object, conventionally named 'req'.
    It should call the send_response(), send_header(), and end_headers()
    methods of that object as appropriate.  And it should return a readable
    filelike whose contents are taken as the body of the response.
    If either module import or handle_request() throws any exception, the
    HTTP response will be a 500 Internal Server Error with body provided
    by cgitb.
    Ongoing work on issue #12439.
  3. Zack Weinberg

    Improvements to logic in FileHandler.translate_path.

    zackw authored
    We already have 'base_path' as a global variable, so use that (or rather,
    a new derivative of that) instead of inspect.getfile(inspect.currentframe()).
    Rather than splitting the path and then iterating over every component
    trying to figure out if it's "special", take advantage of the fact that
    posixpath.normpath() will reliably produce a path with all ../ and bare-/
    components at the very beginning.  Preserve the distinction between paths
    with and without a trailing /, as SimpleHTTPRequestHandler expects.
    So that paths containing unusual (e.g. non-ASCII, non-UTF-8) segments can
    safely be tested, unquote and then requote the entire path.  This means
    that the *bytes* corresponding to the ASCII characters
      0123456789 ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz -_./
    are guaranteed to be unquoted, and all other *bytes* are guaranteed to be
    %-quoted.  (Note especially that *whether or not* the tests are being run
    on Windows, \ in the original URL will be represented as %5C, and will
    *not* be treated as a pathname separator.)
    So that the tests behave consistently whether or not the OS has a case-
    sensitive filesystem, after the above transformation, lowercase the entire
    Ongoing work on issue #12439.
Something went wrong with that request. Please try again.