Commit Graph

142 Commits

Author SHA1 Message Date
Oleg Gaidarenko
d0f27a73a1 Build: Correct indentation issue 2014-07-03 18:00:45 +04:00
Scott González
72e6192517 Build: Move all external libraries to external directory
Closes gh-1593

Conflicts:
	Gruntfile.js
	test/index.html
2014-06-25 13:48:49 -04:00
Oleg
f1af3c23f9 Tests: Fix sinon timers for oldIE 2014-01-13 22:22:51 +04:00
Dave Methvin
f4a3587a65 Tests: Straighten out sinon dependencies
* Cherry-pick took the wrong lines for a couple of things.
* Update and commit dependencies after `grunt bower`
2014-01-10 10:24:57 -05:00
John Paul
2d6da2da6c Effects: Integrate sinon fake timers into tests
(cherry picked from commit b407bddea2)

Closes gh-1377
2014-01-09 22:03:24 -05:00
Timmy Willison
c2e0dbdaa5 Manage bower dependencies with grunt-bowercopy
Tracked bower dependencies are located at "src/sizzle" and "test/libs".
The source-destination mapping is in the Gruntfile.

When updating a bower dependency, update the version in bower.json, run
`grunt bower`, and then commit the result. When adding a dependency,
update the bowercopy task accordingly.

Fixes #14615.
Closes gh-1452.

Conflicts:
	bower.json
	test/index.html
2013-12-06 16:14:27 -05:00
Timmy Willison
a9f5946294 Use grunt and bower packages as local dependencies. Close gh-1433. 2013-11-14 10:18:12 -05:00
Oleg
d6fc713e26 Use full version of jQuery 1.9.1
Had some weird failures in IE with xhr build of 1.9.1.
Cherry picked from 626cbde7f8 commit
2013-11-08 01:07:09 +01:00
Timmy Willison
be1e4eee60 Convert testrunner to an AMD module and ensure jQuery is on the page when executing the testrunner (another race condition amplified by swarm)
Conflicts:
	test/data/testinit.js
	test/data/testrunner.js
2013-09-06 17:23:45 -04:00
Timmy Willison
d14904d083 Move test loader to testinit.js. Fix race condition with dependency loading. 2013-09-06 17:23:45 -04:00
Timmy Willison
b99972de58 Use requirejs to load the testswarm inject script 2013-09-06 17:23:45 -04:00
Timmy Willison
8e6e239256 Pass all tests (and load Sizzle fixture correctly) when loading with AMD
Conflicts:
	src/css.js
2013-08-29 16:25:44 -04:00
Oleg Gaidarenko
723ced4079 Fixed pulling in Sizzle subproject when testing with min/dev. 2013-08-16 09:40:28 -04:00
Timmy Willison
217cbb7109 AMD-ify jQuery sourcegit s! Woo! Fixes #14113, #14163.
Conflicts:
	Gruntfile.js
	README.md
	src/ajax.js
	src/ajax/xhr.js
	src/attributes.js
	src/core.js
	src/css.js
	src/data.js
	src/effects.js
	src/event.js
	src/manipulation.js
	src/offset.js
	src/selector-native.js
	src/traversing.js
	test/unit/core.js
	test/unit/data.js
2013-08-15 15:49:49 -04:00
Oleg
353fe2a749 Fix paths for qunit files
(cherry picked from commit c8c32f1d05)
2013-07-24 18:45:06 +04:00
Timmy Willison
40d4881373 Include Sizzle and Qunit with bower. Fixes #14118. 2013-07-10 12:01:20 -04:00
Michał Gołębiowski
0db70aa1fa Fix #13741. Make wrap/unwrap methods optional; close gh-1236.
move size() test to unit/deprecated;
don't use size() in other tests;
make 2 unit tests actually fire;
code cleanup
2013-04-17 23:06:33 -04:00
Richard Gibson
bdc4f3ebbe Fix #13596; #13722: .replaceWith consistency. Close gh-1216. 2013-04-16 17:28:35 -04:00
Oleg Gaidarenko
08e57b1de7 Adjust the return value of the tabIndex propHook to match the spec. Fixes #13752. 2013-04-08 21:41:08 -04:00
Richard Gibson
5e29ff7e59 Fix #13265 #13332: Allow .parent/.closest with text nodes. Close gh-1146. 2013-02-13 21:22:53 -05:00
Richard Gibson
67a2e4eaac Ref #13316: Sync all test documents on full vs. minified source. 2013-02-08 00:20:33 -05:00
Oleg
8226666b13 Fix #13310. Get the right display value for disconnected nodes. Close gh-1155. 2013-02-04 15:13:01 -05:00
Timmy Willison
1e1ea2c44f Revert change to visible/hidden selectors until 1.10 and 2.1. Reopens #13132, #10406. 2013-01-30 20:09:56 -05:00
Dave Methvin
a3055f3df6 Fix #13316. Use minified version in unit testing.
Also migrates the XHR check added to 2.0 in 62acda819f.
2013-01-26 10:52:19 -05:00
Timmy Willison
bb1d148345 Fix failing tests, add support for empty spans in Opera. Supplements #13132, #10406. 2013-01-21 18:12:16 -05:00
Timo Tijhof
55313d32a2 Test: Update index.html to new QUnit format. Close gh-1061.
Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
2012-12-10 21:48:20 -05:00
Richard Gibson
d08d48337f update Sizzle 2012-11-16 15:57:43 -05:00
Richard Gibson
48bd8b509b No ticket: speedup effects tests 2012-11-12 21:06:16 -05:00
Richard Gibson
14e1501b89 Fix testing of no-ajax custom builds 2012-11-01 00:40:27 -04:00
Timo Tijhof
6e75fe5f19 No ticket: fix effects test failure in IE6. Close gh-1012. 2012-10-31 16:41:31 -04:00
Timo Tijhof
36c9ecb0f5 Implement expectation test instead of using _removeData. Close gh-997.
* Removed inline usage of QUnit.reset() because it is messing with the
  expectation model as reset does .empty() which does a recursive cleanData
  on everything in #qunit-fixture, so any expectJqData above .reset() would
  fail negatively.

  Instead of calling reset inline, either updated the following assertions to
  take previous assertions' state into account, or broke the test() up into
  2 tests at the point where it would call QUnit.reset.

* After introducing the new memory leak discovery a whole bunch of tests were
  failing as they didn't clean up everything. However I didn't (yet) add
  QUnit.expectJqData calls all over the place because in most if not all of
  these cases it is valid data storage. For example in test "data()", there
  will be an internal data key for "parsedAttrs". This particular test isn't
  intending to test for memory leaks, so therefor I made the new discovery
  system only push failures when the test contains at least 1 call to
  QUnit.expectJqData.

  When not, we'll assume that whatever data is being stored is acceptable
  because the relevant elements still exist in the DOM anyway (QUnit.reset
  will remove the elements and clean up the data automatically).

  I did add a "Always check jQuery.data" mode in the test suite that will
  trigger it everywhere. Maybe one day we'll include a call to everywhere,
  but for now I'm keeping the status quo: Only consider data left in storage
  to be a problem if the test says so ("opt-in").

* Had to move #fx-tests inside the fixture because ".remove()" test would
  otherwise remove stuff permanently and cause random other tests to fail
  as "#hide div" would yield an empty collection.
  (Why wasn't this in the fixture in the first place?)

  As a result moving fx-tests into the fixture a whole bunch of tests failed
  that relied on arbitrary stuff about the document-wide or fixture-wide
  state (e.g. number of divs etc.). So I had to adjust various tests to
  limit their sample data to not be so variable and unlimited...

* Moved out tests for expando cleanup into a separate test.

* Fixed implied global variable 'pass' in effects.js that was causing
  "TypeError: boolean is not a function" in *UNRELATED* dimensions.js that
  uses a global variable "pass = function () {};" ...

* Removed spurious calls to _removeData. The new test exposed various failures
  e.g. where div[0] isn't being assigned any data anyway.
  (queue.js and attributes.js toggleClass).

* Removed spurious clean up at the bottom of test() functions that are
  already covered by the teardown (calling QUnit.reset or removeClass to
  supposedly undo any changes).

* Documented the parentheses-less magic line in toggleClass. It appeared that
  it would always keep the current class name if there was any (since the
  assignment started with "this.className || ...".

  Adding parentheses + spacing is 8 bytes (though only 1 in gzip apparently).
  Only added the comment for now, though I prefer clarity with logical
  operators, I'd rather not face the yayMinPD[1] in this test-related commit.

* Updated QUnit urlConfig to the new format (raw string is deprecated).

* Clean up odd htmlentities in test titles, QUnit escapes this.
  (^\s+test\(.*)(&gt\;) → $1>
  (^\s+test\(.*)(&lt\;) → $1<

[1] jQuery MinJsGz Release Police Department (do the same, download less)
2012-10-28 22:44:57 -04:00
Dave Methvin
2a1e5eccf5 Shim/shiv the datalist element for crabby Uncle oldIE. 2012-09-05 22:01:35 -04:00
Dave Methvin
3016872220 Let subproject tests use their own test fixture. Closes gh-867. 2012-07-19 22:02:37 -04:00
jaubourg
ced5e9037a Extracts the serialization code from the ajax module so that alternative ajax implementations can use it without the need for the whole ajax module to be included in the build. 2012-07-13 09:47:43 +02:00
Nowres Rafid
aaf134bb70 Fix #8482, offsetParent should not return null. Closes gh-847. 2012-07-06 10:01:32 -04:00
timmywil
ad2221853f Update Sizzle: reduced size. Add Sizzle's utilities.js to unit tests 2012-06-27 00:41:33 -04:00
Rick Waldron
a2758377df Adds src/deprecated.js, test/unit/deprecated.js; -deprecated flag; Moves jQuery.browser and removes use in test/unit/ajax.js. Fixes #11965 2012-06-25 10:02:28 -04:00
Dave Methvin
a416e2ba0d Ensure that IE stays in Big Boy mode.
Although we use a lot of iframes in the test, the IE document mode is set by the parent document so we just need a single X-UA-Compatible in the main file.

http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx
2012-06-16 10:57:41 -04:00
Scott González
a7430dfb12 Use QUnit's URL configs to simplify custom configuration. Closes gh-827 2012-06-15 08:23:42 -05:00
timmywil
8f944a1b5c Add necessary test html from Sizzle tests; Add an easy way to turn off QSA in tests 2012-06-15 02:09:38 -04:00
Rick Waldron
53a5810bfc Rough draft of version=min test capabilities reintroduced.
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
2012-06-06 17:39:23 -04:00
timmywil
37ffb29d37 Relativize all urls pertaining to dist/jquery.js so users can run their server from any file location; Make sure Sizzle is available for its tests in testrunner. 2012-06-04 18:04:11 -04:00
Rick Waldron
7c23b77af2 Strips IIFEs from modules; Always require built jQuery for tests. 2012-06-04 12:48:18 -04:00
timmywil
a4fc2edaab Update Sizzle and add tests from the Sizzle suite that require jQuery for the selection to jquery/test/unit/selector.js 2012-05-28 12:41:58 -04:00
Rick Waldron
5181ce0f35 Amends #10324. Remove object markup fixture; create programmatically 2012-04-11 15:40:03 -04:00
Dave Methvin
0f827c800b Followup on #10324. Eliminate duplicate name attribute. 2012-04-10 22:30:26 -04:00
Rick Waldron waldron.rick@gmail.com
2795a8390c Ensure innerHTML of src/dest clone nodes is correctly set. Fixes #10324
Signed-off-by: Rick Waldron waldron.rick@gmail.com <waldron.rick@gmail.com>
2012-03-23 11:54:12 -04:00
Rick Waldron
d07116a952 Adds 'bdi' and 'data' to shim list and test runner. Fixes #11055 2012-01-11 22:16:30 -05:00
Mike Sherov
dd900460ac Fix #10902. DRY up the ways to include src files in tests. 2012-01-11 21:35:13 -05:00
timmywil
3d6237ef8a Remove the invisible body in support; Add temporary tests to verify correct support completions for upcoming support changes. 2011-11-17 14:48:27 -05:00