JS-Test-Simple
view release on metacpan or search on metacpan
- Eliminated Unicode characters from the code, as suggested by jslint.
Of course, JavaScript is supposed to be a UTF-8 language, but who
knows really, so it's best to be safe and let the implementation
work with ASCII. Tests can of course still be written using Unicode.
- Fixed a bug in `canOK` where a lack of arguments caused a `diag`
output to be missing a class name. Caught by Cory Bennet and jslint.
- Changed the name of the `output` variable in `Director.js` to
`toOutput`, since `output` is apparently a builtin in Directory.
Reported by Cory Bennett.
- Ported to CPAN by Ingy döt Net. Initial CPAN release.
0.22 2008-04-02T03:19:48
- Added note to the documentation of "canOK()" explaining why it doesn't
work for objects based on prototypes created from anonymous classes.
- Fixed CSS typo for failure output. Thanks to Kevin Frost for the spot!
- When testing in a browser, Test::Builder now searches for an element
with the ID "test_output" or one with the ID "test" to which to send
the TAP output. If it doesn't exist, it creates a <pre> element with
the id "test_output" and sends all output there. This makes it much
easiser to harness test output, e.g., with Selenium, and it's easier
to write tests in .html files without having to put in any kind of
exta div at all. Suggested by Luke Closs.
- Switched from "isPrototypeOf" to "instanceof" in "isaOK". It seems to
work even in Safari. Patch from Marvin Humphrey.
- Refactored test results into a separate class, rather than using an
anonymous object. Mavin Humphrey.
- Added support for JavaScript command-line interpreters. Patch from
Thomas Yandell.
0.21 2005-08-29T17:16:33
- Moved source code to JSAN Subversion repository. Check it out at
https://svn.openjsan.org:81/users/theory/Test.Simple/!
- Fixed Test.Harness.Browser to work with both .html and .js files in
IE 6 SP 2.
0.20 2005-08-17T16:27:13
- Fixed verbose test output to be complete in the harness in Safari and
IE.
- Fixed plan() so that it doesn't die if the object is passed with an
unknown attribute. This can happen when JS code has altered
Object.prototype. Reported by Rob Kinyon.
- Fixed some errors in the POD documentation.
- Updated JSAN to 0.10.
- Added documentation for Test.Harness.Director, complements of
Gordon McCreight.
- Fixed line endings in Konqueror and Opera and any other browser
other than MSIE that supports document.all. Reported by Rob Kinyon.
- Added support to Test.Harness.Browser for .js test files in addition
to .html test files. Thanks to Pawel Chmielowski for helping me to
overcome the final obstacles to actually getting this feature to work.
- Added missing variable declarations. Patch from Pawel Chmielowski.
- More portable fetching of the "body" element in Test.Builder.
Based on patch from Pawel Chmielowski.
- Added an "encoding" attribute to Test.Harness. This is largely to
support pure JS tests, so that the browser harness can set up the
proper encoding for the "script" elements it creates.
- Added support for Opera, with thanks to Pawel Chmielowski.
- Fixed the output from skipAll in the test harness.
- Fixed display of summary of failed tests after all tests have been run
by the browser harness. They are now displayed in a nicely formatted
table without a "NaN" stuck where it doesn't belong.
- COMPATIBILITY CHANGE: The browser harness now outputs failure
information bold-faced and red. This required changing the "output"
argument to the outputResults() method to an object with two methods,
pass() and fail(). Anyone using Test.Harness.outputResults() will want
to make any changes accordingly.
- COMPATIBILITY CHANGE: new Test.Builder() now always returns a new
Test.Builder object instead of a singleton. If you want the singleton,
call Test.Builder.instance(). Test.Builder.create() has been
deprecated and will be removed in a future release. This is different
from how Perl's Test::Builder works, but is more JavaScript-like and
sensible, so we felt it was best to break things early on rather than
later. Suggested by Bob Ippolito.
- Added beginAsync() and endAsync() functions to Test.More. Suggested by
Bob Ippolito.
0.11 2005-07-06T02:51:16
- The browser harness now works more reliably in IE and Safari.
- Fixed syntax errors in tests/harness.html that IE and Safari care
about.
- Various tweaks for Director compatibility from Gordon McCreight.
- Removed debugging output from Test.More.canOK().
- Fixed default output so that it doesn't re-open a closed browser
document when there is a "test" element.
- Added experimental Test.Harness.Director, complements of Gordon
McCreight. This harness is subject to change.
- Added Test.PLATFORM, containing a string defining the platform. At
the moment, the only platforms listed are "browser" or "director".
- 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
prototype for arrays. Thanks to Bob Ippolito for the spot!
- The default output in browsers is now to append to an element with the
ID "test" or, failing that, to use "document.write". The use of the
"test" element allows output to continue to be written to the browser
window even after the document has been closed. Reported by Adam
Kennedy.
- Changed the default endOutput() method to be the same as the other
outputs.
- Backwards incompatibility change: Changed semantics of plan() so that
it takes an object for an argument. This allows multiple commands to
be passed, where the object attribute keys are the command and their
values are the arguments.
( run in 0.862 second using v1.01-cache-2.11-cpan-39bf76dae61 )