Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

qunit.git
7 years agoGrunt: Set testswarm/browserSets from JSON file. master
Timo Tijhof [Sat, 17 Nov 2012 20:42:08 +0000 (21:42 +0100)]
Grunt: Set testswarm/browserSets from JSON file.

File on jq03.jquery.com is already updated.

7 years agoFix bad trailing comma
Jörn Zaefferer [Sat, 17 Nov 2012 16:43:06 +0000 (17:43 +0100)]
Fix bad trailing comma

7 years agoFixes #344 - Capture and show test duration.
Richard Gibson [Sat, 3 Nov 2012 16:43:30 +0000 (12:43 -0400)]
Fixes #344 - Capture and show test duration.

7 years agoClean up
Timo Tijhof [Thu, 15 Nov 2012 12:10:30 +0000 (13:10 +0100)]
Clean up

* Drop HTML5 type/media defaults (again)
* Missing newline at EOF
* Spaces to tabs
* Consistent quick-close (<meta>, <meta/>, <link>)

7 years agoRename tests to assertions in summary. Fixes #336 - Summary counts assertions but...
Jörn Zaefferer [Thu, 15 Nov 2012 11:37:51 +0000 (12:37 +0100)]
Rename tests to assertions in summary. Fixes #336 - Summary counts assertions but mentions 'tests'.

7 years agoRe-order local/params init to after global exposure. Fixes #346.
Timo Tijhof [Thu, 15 Nov 2012 09:56:29 +0000 (10:56 +0100)]
Re-order local/params init to after global exposure. Fixes #346.

7 years agoLint: Workaround jshint bug in older version that grunt uses.
Timo Tijhof [Thu, 15 Nov 2012 09:54:50 +0000 (10:54 +0100)]
Lint: Workaround jshint bug in older version that grunt uses.

7 years agoAssert: Implement propEqual and notPropEqual. Fixes #317.
Timo Tijhof [Fri, 2 Nov 2012 20:56:46 +0000 (21:56 +0100)]
Assert: Implement propEqual and notPropEqual. Fixes #317.

Also fixes a few indentations from spaces to tabs and added
unit tests.

7 years agoCanvas addon: Use 0.6 as alpha value to avoid inconsistencies between browsers. Fixes...
Jörn Zaefferer [Tue, 6 Nov 2012 11:28:21 +0000 (12:28 +0100)]
Canvas addon: Use 0.6 as alpha value to avoid inconsistencies between browsers. Fixes #342

7 years agoLint: Tighten .jshintrc options and enforce them.
Timo Tijhof [Tue, 30 Oct 2012 06:12:04 +0000 (07:12 +0100)]
Lint: Tighten .jshintrc options and enforce them.

Re-ordered .jshintrc to be alphabetical once again (like on
jshint.com/docs/) and by section (predef, restriction,
toleration, environment, legacy).

Enforce eqeqeq:true, and hard-code camelcase:false since we
have a few underscore ones.

"delete x" problem:
* "delete x" never passes jshint, we should use window.x instead.
* "delete window.x" doesn't work in IE6-8 (throws exception)
* "delete x" only works for "x = 1", not for "window.x".
* Only solution I see: use IE @cc comments for the IE version
  of the test.
* See also http://jsfiddle.net/8X6cS/6/
  IE6: supportDeleteProperty = false, jscriptVersion = 5.6
  IE7: supportDeleteProperty = false, jscriptVersion = 5.7
  IE8: supportDeleteProperty = false, jscriptVersion = 5.8
  IE9: supportDeleteProperty = true, jscriptVersion = 9
  IE10: supportDeleteProperty = true, jscriptVersion = 10

Follows-up dbd005333d23dc1b248a3b6d17f32ab2b2396c66

7 years agoRemove global variable "assert". Fixes #341.
Timo Tijhof [Mon, 29 Oct 2012 21:11:46 +0000 (22:11 +0100)]
Remove global variable "assert". Fixes #341.

7 years agoAdd a test for loading tests asynchronously
Jörn Zaefferer [Sun, 14 Oct 2012 20:29:12 +0000 (16:29 -0400)]
Add a test for loading tests asynchronously

7 years agoUndo delete-globals-lint-fix, fails in IE6-8 (tests don't fully lint anyway, yet)
Jörn Zaefferer [Mon, 1 Oct 2012 10:40:00 +0000 (12:40 +0200)]
Undo delete-globals-lint-fix, fails in IE6-8 (tests don't fully lint anyway, yet)

7 years agoImprove start()-called-too-often fix, initialize semaphore at 1, fixes autostart...
Jörn Zaefferer [Mon, 1 Oct 2012 10:29:14 +0000 (12:29 +0200)]
Improve start()-called-too-often fix, initialize semaphore at 1, fixes autostart=false case. Also provide stack for the offending start() call

7 years agoThere's type-free objects in Firefox, extend objectType() to allow null match. Fixes...
Jörn Zaefferer [Mon, 1 Oct 2012 10:13:18 +0000 (12:13 +0200)]
There's type-free objects in Firefox, extend objectType() to allow null match. Fixes #315

7 years agoPush a failing assertion when calling start() while already running. Resets anyway...
Jörn Zaefferer [Sun, 30 Sep 2012 20:39:08 +0000 (22:39 +0200)]
Push a failing assertion when calling start() while already running. Resets anyway to keep other tests going. Fixes #314

7 years agoUpdates themes: Proper license header, integrate collapsed class
Jörn Zaefferer [Sun, 30 Sep 2012 20:31:39 +0000 (22:31 +0200)]
Updates themes: Proper license header, integrate collapsed class

7 years agoAdds Ninja Theme
Jamie Hoover ⚔ [Fri, 24 Aug 2012 02:17:21 +0000 (19:17 -0700)]
Adds Ninja Theme

Ninja CSS and corresponding HTML page for demonstration.

This theme is exported from the core ninja module from Ninja UI by the author.

7 years agoExtend jsdump to output Error objects as such, including the message property. Extend...
Jörn Zaefferer [Sun, 30 Sep 2012 20:07:31 +0000 (22:07 +0200)]
Extend jsdump to output Error objects as such, including the message property. Extend throws to provide 'expected' value when possible. Fixes #307

7 years agoCleanup readme, add npm publish instructions
Jörn Zaefferer [Sun, 30 Sep 2012 17:16:46 +0000 (19:16 +0200)]
Cleanup readme, add npm publish instructions

7 years agoCleanup line comments in jsDump
Jörn Zaefferer [Sun, 30 Sep 2012 16:41:47 +0000 (18:41 +0200)]
Cleanup line comments in jsDump

7 years agoMini lint commit
Jörn Zaefferer [Sun, 30 Sep 2012 16:34:58 +0000 (18:34 +0200)]
Mini lint commit

7 years agoUse .jshtinrc files for linting
Jörn Zaefferer [Sun, 30 Sep 2012 16:31:26 +0000 (18:31 +0200)]
Use .jshtinrc files for linting

7 years agoLint phantomjs runner
Jörn Zaefferer [Sun, 30 Sep 2012 13:12:38 +0000 (15:12 +0200)]
Lint phantomjs runner

7 years agoLint tests
Timo Tijhof [Fri, 29 Jun 2012 06:24:46 +0000 (08:24 +0200)]
Lint tests

* Mostly semi-colons and adding inline /*jshint */ options for
  justified test exceptions for options: "ask", "expr" and "evil".

  The only thing left failing is new Number/Boolean/Object.
  See also

* Fixed other warnings such as deleting window properties instead
  of implied globals, functions in a loop, and function declarations
  inside an if statement (instead put it outside and only the
  invocation inside the if statement)

* Consistency in HTML template.

7 years agoUse classes to collapse assertion groups. Fixes #269
Timo Tijhof [Tue, 26 Jun 2012 21:16:25 +0000 (23:16 +0200)]
Use classes to collapse assertion groups. Fixes #269

* Also:
 - Added needed {has, add, remove}Class implementations.
   Should be solid, improvements welcome.
 - Removed '#qunit-tests ol' selector which was interfering with the
   lower-score selector '.qunit-assert-list'. This selector is
   redundant since it is always being overridden by '#qunit-tests ol' which sets margin and padding. Reset is redundant.

7 years agoReadme for junitlogger addon
Jörn Zaefferer [Sat, 29 Sep 2012 16:34:35 +0000 (18:34 +0200)]
Readme for junitlogger addon

7 years agoBetter readme for composite addon
Jörn Zaefferer [Sat, 29 Sep 2012 15:33:02 +0000 (17:33 +0200)]
Better readme for composite addon

7 years agoMake `throws` ES3 compatible
Mathias Bynens [Sat, 22 Sep 2012 06:17:25 +0000 (09:17 +0300)]
Make `throws` ES3 compatible

Ref. #322.

7 years agoComposite: Adds test whether iframe contains content. Fixes #318 - Composite: Raises...
julrich [Tue, 18 Sep 2012 21:18:43 +0000 (23:18 +0200)]
Composite: Adds test whether iframe contains content. Fixes #318 - Composite: Raises "global failure" in Opera

7 years agoNot using Object.keys() when reporting error
Gavin Huang [Thu, 20 Sep 2012 12:13:00 +0000 (20:13 +0800)]
Not using Object.keys() when reporting error

7 years agoApply the same exception handling for test and teardown try/catch as for setup
Jörn Zaefferer [Thu, 27 Sep 2012 09:17:00 +0000 (11:17 +0200)]
Apply the same exception handling for test and teardown try/catch as for setup

7 years agoFormatting
Jörn Zaefferer [Wed, 26 Sep 2012 18:11:47 +0000 (20:11 +0200)]
Formatting

7 years agoFall back to just printing the exception itself.
Jörn Zaefferer [Wed, 26 Sep 2012 18:10:38 +0000 (20:10 +0200)]
Fall back to just printing the exception itself.

Useful when there's no message property, in case someone throws
just a string.

Fixes #325 - When setup fails with a string exception, nothing useful is printed

7 years agoReadme updates for release
Jörn Zaefferer [Thu, 30 Aug 2012 14:37:00 +0000 (16:37 +0200)]
Readme updates for release

7 years agoBump post-release version
Jörn Zaefferer [Thu, 30 Aug 2012 13:10:29 +0000 (15:10 +0200)]
Bump post-release version

7 years agoRelease 1.10.0
Jörn Zaefferer [Thu, 30 Aug 2012 13:07:23 +0000 (15:07 +0200)]
Release 1.10.0

7 years agoNo more googlemail
Jörn Zaefferer [Thu, 30 Aug 2012 13:05:12 +0000 (15:05 +0200)]
No more googlemail

7 years agoMention 'npm install' in readme. Fixes #294 - You will need to install grunt-git...
Jörn Zaefferer [Wed, 29 Aug 2012 16:13:31 +0000 (18:13 +0200)]
Mention 'npm install' in readme. Fixes #294 - You will need to install grunt-git-authors to run grunt

7 years agoMerge pull request #311 from jniehus/patch-1
Philippe Rathé [Mon, 27 Aug 2012 11:09:56 +0000 (04:09 -0700)]
Merge pull request #311 from jniehus/patch-1

spelling typo

7 years agospelling typo
Joshua Niehus [Mon, 27 Aug 2012 01:08:19 +0000 (18:08 -0700)]
spelling typo

7 years agoChange package.json author to AUTHORS.txt reference
Jörn Zaefferer [Wed, 22 Aug 2012 17:31:39 +0000 (19:31 +0200)]
Change package.json author to AUTHORS.txt reference

7 years agoSimplify licensing.
Jörn Zaefferer [Wed, 22 Aug 2012 17:28:25 +0000 (19:28 +0200)]
Simplify licensing.

7 years agoScroll the window back to top after tests finished running. Fixes #304
Jörn Zaefferer [Fri, 17 Aug 2012 12:21:03 +0000 (14:21 +0200)]
Scroll the window back to top after tests finished running. Fixes #304

7 years agoSimplify phantomjs runner to use module property in testDone callback
Jörn Zaefferer [Fri, 17 Aug 2012 12:11:00 +0000 (14:11 +0200)]
Simplify phantomjs runner to use module property in testDone callback

7 years agoAdds module and test name to the information that is returned in the callback provide...
Vivin Paliath [Thu, 16 Aug 2012 17:16:17 +0000 (10:16 -0700)]
Adds module and test name to the information that is returned in the callback provided to QUnit.log(Function). Fixes #296

7 years agoMake QUnit.expect() (without arguments) a getter. Fixes #226
Antranig Basman [Fri, 10 Aug 2012 10:20:05 +0000 (04:20 -0600)]
Make QUnit.expect() (without arguments) a getter. Fixes #226

7 years agoCompare the ES6 sticky (y) property for RegExp. Can't add to tests yet. Fixes #284...
Jörn Zaefferer [Fri, 17 Aug 2012 11:45:51 +0000 (13:45 +0200)]
Compare the ES6 sticky (y) property for RegExp. Can't add to tests yet. Fixes #284 - deepEqual for RegExp should compare

7 years agoonerror: force display of global errors despite URL parameters. Fixes #288 - Global...
Richard Gibson [Fri, 17 Aug 2012 11:38:16 +0000 (13:38 +0200)]
onerror: force display of global errors despite URL parameters. Fixes #288 - Global failures can be filtered out by test-limiting URL parameters

7 years agoUpdate site link in readme. Fixes #301
Jörn Zaefferer [Sun, 12 Aug 2012 17:14:02 +0000 (19:14 +0200)]
Update site link in readme. Fixes #301

7 years agoRemove conditional codepath based on jQuery presence from reset().
Alex J Burke [Sat, 28 Jul 2012 21:37:22 +0000 (22:37 +0100)]
Remove conditional codepath based on jQuery presence from reset().

7 years agoAdd module filter to UI
John Reeves [Thu, 19 Jul 2012 15:37:53 +0000 (16:37 +0100)]
Add module filter to UI

Add select to the toolbar if the testsuite has more than one module,
sets the module query parameter.

7 years agoAdd build-git task for CDN deployment
Jörn Zaefferer [Thu, 26 Jul 2012 14:46:04 +0000 (16:46 +0200)]
Add build-git task for CDN deployment

7 years agoUpdate site links
Jörn Zaefferer [Thu, 26 Jul 2012 14:43:48 +0000 (16:43 +0200)]
Update site links

7 years agoIncreasing testswarm timeout - other running jobs can make this take longer
Corey Frang [Mon, 23 Jul 2012 10:10:18 +0000 (05:10 -0500)]
Increasing testswarm timeout - other running jobs can make this take longer

7 years agoMerge remote branch 'Krinkle/issue/283'
Jörn Zaefferer [Wed, 18 Jul 2012 20:44:54 +0000 (22:44 +0200)]
Merge remote branch 'Krinkle/issue/283'

7 years agoUpdate readme to include some more release instructions
Jörn Zaefferer [Wed, 18 Jul 2012 20:42:15 +0000 (22:42 +0200)]
Update readme to include some more release instructions

7 years agoKeep a local reference to Date. Fixes #283.
Timo Tijhof [Wed, 18 Jul 2012 19:19:43 +0000 (12:19 -0700)]
Keep a local reference to Date. Fixes #283.

7 years agoAdded list of authors.
Scott González [Wed, 11 Jul 2012 21:02:01 +0000 (17:02 -0400)]
Added list of authors.

7 years agoMerge remote branch 'origin/master'
Jörn Zaefferer [Wed, 11 Jul 2012 12:31:02 +0000 (14:31 +0200)]
Merge remote branch 'origin/master'

7 years agoBump post-release version
Jörn Zaefferer [Wed, 11 Jul 2012 12:26:28 +0000 (14:26 +0200)]
Bump post-release version

7 years agoRelease 1.9.0
Jörn Zaefferer [Wed, 11 Jul 2012 12:25:47 +0000 (14:25 +0200)]
Release 1.9.0

7 years agoUpdate README for newer release instructions
Jörn Zaefferer [Wed, 11 Jul 2012 12:25:24 +0000 (14:25 +0200)]
Update README for newer release instructions

7 years agoUpdate copyright to jQuery Foundation.
Scott González [Wed, 4 Jul 2012 13:16:55 +0000 (09:16 -0400)]
Update copyright to jQuery Foundation.

7 years agoadded jsdoc for QUnit.assert functions
unknown [Sat, 30 Jun 2012 18:56:01 +0000 (21:56 +0300)]
added jsdoc for QUnit.assert functions

7 years agoStyling: radius to 5px and small pass/error border, remove inner shadow
unknown [Sat, 30 Jun 2012 14:08:11 +0000 (17:08 +0300)]
Styling: radius to 5px and small pass/error border, remove inner shadow

7 years agoLint blooper
Jörn Zaefferer [Sat, 30 Jun 2012 22:39:38 +0000 (15:39 -0700)]
Lint blooper

7 years agoMove checkboxes into toolbar and give them labels and descriptions (as tooltip)....
Jörn Zaefferer [Sat, 30 Jun 2012 22:32:25 +0000 (15:32 -0700)]
Move checkboxes into toolbar and give them labels and descriptions (as tooltip). Fixes #274 - Improve urlFilter API and UI

7 years agoWhere we recieve no exception in throws() use a relevant message.
Alex J Burke [Sun, 24 Jun 2012 16:03:21 +0000 (17:03 +0100)]
Where we recieve no exception in throws() use a relevant message.

Add an additional optional argument to pushFailure() which can be used to
write a message corresponding to what occurred.

In the raises assertion if actual is undefined it means no exception
occurred; since we were expecting one in this case use the modified
pushFailure() to notify the user.

7 years agoAlso make module filter case-insensitive. Follow-up to #252
Jörn Zaefferer [Fri, 29 Jun 2012 04:19:25 +0000 (21:19 -0700)]
Also make module filter case-insensitive. Follow-up to #252

7 years agoBanner: Link should ignore "testNumber" and "module". Fixes #270
Timo Tijhof [Tue, 26 Jun 2012 21:21:40 +0000 (23:21 +0200)]
Banner: Link should ignore "testNumber" and "module". Fixes #270

* Follows-up:
 - 14f3acb: Implement 'module' url parameter
 - f08dc89: Create rerun links based on ... number

7 years agoMerge remote branch 'Krinkle/issue/267'
Jörn Zaefferer [Fri, 29 Jun 2012 03:51:21 +0000 (20:51 -0700)]
Merge remote branch 'Krinkle/issue/267'

7 years agoRename assert.raises to assert.throws. Fixes #267
Timo Tijhof [Tue, 26 Jun 2012 20:31:17 +0000 (22:31 +0200)]
Rename assert.raises to assert.throws. Fixes #267

* Also:
 - Update unit test, and kept one to assert raises()
 - Improved doc-comments for the other deprecated
   methods.

7 years agoChange package.json name property to 'qunitjs' to avoid conflicht with node-qunit...
Jörn Zaefferer [Thu, 14 Jun 2012 10:10:38 +0000 (12:10 +0200)]
Change package.json name property to 'qunitjs' to avoid conflicht with node-qunit; will publish next release to npm

7 years agoGrunt: Update testswarm task to use new config props
Jörn Zaefferer [Wed, 13 Jun 2012 22:28:13 +0000 (00:28 +0200)]
Grunt: Update testswarm task to use new config props

7 years agoBump post-release version
Jörn Zaefferer [Wed, 13 Jun 2012 22:07:38 +0000 (00:07 +0200)]
Bump post-release version

7 years agoRelease 1.8.0
Jörn Zaefferer [Wed, 13 Jun 2012 22:07:01 +0000 (00:07 +0200)]
Release 1.8.0

7 years agoImprove window.onerror handling
Timo Tijhof [Tue, 12 Jun 2012 17:45:34 +0000 (19:45 +0200)]
Improve window.onerror handling

* Chain in on other window.onerror handlers and honor their
  return value. Just like we expect other code to keep our onerror
  handler (e.g TestSwarm).

* Added explicit 'return false' for clarity instead of leaving it
  undefined and assuming other handlers understand that.

* Best reviewed with -w :)

* grunt: Passes, without errors.

7 years agomove config.current unset to after QUnit.reset()
Timo Tijhof [Tue, 12 Jun 2012 16:38:15 +0000 (18:38 +0200)]
move config.current unset to after QUnit.reset()

7 years ago(issue #260) config.current should be reset at the right time.
Timo Tijhof [Tue, 12 Jun 2012 14:40:34 +0000 (16:40 +0200)]
(issue #260) config.current should be reset at the right time.

* Issues:
 - fixes #260

* Misc:
 - Added throw to pushFailure, like the other functions that
   add to config.current.assertions[] already do (ok(), push(), ..).

7 years agoTest: Set testswarm.runMax from config file
Timo Tijhof [Mon, 11 Jun 2012 19:38:25 +0000 (21:38 +0200)]
Test: Set testswarm.runMax from config file

7 years agoFilter: Implement 'module' url parameter. Fixes #252
Timo Tijhof [Thu, 7 Jun 2012 16:02:03 +0000 (18:02 +0200)]
Filter: Implement 'module' url parameter. Fixes #252

7 years agoraises: ignore global exceptions stemming from test. Fixes #257 - Globally-executed...
Richard Gibson [Fri, 8 Jun 2012 14:23:49 +0000 (10:23 -0400)]
raises: ignore global exceptions stemming from test. Fixes #257 - Globally-executed errors sneak past raises in IE

7 years agoBump post-release version
Jörn Zaefferer [Thu, 7 Jun 2012 14:20:02 +0000 (16:20 +0200)]
Bump post-release version

7 years agoRelease 1.7.0
Jörn Zaefferer [Thu, 7 Jun 2012 14:19:19 +0000 (16:19 +0200)]
Release 1.7.0

7 years agoAdd config.requireExpects. Fixes #207 - Add option to require all tests to call expect().
Scott González [Wed, 6 Jun 2012 17:06:34 +0000 (13:06 -0400)]
Add config.requireExpects. Fixes #207 - Add option to require all tests to call expect().

7 years agoImprove extractStacktrace() implementation. Fixes #254 - Include all relevant stack...
Jörn Zaefferer [Mon, 4 Jun 2012 10:58:43 +0000 (12:58 +0200)]
Improve extractStacktrace() implementation. Fixes #254 - Include all relevant stack lines

7 years agoFollow-up to a4eeba4 - config.filter can be undefined
Jörn Zaefferer [Fri, 1 Jun 2012 09:15:12 +0000 (11:15 +0200)]
Follow-up to a4eeba4 - config.filter can be undefined

7 years agoMake filters case-insensitive. Partial fix for #252
Jörn Zaefferer [Thu, 31 May 2012 17:47:07 +0000 (19:47 +0200)]
Make filters case-insensitive. Partial fix for #252

7 years agois() expects lowercase types. Fixes #250 - Expected Date value is not displayed properly
Jörn Zaefferer [Thu, 31 May 2012 17:42:26 +0000 (19:42 +0200)]
is() expects lowercase types. Fixes #250 - Expected Date value is not displayed properly

7 years agoFix phantomjs addon header and add readme. Fixes #239
Jörn Zaefferer [Thu, 31 May 2012 16:35:44 +0000 (18:35 +0200)]
Fix phantomjs addon header and add readme. Fixes #239

7 years agoAdd some hints to composite addon readme. Fixes #251
Jörn Zaefferer [Thu, 31 May 2012 16:21:31 +0000 (18:21 +0200)]
Add some hints to composite addon readme. Fixes #251

7 years agoTrack tests by the order in which they were run and create rerun links based on that...
Scott González [Thu, 17 May 2012 17:38:25 +0000 (13:38 -0400)]
Track tests by the order in which they were run and create rerun links based on that number. Fixes #241 - Make Rerun link run only a single test.

7 years agoUse QUnit.push for raises implementation. Fixes #243
Jörn Zaefferer [Wed, 16 May 2012 12:18:36 +0000 (14:18 +0200)]
Use QUnit.push for raises implementation. Fixes #243

7 years agoDisable linting for addons until grunt 0.4 is ready, making configuration via .jshint...
Jörn Zaefferer [Wed, 16 May 2012 12:01:00 +0000 (14:01 +0200)]
Disable linting for addons until grunt 0.4 is ready, making configuration via .jshintrc files a lot easier

7 years agoCLI runner for phantomjs
jzaefferer [Tue, 19 Apr 2011 12:42:04 +0000 (14:42 +0200)]
CLI runner for phantomjs

7 years agoFix jshint validation until they deal with /** */ comments properly
Jörn Zaefferer [Wed, 16 May 2012 11:16:09 +0000 (13:16 +0200)]
Fix jshint validation until they deal with /** */ comments properly

7 years agoUpdate validTest() : Simplify logic, clarify vars and add comments
Timo Tijhof [Wed, 9 May 2012 21:10:40 +0000 (23:10 +0200)]
Update validTest() : Simplify logic, clarify vars and add comments

7 years agoRefactor assertion helpers into QUnit.assert (backwards compatible)
Timo Tijhof [Wed, 9 May 2012 20:57:50 +0000 (22:57 +0200)]
Refactor assertion helpers into QUnit.assert (backwards compatible)

- QUnit.assert
 * Now contains all assertion helpers
   (kept equals and same out of it, those are only in QUnit itself)
 * Had to move QUnit.test / QUnit.stop up in the code so that they're
   not inside QUnit.assert. The actual test/stop functions have not
   been altered.
 * Per #228 discussion, new standard format created by this:
<pre>
// Test runner
QUnit.assert.cowType = function ( cow, expected, message ) {
    QUnit.push( .. , expected, message );
};

// Test suite
QUnit.test( "FooCow and BarCow defaults", function ( assert ) {
var bar, foo;
expect( 1 );

bar = new BarCow();
foo = new FooCow();

assert.strictEqual( foo.name, "", "A FooCow has no name" );
assert.cowType( foo, "awesome", "A FooCow must be awesome" );
});
</pre>
 * Added unit tests for new QUnit.assert and test() "assert"
   argument. Also added unit tests for the old methods (global
   and via QUnit).
 * Kept rest of the test suite in tact to proof backwards
   compatibility.

- Issues:
 * fixes #228

- Misc:
 * Added few random bits of documentation.
   Turned some block comments into /* .. */

7 years agoUpdate node-testswarm
Jörn Zaefferer [Tue, 8 May 2012 09:38:19 +0000 (11:38 +0200)]
Update node-testswarm

Hosting is provided AltSPAHow to use Git
Please direct any questions on jabber alex.wolf@jabber.ru

Valid HTML 4.0 Transitional Valid CSS!

Designer Alexander Wolf