AltLUG Git
Git-repositories of Altai Linux User Group
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
Timo Tijhof [Mon, 29 Oct 2012 21:11:46 +0000 (22:11 +0100)]
Remove global variable "assert". Fixes #341.
Jörn Zaefferer [Sun, 14 Oct 2012 20:29:12 +0000 (16:29 -0400)]
Add a test for loading tests asynchronously
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)
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
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
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
Jörn Zaefferer [Sun, 30 Sep 2012 20:31:39 +0000 (22:31 +0200)]
Updates themes: Proper license header, integrate collapsed class
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.
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
Jörn Zaefferer [Sun, 30 Sep 2012 17:16:46 +0000 (19:16 +0200)]
Cleanup readme, add npm publish instructions
Jörn Zaefferer [Sun, 30 Sep 2012 16:41:47 +0000 (18:41 +0200)]
Cleanup line comments in jsDump
Jörn Zaefferer [Sun, 30 Sep 2012 16:34:58 +0000 (18:34 +0200)]
Mini lint commit
Jörn Zaefferer [Sun, 30 Sep 2012 16:31:26 +0000 (18:31 +0200)]
Use .jshtinrc files for linting
Jörn Zaefferer [Sun, 30 Sep 2012 13:12:38 +0000 (15:12 +0200)]
Lint phantomjs runner
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.
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.
Jörn Zaefferer [Sat, 29 Sep 2012 16:34:35 +0000 (18:34 +0200)]
Readme for junitlogger addon
Jörn Zaefferer [Sat, 29 Sep 2012 15:33:02 +0000 (17:33 +0200)]
Better readme for composite addon
Mathias Bynens [Sat, 22 Sep 2012 06:17:25 +0000 (09:17 +0300)]
Make `throws` ES3 compatible
Ref. #322.
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
Gavin Huang [Thu, 20 Sep 2012 12:13:00 +0000 (20:13 +0800)]
Not using Object.keys() when reporting error
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
Jörn Zaefferer [Wed, 26 Sep 2012 18:11:47 +0000 (20:11 +0200)]
Formatting
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
Jörn Zaefferer [Thu, 30 Aug 2012 14:37:00 +0000 (16:37 +0200)]
Readme updates for release
Jörn Zaefferer [Thu, 30 Aug 2012 13:10:29 +0000 (15:10 +0200)]
Bump post-release version
Jörn Zaefferer [Thu, 30 Aug 2012 13:07:23 +0000 (15:07 +0200)]
Release 1.10.0
Jörn Zaefferer [Thu, 30 Aug 2012 13:05:12 +0000 (15:05 +0200)]
No more googlemail
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
Philippe Rathé [Mon, 27 Aug 2012 11:09:56 +0000 (04:09 -0700)]
Merge pull request #311 from jniehus/patch-1
spelling typo
Joshua Niehus [Mon, 27 Aug 2012 01:08:19 +0000 (18:08 -0700)]
spelling typo
Jörn Zaefferer [Wed, 22 Aug 2012 17:31:39 +0000 (19:31 +0200)]
Change package.json author to AUTHORS.txt reference
Jörn Zaefferer [Wed, 22 Aug 2012 17:28:25 +0000 (19:28 +0200)]
Simplify licensing.
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
Jörn Zaefferer [Fri, 17 Aug 2012 12:11:00 +0000 (14:11 +0200)]
Simplify phantomjs runner to use module property in testDone callback
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
Antranig Basman [Fri, 10 Aug 2012 10:20:05 +0000 (04:20 -0600)]
Make QUnit.expect() (without arguments) a getter. Fixes #226
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
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
Jörn Zaefferer [Sun, 12 Aug 2012 17:14:02 +0000 (19:14 +0200)]
Update site link in readme. Fixes #301
Alex J Burke [Sat, 28 Jul 2012 21:37:22 +0000 (22:37 +0100)]
Remove conditional codepath based on jQuery presence from reset().
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.
Jörn Zaefferer [Thu, 26 Jul 2012 14:46:04 +0000 (16:46 +0200)]
Add build-git task for CDN deployment
Jörn Zaefferer [Thu, 26 Jul 2012 14:43:48 +0000 (16:43 +0200)]
Update site links
Corey Frang [Mon, 23 Jul 2012 10:10:18 +0000 (05:10 -0500)]
Increasing testswarm timeout - other running jobs can make this take longer
Jörn Zaefferer [Wed, 18 Jul 2012 20:44:54 +0000 (22:44 +0200)]
Merge remote branch 'Krinkle/issue/283'
Jörn Zaefferer [Wed, 18 Jul 2012 20:42:15 +0000 (22:42 +0200)]
Update readme to include some more release instructions
Timo Tijhof [Wed, 18 Jul 2012 19:19:43 +0000 (12:19 -0700)]
Keep a local reference to Date. Fixes #283.
Scott González [Wed, 11 Jul 2012 21:02:01 +0000 (17:02 -0400)]
Added list of authors.
Jörn Zaefferer [Wed, 11 Jul 2012 12:31:02 +0000 (14:31 +0200)]
Merge remote branch 'origin/master'
Jörn Zaefferer [Wed, 11 Jul 2012 12:26:28 +0000 (14:26 +0200)]
Bump post-release version
Jörn Zaefferer [Wed, 11 Jul 2012 12:25:47 +0000 (14:25 +0200)]
Release 1.9.0
Jörn Zaefferer [Wed, 11 Jul 2012 12:25:24 +0000 (14:25 +0200)]
Update README for newer release instructions
Scott González [Wed, 4 Jul 2012 13:16:55 +0000 (09:16 -0400)]
Update copyright to jQuery Foundation.
unknown [Sat, 30 Jun 2012 18:56:01 +0000 (21:56 +0300)]
added jsdoc for QUnit.assert functions
unknown [Sat, 30 Jun 2012 14:08:11 +0000 (17:08 +0300)]
Styling: radius to 5px and small pass/error border, remove inner shadow
Jörn Zaefferer [Sat, 30 Jun 2012 22:39:38 +0000 (15:39 -0700)]
Lint blooper
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
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.
Jörn Zaefferer [Fri, 29 Jun 2012 04:19:25 +0000 (21:19 -0700)]
Also make module filter case-insensitive. Follow-up to #252
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
Jörn Zaefferer [Fri, 29 Jun 2012 03:51:21 +0000 (20:51 -0700)]
Merge remote branch 'Krinkle/issue/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.
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
Jörn Zaefferer [Wed, 13 Jun 2012 22:28:13 +0000 (00:28 +0200)]
Grunt: Update testswarm task to use new config props
Jörn Zaefferer [Wed, 13 Jun 2012 22:07:38 +0000 (00:07 +0200)]
Bump post-release version
Jörn Zaefferer [Wed, 13 Jun 2012 22:07:01 +0000 (00:07 +0200)]
Release 1.8.0
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.
Timo Tijhof [Tue, 12 Jun 2012 16:38:15 +0000 (18:38 +0200)]
move config.current unset to after QUnit.reset()
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(), ..).
Timo Tijhof [Mon, 11 Jun 2012 19:38:25 +0000 (21:38 +0200)]
Test: Set testswarm.runMax from config file
Timo Tijhof [Thu, 7 Jun 2012 16:02:03 +0000 (18:02 +0200)]
Filter: Implement 'module' url parameter. Fixes #252
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
Jörn Zaefferer [Thu, 7 Jun 2012 14:20:02 +0000 (16:20 +0200)]
Bump post-release version
Jörn Zaefferer [Thu, 7 Jun 2012 14:19:19 +0000 (16:19 +0200)]
Release 1.7.0
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().
Jörn Zaefferer [Mon, 4 Jun 2012 10:58:43 +0000 (12:58 +0200)]
Improve extractStacktrace() implementation. Fixes #254 - Include all relevant stack lines
Jörn Zaefferer [Fri, 1 Jun 2012 09:15:12 +0000 (11:15 +0200)]
Follow-up to
a4eeba4 - config.filter can be undefined
Jörn Zaefferer [Thu, 31 May 2012 17:47:07 +0000 (19:47 +0200)]
Make filters case-insensitive. Partial fix for #252
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
Jörn Zaefferer [Thu, 31 May 2012 16:35:44 +0000 (18:35 +0200)]
Fix phantomjs addon header and add readme. Fixes #239
Jörn Zaefferer [Thu, 31 May 2012 16:21:31 +0000 (18:21 +0200)]
Add some hints to composite addon readme. Fixes #251
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.
Jörn Zaefferer [Wed, 16 May 2012 12:18:36 +0000 (14:18 +0200)]
Use QUnit.push for raises implementation. Fixes #243
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
jzaefferer [Tue, 19 Apr 2011 12:42:04 +0000 (14:42 +0200)]
CLI runner for phantomjs
Jörn Zaefferer [Wed, 16 May 2012 11:16:09 +0000 (13:16 +0200)]
Fix jshint validation until they deal with /** */ comments properly
Timo Tijhof [Wed, 9 May 2012 21:10:40 +0000 (23:10 +0200)]
Update validTest() : Simplify logic, clarify vars and add comments
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 /* .. */
Jörn Zaefferer [Tue, 8 May 2012 09:38:19 +0000 (11:38 +0200)]
Update node-testswarm
Timo Tijhof [Mon, 7 May 2012 17:44:26 +0000 (19:44 +0200)]
grunt.js testswarm task: shorten job name
Jörn Zaefferer [Sat, 5 May 2012 10:44:44 +0000 (12:44 +0200)]
Add Rerun link to placeholders. Fixes #240
Jörn Zaefferer [Fri, 4 May 2012 10:08:01 +0000 (12:08 +0200)]
Bump post-release version
Jörn Zaefferer [Fri, 4 May 2012 10:06:44 +0000 (12:06 +0200)]
Release 1.6.0
Jörn Zaefferer [Fri, 4 May 2012 09:55:59 +0000 (11:55 +0200)]
Save stack for each test, use that for failed expect() results, points at the line where test() was called. Fixes #209
Jörn Zaefferer [Fri, 4 May 2012 09:47:17 +0000 (11:47 +0200)]
Prefix test-output id and ignore that in noglobals check. Fixes #212
Jörn Zaefferer [Wed, 2 May 2012 11:07:54 +0000 (13:07 +0200)]
Only check for an exports object to detect a CommonJS enviroment. Fixes #237 - Incompatibility with require.js
Jörn Zaefferer [Tue, 1 May 2012 11:54:00 +0000 (13:54 +0200)]
Use fixed version to force npm to update via `npm install`
Jörn Zaefferer [Tue, 1 May 2012 11:50:47 +0000 (13:50 +0200)]
Update testswarm dependency