Skip to content
Commits on Dec 10, 2011
  1. Add support for client -> server notifications and message passing.

    Using @notify(event, ...args, resume) tests can talk to Node.js on the
    server-side. Data can be exchanged as long as it is serialisable.
    See / Lottefile for an example.
  2. Whoops, collect garbage properly.

    The previous code was off-by-one causing Lotte to hang in certain situations.
  3. Add a dummy HTTP server.

    This server will be used for IPC with PhantomJS. Events, such as test
    case start, pass, fail, etc. will be communicated over HTTP (not yet
    The server is enabled by default, but can be disabled either using
    '--no-server' on the command line or 'server = false' in a Lottefile.
    The default listening port is 3838 which should be unprivileged.
    The default bind address is localhost,
  4. Allow Lottefile to log messages, require additional files, etc.

    Export useful objects and functions which we think may be used within a
    Lottefile. This will be helpful when dealing with plug-ins.
  5. Recognise *.coffee files by default as well.

    The previous pattern only matched JavaScript files. Since Lotte supports
    CoffeeScript out-of-the box, accept lotte_*.coffee files by default.
Commits on Dec 9, 2011
  1. Add @using(..) helper to pass objects to PhantomJS.

    This hack has the same limitations as when passing variables from PhantomJS
    to Lotte - it can only work on simple types and cannot serialize functions,
    regular expressions, etc.
    It is still better than having nothing or having to write the code yourself
    each time a variable from a different environment is needed.
  2. Add `make publish`.

Commits on Nov 24, 2011
  1. Bump version.

  2. More Windows support, d'oh!

    When normalizing the path, convert back slashes to forward slashes
    so minimatch can process the glob properly.
    When passing a filename to `coffee`, wrap it in double quotes, the
    Windows shell does not like single quotes.
  3. Add Windows path support.

    When expanding internal require's(..), process Windows paths as well.
    Since the directory separator is '\' and not '/' we need to look for
    another character which would indicate this is a path, not a system
    require(..) call.
  4. Bump version.

  5. Update `mktemp` command to work on Mac OS X.

    On Linux, the options and template arguments are both optional.
    On Mac OS X you must provide either a path or a template where
    each 'X' is substituted with a random character (8 should do).
  6. Improve Node.js 0.6.x support.

    - Remove tests where authentication fails, this now causes PhantomJS to
      hang with Node 0.6.2
    - Use response.writeHead and response.end without a status code as both
      send headers causing Node 0.6.2 to spit endless screens of warnings
    - Bump supported version in package & README
Commits on Nov 20, 2011
  1. Bump version.

  2. When '--' is passed on the command-line, default the path to cwd().

    The previous behaviour was buggy as it didn't set the path if '--' was passed.
  3. Bump version, #nfc.

  4. Add support for unboxing CSSStyleDeclaration.

    This simulates jQuery's .css(..) when accessing the .style property.
    Since PhantomJS can only return simple objects, we need to manually
    unbox the values into a proper object hash.
Commits on Nov 14, 2011
Commits on Nov 3, 2011
  1. Update README with initial documentation on the global context, prere…

    …quisites, etc. (forced update)
  2. Update README with initial documentation on the global context, prere…

    …quisites, etc. (forced update)
Something went wrong with that request. Please try again.