Home page Forum Wiki Mail Jabber Devel NIX-FILES

AltLUG Git

Git-repositories of Altai Linux User Group

qunit.git
10 years agotest/test.js: typo
Timo Tijhof [Thu, 22 Mar 2012 15:34:50 +0000 (16:34 +0100)]
test/test.js: typo

10 years agoFixed clearing of sessionStorage in Firefox 3.6.
Scott González [Wed, 21 Mar 2012 17:19:21 +0000 (13:19 -0400)]
Fixed clearing of sessionStorage in Firefox 3.6.

10 years agoFixes #217 by calling "block" with config.current.testEnvironment
Keith Cirkel [Fri, 16 Mar 2012 11:05:49 +0000 (11:05 +0000)]
Fixes #217 by calling "block" with config.current.testEnvironment

10 years agoAdd stats results to data. QUnit.jUnitReport function take one argument
Jonathan Sanchez [Thu, 15 Mar 2012 15:46:01 +0000 (16:46 +0100)]
Add stats results to data. QUnit.jUnitReport function take one argument
{
  xml:'<?xml ...',
  results:{failed:0, passed:0, total:0, time:0}
}

10 years agoAdd link to MDN about stack property
Jörn Zaefferer [Sun, 18 Mar 2012 15:10:54 +0000 (16:10 +0100)]
Add link to MDN about stack property

10 years agoBump post-release version
Jörn Zaefferer [Sat, 10 Mar 2012 14:28:26 +0000 (15:28 +0100)]
Bump post-release version

10 years agoRelease 1.4.0
Jörn Zaefferer [Sat, 10 Mar 2012 14:27:31 +0000 (15:27 +0100)]
Release 1.4.0

10 years agoPrefix test-related session-storage items to make removal more specific. Fixes #213...
Jörn Zaefferer [Sat, 10 Mar 2012 14:15:52 +0000 (15:15 +0100)]
Prefix test-related session-storage items to make removal more specific. Fixes #213 - Keep hide-passed state when clearing session storage

10 years agoUpdate grunt.js with seperate configs for qunit.js and grunt.js, also add tests but...
Jörn Zaefferer [Sat, 10 Mar 2012 14:11:28 +0000 (15:11 +0100)]
Update grunt.js with seperate configs for qunit.js and grunt.js, also add tests but disable for now, not passing yet. Add grunt to devDependencies

10 years agotypo
Erkan Yilmaz [Thu, 8 Mar 2012 16:41:42 +0000 (17:41 +0100)]
typo

10 years agoCleanup grunt.js, no need for the banner
Jörn Zaefferer [Wed, 7 Mar 2012 12:28:33 +0000 (13:28 +0100)]
Cleanup grunt.js, no need for the banner

10 years agoFix lint errors and some formatting issues. Use QUnit.pushFailure for noglobals and...
Jörn Zaefferer [Wed, 7 Mar 2012 12:27:25 +0000 (13:27 +0100)]
Fix lint errors and some formatting issues. Use QUnit.pushFailure for noglobals and global error handler.

10 years agoFix a missing expect in logs test
Jörn Zaefferer [Wed, 7 Mar 2012 12:26:51 +0000 (13:26 +0100)]
Fix a missing expect in logs test

10 years agoAdd grunt.js configuration and include some usage instructions in the readme
Jörn Zaefferer [Wed, 7 Mar 2012 12:26:28 +0000 (13:26 +0100)]
Add grunt.js configuration and include some usage instructions in the readme

10 years agoUpdate package.json
Jörn Zaefferer [Wed, 7 Mar 2012 11:21:26 +0000 (12:21 +0100)]
Update package.json

10 years agoPartially revert af27eae841c3e1c01c46de72d676f1047e1ee375 - can't move reset around...
Jörn Zaefferer [Wed, 7 Mar 2012 11:06:05 +0000 (12:06 +0100)]
Partially revert af27eae841c3e1c01c46de72d676f1047e1ee375 - can't move reset around, so also don't wrap in try-catch, as the result of that is effectively swallowed. Can't output the result as the outputting is already done.

10 years agoAdd QUnit.pushFailure to log error conditions like exceptions. Accepts stacktrace...
Jörn Zaefferer [Wed, 7 Mar 2012 11:02:00 +0000 (12:02 +0100)]
Add QUnit.pushFailure to log error conditions like exceptions. Accepts stacktrace as second argument, allowing extraction with catched exceptions (useful even in Safari). Remove old fail() function that would just log to console, not useful anymore as regular test output is much more useful by now. Move up QUnit.reset() call to just make that another failed assertion. Used to not make a test fail. Fixes #210

10 years agoUpdate equals and same deprecations to use QUnit.push to provide correct source lines...
Jörn Zaefferer [Wed, 7 Mar 2012 10:34:12 +0000 (11:34 +0100)]
Update equals and same deprecations to use QUnit.push to provide correct source lines. Fixes #211

10 years agoAdd a test file for narwhal integration. Has to use print instead of console.log...
Jörn Zaefferer [Tue, 6 Mar 2012 12:29:21 +0000 (13:29 +0100)]
Add a test file for narwhal integration. Has to use print instead of console.log. Fails when an assertion fails, something about setInterval...

10 years agoApply notrycatch option to setup and teardown as well. Fixes #203. Reorder noglobals...
Jörn Zaefferer [Mon, 5 Mar 2012 12:14:23 +0000 (13:14 +0100)]
Apply notrycatch option to setup and teardown as well. Fixes #203. Reorder noglobals check to allow teardown to remove globals that were introduced intentionally. Fixes #204

10 years agoExtend exports object with QUnit properties at the end of the file to export everything.
Jörn Zaefferer [Mon, 5 Mar 2012 12:06:06 +0000 (13:06 +0100)]
Extend exports object with QUnit properties at the end of the file to export everything.

That's different to the window export, where we want to make only a subset global.

Fixes #201

10 years agoOutput source line for ok() assertions. Fixes #202
Jörn Zaefferer [Mon, 5 Mar 2012 11:57:09 +0000 (12:57 +0100)]
Output source line for ok() assertions. Fixes #202

10 years agoMake test fail if no assertions run. Fixes #178
Jörn Zaefferer [Mon, 5 Mar 2012 11:50:18 +0000 (12:50 +0100)]
Make test fail if no assertions run. Fixes #178

10 years agoSort object output alphabetically in order to improve diffs of objects where properti...
Gijs Kruitbosch [Fri, 2 Mar 2012 16:48:45 +0000 (17:48 +0100)]
Sort object output alphabetically in order to improve diffs of objects where properties were set in a different order. Fixes #206

10 years agoRevert "Change fixture reset behavior", changing #194 and #195 to wontfix.
Jörn Zaefferer [Wed, 29 Feb 2012 16:54:06 +0000 (17:54 +0100)]
Revert "Change fixture reset behavior", changing #194 and #195 to wontfix.

This reverts commit b9010d4befa71b394bffa3294d8de5c047f9c541.

That change turned out to cause very sublte bugs in jQuery UI testsuites, where the browser form memory would cache values between testruns. Which doesn't happen with the previous reset implementation. Unfortunate, but not worth the trouble.

10 years agoBump post-release version
Jörn Zaefferer [Sun, 26 Feb 2012 13:06:48 +0000 (14:06 +0100)]
Bump post-release version

10 years agoRelease 1.3.0
Jörn Zaefferer [Sun, 26 Feb 2012 13:05:30 +0000 (14:05 +0100)]
Release 1.3.0

10 years agoCleanup test markup
Jörn Zaefferer [Thu, 23 Feb 2012 15:18:53 +0000 (16:18 +0100)]
Cleanup test markup

10 years agoFix the jQuery branch of fixture reset. Would break when no fixture exists.
Jörn Zaefferer [Wed, 22 Feb 2012 12:32:17 +0000 (13:32 +0100)]
Fix the jQuery branch of fixture reset. Would break when no fixture exists.

10 years agoAdded initial version of a junitlogger addon.
Spocke [Thu, 16 Feb 2012 14:29:32 +0000 (15:29 +0100)]
Added initial version of a junitlogger addon.

10 years agoEscape document.title before inserting into markup. Extends fix for #127
Jörn Zaefferer [Mon, 20 Feb 2012 11:01:31 +0000 (12:01 +0100)]
Escape document.title before inserting into markup. Extends fix for #127

10 years agoCatch assertions running outside of test() context, make sure source is provided...
Jörn Zaefferer [Wed, 15 Feb 2012 16:49:41 +0000 (17:49 +0100)]
Catch assertions running outside of test() context, make sure source is provided even for ok(). Fixes #98

10 years agoImprove global object access, based on comments for 1a9120651d5464773256d8a1f2cf2eabe...
Jörn Zaefferer [Wed, 15 Feb 2012 16:39:47 +0000 (17:39 +0100)]
Improve global object access, based on comments for 1a9120651d5464773256d8a1f2cf2eabe38ea5b3

10 years agoClear all sessionStorage entries once all tests passed. Helps getting rid of items...
Jörn Zaefferer [Wed, 15 Feb 2012 16:31:50 +0000 (17:31 +0100)]
Clear all sessionStorage entries once all tests passed. Helps getting rid of items from renamed tests. Fixes #101

10 years agoSet fixed dimensions for #qunit-fixture. Fixes #114
Jörn Zaefferer [Wed, 15 Feb 2012 16:19:56 +0000 (17:19 +0100)]
Set fixed dimensions for #qunit-fixture. Fixes #114

10 years agoExtend nodejs test runner to check for stacktrace output, twice
Jörn Zaefferer [Wed, 15 Feb 2012 16:16:45 +0000 (17:16 +0100)]
Extend nodejs test runner to check for stacktrace output, twice

10 years agoExtend nodejs test runner to check for stacktrace output
Jörn Zaefferer [Wed, 15 Feb 2012 16:12:36 +0000 (17:12 +0100)]
Extend nodejs test runner to check for stacktrace output

10 years agoGenerate more base markup, but allow the user to exclude that completelty or choose...
Jörn Zaefferer [Wed, 15 Feb 2012 16:00:20 +0000 (17:00 +0100)]
Generate more base markup, but allow the user to exclude that completelty or choose their own. Fixes #127

10 years agoAdd a simple test file to check basic nodejs integration works
Jörn Zaefferer [Wed, 15 Feb 2012 15:51:39 +0000 (16:51 +0100)]
Add a simple test file to check basic nodejs integration works

10 years agoCheck for global object to find setTimeout in node
Jörn Zaefferer [Wed, 15 Feb 2012 15:33:28 +0000 (16:33 +0100)]
Check for global object to find setTimeout in node

10 years agoFix CommonJS export by assigning QUnit to module.exports.
Jörn Zaefferer [Wed, 15 Feb 2012 15:23:52 +0000 (16:23 +0100)]
Fix CommonJS export by assigning QUnit to module.exports.

10 years agoRemove the testEnviromentArg to test(). Most obscure, never used anywhere. test(...
Jörn Zaefferer [Wed, 15 Feb 2012 14:59:04 +0000 (15:59 +0100)]
Remove the testEnviromentArg to test(). Most obscure, never used anywhere. test() is still heavily overloaded with argument shifting, this makes it a little more sane. Fixes #172

10 years agoSerialize expected and actual values only when test fails. Speeds up output of valid...
Jörn Zaefferer [Wed, 15 Feb 2012 14:40:48 +0000 (15:40 +0100)]
Serialize expected and actual values only when test fails. Speeds up output of valid tests, especially for lots of large objects. Fixes #183

10 years agoFix sourceFromsTacktrace to get the right line in Firefox. Shift the 'error' line...
Jörn Zaefferer [Wed, 15 Feb 2012 14:25:15 +0000 (15:25 +0100)]
Fix sourceFromsTacktrace to get the right line in Firefox. Shift the 'error' line away in Chrome to get a match.

10 years agoFix references to test/deepEqual.js
Jörn Zaefferer [Wed, 15 Feb 2012 14:22:08 +0000 (15:22 +0100)]
Fix references to test/deepEqual.js

10 years agoIn autorun mode, moduleDone is called without matching moduleStart. Fix issue #184
Niall Smart [Tue, 20 Dec 2011 07:13:27 +0000 (23:13 -0800)]
In autorun mode, moduleDone is called without matching moduleStart. Fix issue #184

10 years agoFixture test: allow anything falsy in test as getAttribute in oldIE will return empty...
Jörn Zaefferer [Wed, 15 Feb 2012 13:52:42 +0000 (14:52 +0100)]
Fixture test: allow anything falsy in test as getAttribute in oldIE will return empty string instead of null. We don't really care.

10 years agoKeep label and checkbox together ( http://i.imgur.com/5Wk3A.png )
Krinkle [Wed, 28 Dec 2011 20:27:52 +0000 (21:27 +0100)]
Keep label and checkbox together ( i.imgur.com/5Wk3A.png )

10 years agoAdd readme for themes
Jörn Zaefferer [Wed, 15 Feb 2012 13:44:38 +0000 (14:44 +0100)]
Add readme for themes

10 years agoFix bad global in reset()
Jörn Zaefferer [Wed, 15 Feb 2012 13:40:32 +0000 (14:40 +0100)]
Fix bad global in reset()

10 years agoSome cleanup in theme addons
Jörn Zaefferer [Wed, 15 Feb 2012 13:39:51 +0000 (14:39 +0100)]
Some cleanup in theme addons

10 years agoUpdate headers
Jörn Zaefferer [Wed, 15 Feb 2012 13:36:41 +0000 (14:36 +0100)]
Update headers

10 years agoUpdate nv.html, add gabe theme based on https://github.com/jquery/qunit/pull/188
Jörn Zaefferer [Wed, 15 Feb 2012 13:34:30 +0000 (14:34 +0100)]
Update nv.html, add gabe theme based on https://github.com/jquery/qunit/pull/188

10 years agoExperiemental custom theme based on https://github.com/jquery/qunit/pull/62 by NV
Jörn Zaefferer [Fri, 5 Aug 2011 10:14:50 +0000 (12:14 +0200)]
Experiemental custom theme based on https://github.com/jquery/qunit/pull/62 by NV

10 years agoReplace deprecated same and equals aliases with placeholders that just throw errors...
Jörn Zaefferer [Tue, 14 Feb 2012 17:59:08 +0000 (18:59 +0100)]
Replace deprecated same and equals aliases with placeholders that just throw errors, providing a hint at what to use instead. Rename test file to match that.

10 years agoCan't rely on outerHTML for Firefox < 11. Use cloneNode instead.
Jörn Zaefferer [Tue, 14 Feb 2012 17:51:49 +0000 (18:51 +0100)]
Can't rely on outerHTML for Firefox < 11. Use cloneNode instead.

10 years agoMerge remote branch 'conzett/master'
Jörn Zaefferer [Tue, 14 Feb 2012 17:22:51 +0000 (18:22 +0100)]
Merge remote branch 'conzett/master'

10 years agoCleanup whitespace
Jörn Zaefferer [Tue, 14 Feb 2012 16:33:36 +0000 (17:33 +0100)]
Cleanup whitespace

10 years agoUpdate sessionStorage support test to latest version from Modernizr, trying to setIte...
Jörn Zaefferer [Tue, 14 Feb 2012 16:24:42 +0000 (17:24 +0100)]
Update sessionStorage support test to latest version from Modernizr, trying to setItem to avoid QUOTA_EXCEEDED_EXCEPTION

10 years agoChange fixture reset behavior
Graham Conzett [Wed, 1 Feb 2012 16:34:37 +0000 (11:34 -0500)]
Change fixture reset behavior

On load, set clone qunit-fixture element and set config.fixture equal to
that. Change the reset function to replace the entire qunit-fixture
element with a deep copy of the clone. Essentially, cache a clean copy of
the fixture node on load and replace subsequent fixture nodes with that.

Added tests to check if properties on the fixture are cleared between
tests.

10 years agoMerge pull request #181 from simonz/development
Jörn Zaefferer [Thu, 8 Dec 2011 08:51:06 +0000 (00:51 -0800)]
Merge pull request #181 from simonz/development

following issue #180, escape test names and show stack trace when failed

10 years agoEscaping test names
Seong-A Kong [Thu, 8 Dec 2011 01:19:59 +0000 (10:19 +0900)]
Escaping test names

10 years agoShow exception stack when test failed
Seong-A Kong [Thu, 8 Dec 2011 01:19:49 +0000 (10:19 +0900)]
Show exception stack when test failed

10 years agoBump post-release version
Jörn Zaefferer [Thu, 24 Nov 2011 15:38:55 +0000 (16:38 +0100)]
Bump post-release version

10 years agoRelease v1.2.0
Jörn Zaefferer [Thu, 24 Nov 2011 15:38:21 +0000 (16:38 +0100)]
Release v1.2.0

10 years agoremove uses of equals(), as it's deprecated in favor of equal()
Mike Sherov [Sun, 6 Nov 2011 04:17:37 +0000 (00:17 -0400)]
remove uses of equals(), as it's deprecated in favor of equal()

10 years agoCode review of "Allow objects with no prototype to be tested against object literals."
Philippe Rathé [Sat, 5 Nov 2011 22:41:24 +0000 (18:41 -0400)]
Code review of "Allow objects with no prototype to be tested against object literals."

10 years agoAllow objects with no prototype to tested against object literals.
DomenicDenicola [Tue, 1 Nov 2011 22:49:49 +0000 (18:49 -0400)]
Allow objects with no prototype to tested against object literals.

I often use objects created with `Object.create(null)` as dictionaries, since then they don't have pre-filled dictionary entries for e.g. `constructor`, `hasOwnProperty`, `isPrototypeOf`, etc. However, in my tests, it is quite useful to test the dictionaries I create against object literals (which have `Object.prototype` as their prototype).

This patch makes an exemption to the rule that two objects must have the same constructor, for the case where one has `null` prototype and the other `Object.prototype` as its prototype.

10 years agoFix IE8 "Member not found" error
Jimmy Mabey [Wed, 19 Oct 2011 16:43:17 +0000 (13:43 -0300)]
Fix IE8 "Member not found" error

Setting window.constructor causes this error in IE8, which happens when QUnit
extends window.

10 years agoUsing node-qunit port, the start/stop function are not exposed so we need to prefix...
Ashar Voultoiz [Wed, 19 Oct 2011 14:20:10 +0000 (17:20 +0300)]
Using node-qunit port, the start/stop function are not exposed so we need to prefix any call to them with 'QUnit'. Aka: start() -> QUnit.start()

10 years agoRemove the 'let teardown clean up globals test' - IE<9 doesn't support (==buggy)...
Jörn Zaefferer [Wed, 12 Oct 2011 20:50:19 +0000 (22:50 +0200)]
Remove the 'let teardown clean up globals test' - IE<9 doesn't support (==buggy) deleting window properties, and that's not worth the trouble, as everything else passes just fine. Fixes #155

10 years agoFix globals in test.js, part 2
Jörn Zaefferer [Wed, 12 Oct 2011 20:44:57 +0000 (22:44 +0200)]
Fix globals in test.js, part 2

10 years agoFix globals in test.js. ?tell wwalser to use ?noglobals everyonce in a while
Jörn Zaefferer [Wed, 12 Oct 2011 20:44:15 +0000 (22:44 +0200)]
Fix globals in test.js. ?tell wwalser to use ?noglobals everyonce in a while

10 years agoExtend readme regarding release process
Jörn Zaefferer [Tue, 11 Oct 2011 10:21:24 +0000 (12:21 +0200)]
Extend readme regarding release process

10 years agoBump post-release version
Jörn Zaefferer [Tue, 11 Oct 2011 10:17:28 +0000 (12:17 +0200)]
Bump post-release version

10 years agoRelease 1.1.0
Jörn Zaefferer [Tue, 11 Oct 2011 10:16:50 +0000 (12:16 +0200)]
Release 1.1.0

10 years agoFixes #134 - Add a window.onerror handler. Makes uncaught errors actually fail the...
Jörn Zaefferer [Tue, 11 Oct 2011 10:13:47 +0000 (12:13 +0200)]
Fixes #134 - Add a window.onerror handler. Makes uncaught errors actually fail the testsuite, instead of going by unnoticed.

10 years agoWhitespace cleanup
Jörn Zaefferer [Tue, 11 Oct 2011 10:12:46 +0000 (12:12 +0200)]
Whitespace cleanup

10 years agoMerge remote branch 'trevorparscal/master'
Jörn Zaefferer [Mon, 10 Oct 2011 19:23:15 +0000 (21:23 +0200)]
Merge remote branch 'trevorparscal/master'

Conflicts:
qunit/qunit.js

10 years agoFixed IE compatibility issues with using toString on NodeList objects,
Trevor Parscal [Mon, 10 Oct 2011 18:49:32 +0000 (11:49 -0700)]
Fixed IE compatibility issues with using toString on NodeList objects,
which in some browsers results in [object Object] rather than [object
NodeList]. Now using duck typing for NodeList objects based on the
presence of length, length being a number, presence of item method
(which will be typeof string in IE and function in others, so we just
check that it's not undefined) and that item(0) returns the same value
as [0], unless it's empty, in which case item(0) will return 0, while
[0] would return undefined. Tested in IE6, IE8, Firefox 6, Safari 5 and
Chrome 16.

10 years agoUpdate readme with basic notes on releases
Jörn Zaefferer [Mon, 10 Oct 2011 15:01:34 +0000 (17:01 +0200)]
Update readme with basic notes on releases

10 years agoMore whitespace/parens cleanup
Jörn Zaefferer [Mon, 10 Oct 2011 14:59:53 +0000 (16:59 +0200)]
More whitespace/parens cleanup

10 years agoCheck if setTimeout is available before trying to delay running the next task. Fixes...
Jörn Zaefferer [Mon, 10 Oct 2011 14:57:21 +0000 (16:57 +0200)]
Check if setTimeout is available before trying to delay running the next task. Fixes #160

10 years agoWhitespace/formatting fix, remove unnecessary parens
Jörn Zaefferer [Mon, 10 Oct 2011 14:53:24 +0000 (16:53 +0200)]
Whitespace/formatting fix, remove unnecessary parens

10 years agoUse alias for Object.prototype.toString
Jörn Zaefferer [Mon, 10 Oct 2011 14:48:25 +0000 (16:48 +0200)]
Use alias for Object.prototype.toString

10 years agoMerge remote branch 'trevorparscal/master'
Jörn Zaefferer [Mon, 10 Oct 2011 14:45:55 +0000 (16:45 +0200)]
Merge remote branch 'trevorparscal/master'

10 years agoMerge remote branch 'wwalser/recursionBug'
Jörn Zaefferer [Mon, 10 Oct 2011 14:35:06 +0000 (16:35 +0200)]
Merge remote branch 'wwalser/recursionBug'

Conflicts:
qunit/qunit.js

10 years agoDefault 'expected' to null in asyncTest(), same as in test() itself.
Jörn Zaefferer [Mon, 10 Oct 2011 14:16:11 +0000 (16:16 +0200)]
Default 'expected' to null in asyncTest(), same as in test() itself.

10 years agoWhitespace cleanup
Jörn Zaefferer [Mon, 10 Oct 2011 12:13:40 +0000 (14:13 +0200)]
Whitespace cleanup

10 years agoMerge remote branch 'mmchaney/master'
Jörn Zaefferer [Mon, 10 Oct 2011 12:12:47 +0000 (14:12 +0200)]
Merge remote branch 'mmchaney/master'

10 years agoMerge remote branch 'Krinkle/master'
Jörn Zaefferer [Mon, 10 Oct 2011 09:53:26 +0000 (11:53 +0200)]
Merge remote branch 'Krinkle/master'

10 years agoUsing === instead of ==
Trevor Parscal [Fri, 7 Oct 2011 21:36:05 +0000 (14:36 -0700)]
Using === instead of ==

This doesn't have any functional difference because we are comparing a
string literal with the results of Object.toString(), but it's better
to be sure that they are the same type.

10 years agoAdded more strict array type detection for dump output, and allowed NodeList objects...
Trevor Parscal [Fri, 7 Oct 2011 19:39:56 +0000 (12:39 -0700)]
Added more strict array type detection for dump output, and allowed NodeList objects to be output as arrays

This helps prevent treating any object with a length property as an
array, while maintaining the ability to render NodeList objects as
arrays. jsDump output tests still pass after this patch is applied.

10 years agoBump post-release version
Jörn Zaefferer [Thu, 6 Oct 2011 15:51:31 +0000 (11:51 -0400)]
Bump post-release version

10 years agoRelease 1.0.0
Jörn Zaefferer [Thu, 6 Oct 2011 15:49:58 +0000 (11:49 -0400)]
Release 1.0.0

10 years agoPreparing 1.0.0 release
Jörn Zaefferer [Thu, 6 Oct 2011 15:49:16 +0000 (11:49 -0400)]
Preparing 1.0.0 release

10 years agoMake QUnit work with TestSwarm
Jörn Zaefferer [Fri, 30 Sep 2011 20:39:49 +0000 (16:39 -0400)]
Make QUnit work with TestSwarm

10 years agoFixes a bug where after an async test, assertions could move between test cases becau...
Wesley Walser [Wed, 17 Aug 2011 00:41:58 +0000 (10:41 +1000)]
Fixes a bug where after an async test, assertions could move between test cases because of internal state (config.current) being incorrectly set

10 years agoSimplified check for assertion count and adjusted whitespace
Markus Messner-Chaney [Thu, 29 Sep 2011 04:47:18 +0000 (06:47 +0200)]
Simplified check for assertion count and adjusted whitespace

10 years agoRedo of fixing issue #156 (Support Object.prototype extending environment).
Krinkle [Thu, 29 Sep 2011 00:47:13 +0000 (03:47 +0300)]
Redo of fixing issue #156 (Support Object.prototype extending environment).
* QUnit.diff: Throws exception without this if Object.prototype is set (Property 'length' of undefined. Since Object.prototype.foo doesn't have a property 'rows')
* QUnit.url: Without this fix, if Object.prototype.foo is set, the url will be set to ?foo=...&the=rest.
* saveGlobals: Without this fix, whenever a member is added to Object.prototype, saveGlobals will think it was a global variable in this loop.
---
This time using the call method instead of obj.hasOwnProperty(key), which may fail if the object has that as it's own property (touché!).

Also caching Object.prototype.hasOwn for performance and convenience, as well as toString while at it.

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