JS-Test-Simple

 view release on metacpan or  search on metacpan

Changes  view on Meta::CPAN

      - Added support for Casey West's JSAN (http://www.openjsan.org). All
        releases of Test.Simple will be on OpenJSAN from now on.
      - The iframe in the browser harness is no longer visible in IE. Thanks
        to Marshall Roch for the patch.
      - Noted addition of Test.Harness and Test.Harness.Browser in the README.

0.10  2005-06-24T04:30:24
      - Changed the signature of functions passed to output() and friends to
        accept a single argument rather than a list of arguments. This allows
        custom functions to be much simpler.
      - Added support for Macromedia Director. Patch from Gordon McCreight.
      - Backwards Incompatibility change: moved all "modules" into Test
        "namespace" by using an object for the Test namespace and assigning
        the Build() constructor to it. See http://xrl.us/fy4h for a
        description of this approach.
      - Fixed the typeOf() class method in Test.Builder to just return the
        value returned by the "typeof" operator if the class constructor is an
        anonymous function.
      - Changed "for (var in in someArray)" to 
        "for (var i = 0; i < someArray.length; i++)" for iterating through
        arrays, since the former method will break if someone has changed the

lib/JS/Test/Builder.js  view on Meta::CPAN

        this.todoOutput(writer);
        this.endOutput(writer);

        if (top.alert.apply) {
            this.warnOutput(top.alert, top);
        } else {
            this.warnOutput(function (msg) { top.alert(msg); });
        }

    } else if (Test.PLATFORM == 'director') {
        // Macromedia-Adobe:Director MX 2004 Support
        // XXX Is _player a definitive enough object?
        // There may be an even more explicitly Director object.
        /*global trace */
        this.output(trace);       
        this.failureOutput(trace);
        this.todoOutput(trace);
        this.warnOutput(trace);

    } else if (Test.PLATFORM == 'wsh') {
        // Windows Scripting Host Support

tests/lib/Test/Builder.js  view on Meta::CPAN

        this.todoOutput(writer);
        this.endOutput(writer);

        if (top.alert.apply) {
            this.warnOutput(top.alert, top);
        } else {
            this.warnOutput(function (msg) { top.alert(msg); });
        }

    } else if (Test.PLATFORM == 'director') {
        // Macromedia-Adobe:Director MX 2004 Support
        // XXX Is _player a definitive enough object?
        // There may be an even more explicitly Director object.
        /*global trace */
        this.output(trace);       
        this.failureOutput(trace);
        this.todoOutput(trace);
        this.warnOutput(trace);

    } else if (Test.PLATFORM == 'wsh') {
        // Windows Scripting Host Support



( run in 0.475 second using v1.01-cache-2.11-cpan-49f99fa48dc )