everqueen 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. data/README.rdoc +163 -0
  2. data/bin/everqueen +18 -0
  3. data/config/routes.rb +3 -0
  4. data/lib/everqueen.rb +66 -0
  5. data/lib/everqueen/application.rb +47 -0
  6. data/lib/everqueen/assets/elabs.png +0 -0
  7. data/lib/everqueen/assets/everqueen.scss.css +370 -0
  8. data/lib/everqueen/assets/jquery.js +152 -0
  9. data/lib/everqueen/assets/json2.js +25 -0
  10. data/lib/everqueen/assets/list.js.coffee +35 -0
  11. data/lib/everqueen/assets/run.js.coffee.erb +39 -0
  12. data/lib/everqueen/assets/start.js.coffee +6 -0
  13. data/lib/everqueen/assets/test_helper.js +3 -0
  14. data/lib/everqueen/cli.rb +29 -0
  15. data/lib/everqueen/rails.rb +14 -0
  16. data/lib/everqueen/runner.rb +151 -0
  17. data/lib/everqueen/server.rb +19 -0
  18. data/lib/everqueen/suite.rb +32 -0
  19. data/lib/everqueen/tasks.rb +10 -0
  20. data/lib/everqueen/test.rb +44 -0
  21. data/lib/everqueen/version.rb +3 -0
  22. data/lib/everqueen/views/_test_error.erb +4 -0
  23. data/lib/everqueen/views/layout.erb +17 -0
  24. data/lib/everqueen/views/list.erb +19 -0
  25. data/lib/everqueen/views/run.erb +20 -0
  26. data/lib/qunit/History.md +330 -0
  27. data/lib/qunit/README.md +37 -0
  28. data/lib/qunit/addons/canvas/README.md +16 -0
  29. data/lib/qunit/addons/canvas/canvas-test.js +76 -0
  30. data/lib/qunit/addons/canvas/canvas.html +19 -0
  31. data/lib/qunit/addons/canvas/qunit-canvas.js +6 -0
  32. data/lib/qunit/addons/close-enough/README.md +17 -0
  33. data/lib/qunit/addons/close-enough/close-enough-test.js +37 -0
  34. data/lib/qunit/addons/close-enough/close-enough.html +18 -0
  35. data/lib/qunit/addons/close-enough/qunit-close-enough.js +32 -0
  36. data/lib/qunit/addons/composite/README.md +7 -0
  37. data/lib/qunit/addons/composite/composite-demo-test.html +33 -0
  38. data/lib/qunit/addons/composite/composite-test.html +20 -0
  39. data/lib/qunit/addons/composite/composite-test.js +159 -0
  40. data/lib/qunit/addons/composite/dummy-qunit-test.html +19 -0
  41. data/lib/qunit/addons/composite/dummy-same-test.html +19 -0
  42. data/lib/qunit/addons/composite/index.html +35 -0
  43. data/lib/qunit/addons/composite/qunit-composite.css +13 -0
  44. data/lib/qunit/addons/composite/qunit-composite.js +82 -0
  45. data/lib/qunit/addons/step/README.md +18 -0
  46. data/lib/qunit/addons/step/qunit-step.js +25 -0
  47. data/lib/qunit/addons/step/step-test.js +13 -0
  48. data/lib/qunit/addons/step/step.html +19 -0
  49. data/lib/qunit/package.json +28 -0
  50. data/lib/qunit/qunit/qunit.css +226 -0
  51. data/lib/qunit/qunit/qunit.js +1597 -0
  52. data/lib/qunit/test/headless.html +24 -0
  53. data/lib/qunit/test/index.html +21 -0
  54. data/lib/qunit/test/logs.html +17 -0
  55. data/lib/qunit/test/logs.js +153 -0
  56. data/lib/qunit/test/same.js +1432 -0
  57. data/lib/qunit/test/swarminject.js +9 -0
  58. data/lib/qunit/test/test.js +524 -0
  59. data/lib/tasks/everqueen.rake +8 -0
  60. data/spec/everqueen_spec.rb +52 -0
  61. data/spec/meta_spec.rb +40 -0
  62. data/spec/runner_spec.rb +32 -0
  63. data/spec/spec_helper.rb +49 -0
  64. data/spec/suite1/public/jquery.js +152 -0
  65. data/spec/suite1/public/styles.css +3 -0
  66. data/spec/suite1/test/javascripts/bar_test.js +0 -0
  67. data/spec/suite1/test/javascripts/coffeescript_test.coffee +7 -0
  68. data/spec/suite1/test/javascripts/failing_test.js +9 -0
  69. data/spec/suite1/test/javascripts/foo_test.js +0 -0
  70. data/spec/suite1/test/javascripts/libs/lucid_test.js +0 -0
  71. data/spec/suite1/test/javascripts/models/game_test.js +0 -0
  72. data/spec/suite1/test/javascripts/slow_test.coffee +8 -0
  73. data/spec/suite1/test/javascripts/test_helper.js +1 -0
  74. data/spec/suite1/test/javascripts/testing_test.js +9 -0
  75. data/spec/suite1/test/javascripts/transactions_test.js +10 -0
  76. data/spec/suite1/test/javascripts/with_helper_test.js +4 -0
  77. data/spec/suite2/config/everqueen.rb +4 -0
  78. data/spec/suite2/public_html/foo.js +1 -0
  79. data/spec/suite2/test/awesome_test.js +7 -0
  80. data/spec/suite2/test/failing_test.js +4 -0
  81. data/spec/suite_spec.rb +19 -0
  82. data/spec/test_spec.rb +21 -0
  83. metadata +295 -0
@@ -0,0 +1,19 @@
1
+ require 'coffee_script'
2
+
3
+ module Everqueen
4
+ class Server
5
+ attr_reader :suite
6
+
7
+ def serve
8
+ server.boot
9
+ Launchy.open(server.url(Everqueen.mounted_at.to_s + '/'))
10
+ sleep
11
+ end
12
+
13
+ protected
14
+
15
+ def server
16
+ @server ||= Capybara::Server.new(Everqueen.application)
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,32 @@
1
+ module Everqueen
2
+ class Suite
3
+ attr_reader :driver
4
+
5
+ def initialize
6
+ paths = [
7
+ File.expand_path("config/everqueen.rb", root),
8
+ File.expand_path(".everqueen", root),
9
+ "#{ENV["HOME"]}/.everqueen"
10
+ ]
11
+ paths.each { |path| load(path) if File.exist?(path) }
12
+ end
13
+
14
+ def root
15
+ Everqueen.root
16
+ end
17
+
18
+ def mounted_at
19
+ Everqueen.mounted_at
20
+ end
21
+
22
+ def get_test(name)
23
+ Test.new(self, name)
24
+ end
25
+
26
+ def tests
27
+ Dir.glob(File.join(root, Everqueen.test_dir, '**/*_test.{js,coffee,js.coffee}')).map do |path|
28
+ Test.new(self, path.gsub(File.join(root, Everqueen.test_dir, ''), ''))
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,10 @@
1
+ require 'everqueen'
2
+
3
+ # Rails 2.3 Rake tasks
4
+ namespace :spec do
5
+ desc "Run JavaScript specs via Everqueen"
6
+ task :javascripts => :environment do
7
+ result = Everqueen::Runner.new.run
8
+ Kernel.exit(1) unless result
9
+ end
10
+ end
@@ -0,0 +1,44 @@
1
+ require 'open3'
2
+
3
+ module Everqueen
4
+ class Test
5
+ attr_reader :name, :suite
6
+
7
+ def initialize(suite, name)
8
+ @suite = suite
9
+ @name = name.sub('js.coffee', 'js')
10
+ end
11
+
12
+ def root
13
+ suite.root
14
+ end
15
+
16
+ def full_path
17
+ File.join(root, Everqueen.test_dir, name)
18
+ end
19
+
20
+ alias_method :asset_path, :name
21
+
22
+ def url
23
+ "#{suite.mounted_at}/run/#{name}"
24
+ end
25
+
26
+ def passed?
27
+ runner.passed?
28
+ end
29
+
30
+ def failure_messages
31
+ runner.failure_messages
32
+ end
33
+
34
+ def exist?
35
+ File.exist?(full_path)
36
+ end
37
+
38
+ protected
39
+
40
+ def runner
41
+ @runner ||= suite.runner.test_runner(self)
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,3 @@
1
+ module Everqueen
2
+ VERSION = '1.0.1'
3
+ end
@@ -0,0 +1,4 @@
1
+ QUnit.module("failure");
2
+ test("should not fail", function() {
3
+ throw(<%= "#{error.class}: #{error.message}".to_json %>);
4
+ });
@@ -0,0 +1,17 @@
1
+ <!doctype html>
2
+
3
+ <html>
4
+ <head>
5
+ <title>Everqueen</title>
6
+ <link rel="stylesheet" type="text/css" href="<%= url('/assets/everqueen.css') %>"/>
7
+ <meta http-equiv="content-type" content="text/html;charset=utf-8" />
8
+ </head>
9
+ <body>
10
+ <%= yield %>
11
+
12
+ <div id="footer">
13
+ Powered by <a href="http://github.com/jnicklas/everqueen">Everqueen</a>.
14
+ Everqueen is sponsored by <a class="elabs" href="http://elabs.se"><img alt="Elabs" src="<%= url('/assets/elabs.png') %>"> Elabs</a>.
15
+ </div>
16
+ </body>
17
+ </html>
@@ -0,0 +1,19 @@
1
+ <script type="text/javascript" src="<%= url("/assets/jquery.js") %>"></script>
2
+ <script type="text/javascript" src="<%= url("/assets/list.js") %>"></script>
3
+ <div id="page">
4
+ <h1>Everqueen</h1>
5
+
6
+ <div id="all">
7
+ <a class="all" href="<%= url('/run/all') %>">All</a>
8
+ <a class="run" href="<%= url('/run/all') %>">Run</a>
9
+ </div>
10
+
11
+ <ul id="tests">
12
+ <% @suite.tests.each do |test| %>
13
+ <li>
14
+ <a href="<%= test.url %>"><%= test.name %></a>
15
+ <a class="run" href="<%= test.url %>">Run</a>
16
+ </li>
17
+ <% end %>
18
+ </ul>
19
+ </div>
@@ -0,0 +1,20 @@
1
+ <script type="text/javascript" src="<%= url("/assets/run.js") %>"></script>
2
+ <% if @test %>
3
+ <script type="text/javascript" src="<%= url("/assets/" + @test.asset_path) %>"></script>
4
+ <% else %>
5
+ <% @suite.tests.each do |test| %>
6
+ <script type="text/javascript" src="<%= url("/assets/" + test.asset_path) %>"></script>
7
+ <% end %>
8
+ <% end %>
9
+
10
+ <div id="page">
11
+ <h1 id="qunit-header">Everqueen</h1>
12
+ <h2 id="qunit-banner"></h2>
13
+ <div id="qunit-testrunner-toolbar"></div>
14
+ <h2 id="qunit-userAgent"></h2>
15
+ <ol id="qunit-tests"></ol>
16
+ <div id="qunit-fixture">test markup, will be hidden</div>
17
+ <a class="back" href="<%= url("/") %>">Back to list</a>
18
+ </div>
19
+
20
+ <script type="text/javascript" src="<%= url("/assets/start.js") %>"></script>
@@ -0,0 +1,330 @@
1
+
2
+ 1.2.0 / 2011-11-24
3
+ ==================
4
+
5
+ * remove uses of equals(), as it's deprecated in favor of equal()
6
+ * Code review of "Allow objects with no prototype to be tested against object literals."
7
+ * Allow objects with no prototype to tested against object literals.
8
+ * Fix IE8 "Member not found" error
9
+ * 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
+ * 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
11
+ * Fix globals in test.js, part 2
12
+ * Fix globals in test.js. ?tell wwalser to use ?noglobals everyonce in a while
13
+ * Extend readme regarding release process
14
+
15
+ 1.1.0 / 2011-10-11
16
+ ==================
17
+
18
+ * Fixes #134 - Add a window.onerror handler. Makes uncaught errors actually fail the testsuite, instead of going by unnoticed.
19
+ * Whitespace cleanup
20
+ * Merge remote branch 'trevorparscal/master'
21
+ * 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.
22
+ * Update readme with basic notes on releases
23
+ * More whitespace/parens cleanup
24
+ * Check if setTimeout is available before trying to delay running the next task. Fixes #160
25
+ * Whitespace/formatting fix, remove unnecessary parens
26
+ * Use alias for Object.prototype.toString
27
+ * Merge remote branch 'trevorparscal/master'
28
+ * Merge remote branch 'wwalser/recursionBug'
29
+ * Default 'expected' to null in asyncTest(), same as in test() itself.
30
+ * Whitespace cleanup
31
+ * Merge remote branch 'mmchaney/master'
32
+ * Merge remote branch 'Krinkle/master'
33
+ * Using === instead of ==
34
+ * Added more strict array type detection for dump output, and allowed NodeList objects to be output as arrays
35
+ * Bump post-release version
36
+ * Fixes a bug where after an async test, assertions could move between test cases because of internal state (config.current) being incorrectly set
37
+ * Simplified check for assertion count and adjusted whitespace
38
+ * 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é!).
39
+ * Handle expect(0) as expected, i.e. expect(0); ok(true, foo); will cause a test to fail
40
+
41
+ 1.0.0 / 2011-10-06
42
+ ==================
43
+
44
+ * Make QUnit work with TestSwarm
45
+ * Run other addons tests as composite addon demo. Need to move that to /test folder once this setup actually works
46
+ * Add-on: New assertion-type: step()
47
+ * added parameter to start and stop allowing a user to increment/decrement the semaphore more than once per call
48
+ * Update readmes with .md extension for GitHub to render them as markdown
49
+ * Update close-enough addon to include readme and match (new) naming convetions
50
+ * Merge remote branch 'righi/close-enough-addon'
51
+ * Canvas addon: Update file referneces
52
+ * Update canvas addon: Rename files and add README
53
+ * Merge remote branch 'wwalser/composite'
54
+ * Fix #142 - Backslash characters in messages should not be escaped
55
+ * Add module name to testStart and testDone callbacks
56
+ * Removed extra columns in object literals. Closes #153
57
+ * Remove dead links in comments.
58
+ * Merge remote branch 'wwalser/multipleCallbacks'
59
+ * Fixed syntax error and CommonJS incompatibilities in package.json
60
+ * Allow multiple callbacks to be registered.
61
+ * Add placeholder for when Safari may end up providing useful error handling
62
+ * changed file names to match addon naming convention
63
+ * Whitespace
64
+ * Created the composite addon.
65
+ * Using array and object literals.
66
+ * Issue #140: Make toggle system configurable.
67
+ * Merge remote branch 'tweetdeck/master'
68
+ * Adds the 'close enough' addon to determine if numbers are acceptably close enough in value.
69
+ * Fix recursion support in jsDump, along with tests. Fixes #63 and #100
70
+ * Adding a QUnit.config.altertitle flag which will allow users to opt-out of the functionality introduced in 60147ca0164e3d810b8a9bf46981c3d9cc569efc
71
+ * Refactor window.load handler into QUnit.load, makes it possible to call it manually.
72
+ * More whitespace cleanup
73
+ * Merge remote branch 'erikvold/one-chk-in-title'
74
+ * Whitespace
75
+ * Merge remote branch 'wwalser/syncStopCalls'
76
+ * Introducing the first QUnit addon, based on https://github.com/jquery/qunit/pull/84 - adds QUnit.pixelEqual assertion method, along with example tests.
77
+ * Remove config.hidepassed setting in test.js, wasn't intended to land in master.
78
+ * Expose QUnit.config.hidepassed setting. Overrides sessionStorage and enables enabling the feature programmatically. Fixes #133
79
+ * Fix formatting (css whitespace) for tracebacks.
80
+ * Expose extend, id, and addEvent methods.
81
+ * minor comment typo correction
82
+ * Ignore Eclipse WTP .settings
83
+ * Set 'The jQuery Project' as author in package.json
84
+ * Fixes a bug where synchronous calls to stop would cause tests to end before start was called again
85
+ * Point to planning testing wiki in readme
86
+ * only add one checkmark to the document.title
87
+ * Escape the stacktrace output before setting it as innerHTML, since it tends to contain `<` and `>` characters.
88
+ * Cleanup whitespace
89
+ * Run module.teardown before checking for pollution. Fixes #109 - noglobals should run after module teardown
90
+ * Fix accidental global variable "not"
91
+ * Update document.title status to use more robust unicode escape sequences, works even when served with non-utf-8-charset.
92
+ * Modify document.title when suite is done to show success/failure in tab, allows you to see the overall result without seeing the tab content.
93
+ * Merge pull request #107 from sexyprout/master
94
+ * Set a generic font
95
+ * Add/update headers
96
+ * Drop support for deprecated #main in favor of #qunit-fixture. If this breaks your testsuite, replace id="main" with id="qunit-fixture". Fixes #103
97
+ * Remove the same key as the one being set. Partial fix for #101
98
+ * Don't modify expected-count when checking pollution. The failing assertion isn't expected, so shouldn't be counted. And if expect wasn't used, the count is misleading.
99
+ * Fix order of noglobals check to produce correct introduced/delete error messages
100
+ * Prepend module name to sessionStorage keys to avoid conflicts
101
+ * Store filter-tests only when checked
102
+ * Write to sessionStorage only bad tests
103
+ * Moved QUnit.url() defintion after QUnit properties are merged into the global scope. Fixes #93 - QUnit url/extend function breaking urls in jQuery ajax test component
104
+ * Add a "Rerun" link to each test to replce the dblclick (still supported, for now).
105
+ * Fixed the regex for parsing the name of a test when double clicking to filter.
106
+ * Merge remote branch 'scottgonzalez/url'
107
+ * Added checkboxes to show which flags are currently on and allow toggling them.
108
+ * Retain all querystring parameters when filtering a test via double click.
109
+ * Added better querystring parsing. Now storing all querystring params in QUnit.urlParams so that we can carry the params forward when filtering to a specific test. This removes the ability to specify multiple filters.
110
+ * Make reordering optional (QUnit.config.reorder = false) and optimize "Hide passed tests" mode by also hiding "Running [testname]" entries.
111
+ * Added missing semicolons and wrapped undefined key in quotes.
112
+ * Optimize test hiding, add class on page load if stored in sessionStorage
113
+ * Optimize the hiding of passed tests.
114
+ * Position test results above test list, making it visible without ever having to scroll. Create a placeholder to avoid pushing down results later.
115
+ * Don't check for existing qunit-testresult element, it gets killed on init anyway.
116
+ * Added URL flag ?notrycatch (ala ?noglobals) for debugging exceptions. Won't try/catch test code, giving better debugging changes on the original exceptions. Fixes #72
117
+ * Always show quni-toolbar (if at all specified), persist checkbox via sessionStorage. Fixes #47
118
+ * Use non-html testname for calls to fail(). Fixes #77
119
+ * Overhaul of QUnit.callbacks. Consistent single argument with related properties, with additonal runtime property for QUnit.done
120
+ * Extended test/logs.html to capture more of the callbacks.
121
+ * Fixed moduleStart/Done callbacks. Added test/logs.html to test these callbacks. To be extended.
122
+ * Update copyright and license header. Fixes #61
123
+ * Formatting fix.
124
+ * Use a semaphore to synchronize stop() and start() calls. Fixes #76
125
+ * Merge branch 'master' of https://github.com/paulirish/qunit into paulirish-master
126
+ * Added two tests for previous QUnit.raises behaviour. For #69
127
+ * add optional 2. arg to QUnit.raises #69.
128
+ * fix references inside Complex Instances Nesting to what was originally intended.
129
+ * Qualify calls to ok() in raises() for compability with CLI enviroments.
130
+ * Fix done() handling, check for blocking, not block property
131
+ * Fix moduleStart/Done and done callbacks.
132
+ * Replacing sessionStorage test with the one from Modernizr/master (instead of current release). Here's hoping it'll work for some time.
133
+ * Updated test for availibility of sessionStorage, based on test from Modernizr. Fixes #64
134
+ * Defer test execution when previous run passed, persisted via sessionStorage. Fixes #49
135
+ * Refactored module handling and queuing to enable selective defer of test runs.
136
+ * Move assertions property from config to Test
137
+ * Move expected-tests property from config to Test
138
+ * Refactored test() method to delegate to a Test object to encapsulate all properties and methods of a single test, allowing further modifications.
139
+ * Adding output of sourcefile and linenumber of failed assertions (except ok()). Only limited cross-browser support for now. Fixes #60
140
+ * Drop 'hide missing tests' feature. Fixes #48
141
+ * Adding readme. Fixes #58
142
+ * Merge branch 'prettydiff'
143
+ * Improve jsDump output with formatted diffs.
144
+ * Cleanup whitespace
145
+ * Cleanup whitespace
146
+ * Added additional guards around browser specific code and cleaned up jsDump code
147
+ * Added guards around tests which are only for browsers
148
+ * cleaned up setTimeout undefined checking and double done on test finish
149
+ * fixing .gitignore
150
+ * making window setTimeout query more consistent
151
+ * Moved expect-code back to beginning of function, where it belongs. Fixes #52
152
+ * Bread crumb in header: Link to suite without filters, add link to current page based on the filter, if present. Fixes #50
153
+ * Make the toolbar element optional when checking for show/hide of test results. Fixes #46
154
+ * Adding headless.html to manually test logging and verify that QUnit works without output elements. Keeping #qunit-fixture as a few tests actually use that.
155
+ * Fix for QUnit.moduleDone, get rid of initial bogus log. Fixes #33
156
+ * Pass raw data (result, message, actual, expected) as third argument to QUnit.log. Fixes #32
157
+ * Dump full exception. Not pretty, but functional (see issue Pretty diff for pretty output). Fixes #31
158
+ * Don't let QUnit.reset() cause assertions to run. Manually applied from Scott Gonzalez branch. Fixes #34
159
+ * Added missing semicolons. Fixes #37
160
+ * Show okay/failed instead of undefined. Fixes #38
161
+ * Expose push as QUnit.push to build custom assertions. Fixes #39
162
+ * Respect filter pass selection when writing new results. Fixes #43
163
+ * Cleanup tests, removing asyncTest-undefined check and formatting
164
+ * Reset: Fall back to innerHTML when jQuery isn't available. Fixes #44
165
+ * Merge branch 'master' of github.com:jquery/qunit
166
+ * reset doesn't exist here - fixes #28.
167
+ * - less css cruft, better readability - replaced inline style for test counts with "counts" class - test counts now use a "failed"/"passed" vs "pass"/"fail", shorter/more distinct selectors - pulled all test counts styling together and up (they're always the same regardless of section pass/fail state)
168
+ * Adding .gitignore file
169
+ * Removing diff test - diffing works fine, as the browser collapses whitespace in its output, but the test can't do that and isn't worth fixing.
170
+ * Always synchronize the done-step (it'll set the timeout when necessary), fixes timing race conditions.
171
+ * Insert location.href as an anchor around the header. Fixes issue #29
172
+ * - kill double ;; in escapeHtml. oops
173
+ * Removed html escaping from QUnit.diff, as input is already escaped, only leads to double escaping. Replaced newlines with single whitespace.
174
+ * Optimized and cleaned up CSS file
175
+ * Making the reset-method non-global (only module, test and assertions should be global), and fixing the fixture reset by using jQuery's html() method again, doesn't work with innerHTML, yet
176
+ * Introducing #qunit-fixture element, deprecating the (never documented) #main element. Doesn't require inline styles and is now independent of jQuery.
177
+ * Ammending previous commit: Remove jQuery-core specific resets (will be replaced within jQuery testsuite). Fixes issue #19 - QUnit.reset() removes global jQuery ajax event handlers
178
+ * Remove jQuery-core specific resets (will be replaced within jQuery testsuite). Fixes issue #19 - QUnit.reset() removes global jQuery ajax event handlers
179
+ * Cleaning up rubble from the previous commit.
180
+ * Added raises assertion, reusing some of kennsnyder's code.
181
+ * Merged kensnyder's object detection code. Original message: Streamlined object detection and exposed QUnit.objectType as a function.
182
+ * Fixed some bad formatting.
183
+ * Move various QUnit properties below the globals-export to avoid init becoming a global method. Fixes issue #11 - Remove 'init' function from a global namespace
184
+ * Improved output when expected != actual: Output both only then, and add a diff. Fixes issue #10 - Show diff if equal() or deepEqual() failed
185
+ * Expand failed tests on load. Fixes issue #8 - Failed tests expanded on load
186
+ * Set location.search for url-filtering instead of location.href. Fixes issue #7 - Modify location.search instead of location.href on test double-click
187
+ * Add QUnit.begin() callback. Fixes issue #6 - Add 'start' callback.
188
+ * add css style for result (".test-actual") in passed tests
189
+ * Fixed output escaping by using leeoniya's custom escaping along with innerHTML. Also paves the way for outputting diffs.
190
+ * Cleanup
191
+ * Revert "Revert part of bad merge, back to using createTextNode"
192
+ * Revert part of bad merge, back to using createTextNode
193
+ * Fixed doubleclick-handler and filtering to rerun only a single test.
194
+ * Add ability to css style a test's messages, expected and actual results. Merged from Leon Sorokin (leeoniya).
195
+ * Remove space between module name and colon
196
+ * - removed "module" wording from reports (unneeded and cluttery) - added and modified css to make module & test names styleable
197
+ * Logging support for Each test can extend the module testEnvironment
198
+ * Fixing whitespace
199
+ * Update tests to use equal() and deepEqual() rather than the deprecated equals() and same()
200
+ * Consistent argument names for deepEqual
201
+ * Skip DOM part of jsDump test if using a SSJS environment without a DOM
202
+ * Improve async testing by creating the result element before running the test, updating it later. If the test fails, its clear which test is the culprit.
203
+ * Add autostart option to config. Set via QUnit.config.autostart = false; start later via QUnit.start()
204
+ * Expose QUnit.config, but don't make config a global
205
+ * Expose QUnit.config as global to make external workarounds easier
206
+ * Merge branch 'asyncsetup'
207
+ * Allowing async setup and teardown. Fixes http://github.com/jquery/qunit/issues#issue/20
208
+ * Always output expected and actual result (no reason not to). Fixes http://github.com/jquery/qunit/issues#issue/21
209
+ * More changes to the detection of types in jsDump's typeOf.
210
+ * Change the typeOf checks in QUnit to be more accurate.
211
+ * Added test for jsDump and modified its options to properly output results when document.createTextNode is used; currently tests for DOM elements cause a stackoverflow error in IEs, works fine, with the correct output, elsewhere
212
+ * Always use jsDump to output result objects into messages, making the output for passing assertions more useful
213
+ * Make it so that the display is updated, at least, once a second - also prevents scripts from executing for too long and causing problems.
214
+ * added tests and patch for qunit.equiv to avoid circular references in objects and arrays
215
+ * No reason to continue looping, we can stop at this point. Thanks to Chris Thatcher for the suggestion.
216
+ * Use createTextNode instead of innerHTML for showing test result since expected and actual might be something that looks like a tag.
217
+ * 'Test card' design added
218
+ * switched green to blue for top-level pass + reduced padding
219
+ * Bringing the QUnit API in line with the CommonJS API.
220
+ * Explicitly set list-style-position: inside on result LIs.
221
+ * Madness with border-radius.
222
+ * Corrected banner styles for new class names
223
+ * Added rounded corners and removed body rules for embedded tests
224
+ * Resolving merge conflicts.
225
+ * added colouring for value summary
226
+ * adding some extra text colours
227
+ * added styles for toolbar
228
+ * added new styles
229
+ * IE 6 and 7 weren't respecting the CSS rules for the banner, used a different technique instead.
230
+ * Went a bit further and made extra-sure that the target was specified correctly.
231
+ * Fixed problem where double-clicking an entry in IE caused an error to occur.
232
+ * Path for http://dev.jquery.com/ticket/5426 - fix the microformat test result
233
+ * Fixed test() to use 'expected' 2nd param
234
+ * Remove the named function expressions, to stop Safari 2 from freaking out. Fixes #5.
235
+ * Each test can extend the module testEnvironment
236
+ * Extra test for current test environment
237
+ * Make the current testEnvironment available to utility functions
238
+ * typeOf in QUnit.jsDump now uses QUnit.is
239
+ * hoozit in QUnit.equiv now uses QUnit.is
240
+ * Properly set label attributes.
241
+ * Some minor tweaks to RyanS' GETParams change.
242
+ * left a console.log in :(
243
+ * Took into account a fringe case when using qunit with testswarm. Trying to run all the tests with the extra url params from testswarm would make qunit look for a testsuite that did not exist
244
+ * need to set config.currentModule to have correct names and working filters
245
+ * Support logging of testEnvironment
246
+ * async tests aren't possible on rhino
247
+ * Fixed a missing QUnit.reset().
248
+ * The QUnit. prefix was missing from the uses of the start() method.
249
+ * Merged lifecycle object into testEnvironment
250
+ * "replacing totally wrong diff algorithm with a working one" Patch from kassens (manually applied).
251
+ * fixing jslint errors in test.js
252
+ * Fixed: testDone() was always called with 0 failures in CommonJS mode
253
+ * Fixed: moduleDone() was invoked on first call to module()
254
+ * Added a new asyncTest method - removes the need for having to call start() at the beginning of an asynchronous test.
255
+ * Added support for expected numbers in the test method.
256
+ * Fixed broken dynamic loading of tests (can now dynamically load tests and done still works properly).
257
+ * Simplified the logic for calling 'done' and pushing off new tests - was causing too many inconsistencies otherwise.
258
+ * Simplified the markup for the QUnit test test suite.
259
+ * Realized that it's really easy to handle the case where stop() has been called and then an exception is thrown.
260
+ * Added in better logging support. Now handle moduleStart/moduleDone and testStart/testDone. Also make sure that done only fires once at the end.
261
+ * Made it so that you can reset the suite to an initial state (at which point tests can be dynamically loaded and run, for example).
262
+ * Re-worked QUnit to handle dynamic loading of additional code (the 'done' code will be re-run after additional code is loaded).
263
+ * Removed the old SVN version stuff.
264
+ * Moved the QUnit source into a separate directory and updated the test suite/packages files.
265
+ * Added in CommonJS support for exporting the QUnit functionality.
266
+ * Missing quote from package.json.
267
+ * Fixed trailing comma in package.json.
268
+ * Added a CommonJS/Narwhal package.json file.
269
+ * Accidentally reverted the jsDump/equiv changes that had been made.
270
+ * Hide the filter toolbar if it's not needed. Also exposed the jsDump and equiv objects on QUnit.
271
+ * Retooled the QUnit CSS to be more generic.
272
+ * Renamed the QUnit files from testrunner/testsuite to QUnit.
273
+ * Expose QUnit.equiv and QUnit.jsDump in QUnit.
274
+ * Moved the QUnit test directory into the QUnit directory.
275
+ * Reworked the QUnit CSS (moved jQuery-specific stuff out, made all the other selectors more specific).
276
+ * Removed the #main reset for non-jQuery code (QUnit.reset can be overwritten with your own reset code).
277
+ * Moved the QUnit toolbar inline.
278
+ * Switched to using a qunit- prefix for special elements (banner, userAgent, and tests).
279
+ * Missed a case in QUnit where an element was assumed to exist.
280
+ * QUnit's isSet and isObj are no longer needed - you should use same instead.
281
+ * Make sure that QUnit's equiv entity escaping is enabled by default (otherwise the output gets kind of crazy).
282
+ * Refactored QUnit, completely reorganized the structure of the file. Additionally made it so that QUnit can run outside of a browser (inside Rhino, for example).
283
+ * Removed some legacy and jQuery-specific test methods.
284
+ * Added callbacks for tests and modules. It's now possible to reproduce the full display of the testrunner without using the regular rendering.
285
+ * QUnit no longer depends upon rendering the results (it can work simply by using the logging callbacks).
286
+ * Made QUnit no longer require jQuery (it is now a standalone, framework independent, test runner).
287
+ * Reverted the noglobals changed from QUnit - causing chaos in the jQuery test suite.
288
+ * qunit: removed noglobals flag, instead always check for globals after teardown; if a test has to introduce a global "myVar", use delete window.myVar in teardown or at the end of a test
289
+ * qunit: don't child selectors when IE should behave nicely, too
290
+ * qunit: improvment for the test-scope: create a new object and call setup, the test, and teardown in the scope of that object - allows you to provide test fixtures to each test without messing with global data; kudos to Martin Häcker for the contribution
291
+ * qunit: added missing semicolons
292
+ * qunit: fixed a semicolon, that should have been a comma
293
+ * QUnit: implemented error handling for Opera as proposed by #3628
294
+ * qunit: fix for http://dev.jquery.com/ticket/3215 changing wording of testresults, to something more positive (x of y passed, z failed)
295
+ * QUnit: testrunner.js: Ensures equality of types (String, Boolean, Number) declared with the 'new' prefix. See comments #3, #4 and #5 on http://philrathe.com/articles/equiv
296
+ * qunit: wrap name of test in span when a module is used for better styling
297
+ * qunit: auto-prepend default mark (#header, #banner, #userAgent, #tests) when not present
298
+ * Landing some changes to add logging to QUnit (so that it's easier to hook in to when a test finishes).
299
+ * Added checkbox for hiding missing tests (tests that fail with the text 'missing test - untested code is broken code')
300
+ * qunit: eol-style:native and mime-type
301
+ * HTML being injected for the test result wasn't valid HTML.
302
+ * qunit: setting mimetype for testsuite.css
303
+ * qunit: update to Ariel's noglobals patch to support async tests as well
304
+ * Landing Ariel's change - checks for global variable leakage.
305
+ * qunit: run module-teardown in its own synchronize block to synchronize with async tests (ugh)
306
+ * qunit: same: equiv - completely refactored in the testrunner.
307
+ * testrunner.js: - Update equiv to support Date and RegExp. - Change behavior when comparing function: - abort when in an instance of Object (when references comparison failed) - skip otherwise (like before)
308
+ * qunit: code refactoring and cleanup
309
+ * QUnit: update equiv to latest version, handling multiple arguments and NaN, see http://philrathe.com/articles/equiv
310
+ * QUnit: cleanup, deprecating compare, compare2 and serialArray: usage now throws an error with a helpful message
311
+ * QUnit: optional timeout argument for stop, while making tests undetermined, useful for debugging
312
+ * QUnit: added toolbar with "hide passed tests" checkbox to help focus on failed tests
313
+ * QUnit: minor output formatting
314
+ * QUnit: adding same-assertion for a recursive comparsion of primite values, arrays and objects, thanks to Philippe Rathé for the contribution, including tests
315
+ * QUnit: adding same-assertion for a recursive comparsion of primite values, arrays and objects, thanks to Philippe Rathé for the contribution, including tests
316
+ * QUnit: adding same-assertion for a recursive comparsion of primite values, arrays and objects, thanks to Philippe Rathé for the contribution, including tests
317
+ * qunit: use window.load to initialize tests, allowing other code to run on document-ready before starting to run tests
318
+ * qunit: allow either setup or teardown, instead of both or nothing
319
+ * qunit: make everything private by default, expose only public API; removed old timeout-option (non-deterministic, disabled for a long time anyway); use local $ reference instead of global jQuery reference; minor code cleanup (var config instead of _config; queue.shift instead of slice)
320
+ * qunit: added support for module level setup/teardown callbacks
321
+ * qunit: modified example for equals to avoid confusion with parameter ordering
322
+ * qunit: added id/classes to result element to enable integration with browser automation tools, see http://docs.jquery.com/QUnit#Integration_into_Browser_Automation_Tools
323
+ * qunit: replaced $ alias with jQuery (merged from jquery/test/data/testrunner.js)
324
+ * qunit: fixed inline documentation for equals
325
+ * qunit testrunner - catch and log possible error during reset()
326
+ * QUnit: Switched out Date and Rev for Id.
327
+ * qunit: when errors are thrown in a test, the message is successfully show on all browsers.
328
+ * qunit: added license header
329
+ * qunit: moved jquery testrunner to top-level project, see http://docs.jquery.com/QUnit
330
+ * Share project 'qunit' into 'https://jqueryjs.googlecode.com/svn'