aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/attributes.js
Commit message (Collapse)AuthorAgeFilesLines
...
* Tests: Fix code style issuesOleg2014-01-161-4/+4
|
* Tests: Add assertion for the jQuery#val methodOleg2014-01-161-2/+7
|
* Attrs: Remove outdated valHook for option elementOleg2014-01-161-0/+9
| | | | | | | This hook was relevant for BlackBerry 4.7 which is no longer supported. But this code path now raises error in IE10-11 (#14686) in 1.x-master branch. So to just to be safe, also add test for IE issue to this branch too.
* Tests: Avoid use of QUnit.reset() in tests by splitting themcjqed2013-12-231-8/+15
| | | | | Fix #14040 Close gh-1457
* Fix #14340. Remove remnants of oldIE from unit tests. Close gh-1425.Michał Gołębiowski2013-11-111-2/+1
|
* Add tests for class manipulation on jQuery object containing more than one ↵Michał Gołębiowski2013-10-251-0/+43
| | | | element. Close gh-1404.
* No ticket: Hide the testing-support jQuery from testsRichard Gibson2013-09-031-1/+1
|
* Fix for custom attr handles duck-punching the boolean attr handleTimmy Willison2013-08-281-0/+14
| | | | | Conflicts: src/attributes/attr.js
* Fix #13835: classes separated by form feedRichard Gibson2013-05-131-0/+20
|
* Update jshintrc to conform to new style guide. Conform to onevar and unused ↵Timmy Willison2013-04-091-59/+74
| | | | in tests. Fixes #13755.
* Adjust tabIndex propHook for modern browsers and return -1 where ↵Oleg Gaidarenko2013-04-081-4/+9
| | | | appropriate. Close gh-1228.
* Move size() test to deprecated.js and avoid in other tests. Close gh-1237.Michał Gołębiowski2013-04-081-1/+1
|
* Update grunt-contrib-jshint to 0.3.0, close gh-1204.Michał Gołębiowski2013-04-031-4/+4
| | | | | | | | (cherry picked from 4adde5d14534799f3bcfac2771e1513be8a56a2f) Conflicts: src/data.js src/effects.js
* Fix #13514: Set selectedIndex to -1 when non-matching value is set on a ↵ruado19872013-03-221-0/+16
| | | | | | select. Close gh-1191. (cherry picked from commit 48d71d0c3e53d1bb1688fc6c0593b008ced3403b)
* Edited comments and minor adjustments. Fixes #13553. Closes gh-1195.Michał Z. Gołębiowski2013-03-121-1/+1
|
* Fix typos. Close gh-1186.dmitrygusev2013-02-281-2/+2
|
* No ticket: Revise unit tests in anticipation of Sizzle-free buildsRichard Gibson2013-02-221-1/+1
|
* Fix #12656. Make event shorthands excludable.Dave Methvin2013-01-271-1/+1
|
* 2.0: Remove style->cssText attroproties fallbackTimmy Willison2012-12-311-4/+0
|
* Fixes #13088: under IE8, $(selector).attr('style') always return lowercase ↵Mike Sherov2012-12-311-2/+5
| | | | string
* let .attr(checked|selected, true) update the propertyRichard Gibson2012-12-161-2/+9
|
* Fix #11115: Normalize boolean attributes/properties. Close gh-1066.Richard Gibson2012-12-151-58/+50
|
* Fix #12600: don't use value property in place of value attribute. Close gh-1063.Richard Gibson2012-12-141-8/+10
|
* Fix #9646. Cloned nodes shouldn't affect original in IE7. Close gh-947.Oleg2012-12-131-0/+24
|
* Missed a var declaration in aad235b3251494afe71fd5bb6031e11965af9bdb.Dave Methvin2012-12-111-1/+1
|
* Fix #13011. Let 'type' attribute be set if the browser allows.Dave Methvin2012-12-111-9/+5
|
* Test: Update index.html to new QUnit format. Close gh-1061.Timo Tijhof2012-12-101-6/+6
| | | | Depends on jquery/sizzle#177, included with the Sizzle submodule in this commit.
* Fix #12957. Simplify wrapMap, it doesn't need end tags. Close gh-1044.Oleg2012-11-271-5/+2
|
* Don't let removeClass create attributesRichard Gibson2012-11-271-21/+19
|
* Fix #12915, add propHook for scrip src property on oldIE. Close gh-1035.aFarkas2012-11-181-1/+4
|
* No ticket: speedup effects testsRichard Gibson2012-11-121-4/+2
|
* No ticket: update test suite to pass QUnit globals check in most ↵Richard Gibson2012-11-051-2/+5
| | | | environments. Close gh-1016.
* Fix #12840: remove undocumented parameter "pass" from .attr. Close gh-1017.Richard Gibson2012-11-051-78/+0
|
* Fix #10299. Add a propHook for oldIE link href.Dave Methvin2012-11-011-1/+3
|
* No ticket: remove test suite external dependenciesRichard Gibson2012-11-011-1/+1
|
* Implement expectation test instead of using _removeData. Close gh-997.Timo Tijhof2012-10-281-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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)
* Fix #12411, .removeClass(undefined) is a chaining no-op. Close gh-913.Matthias Jäggli2012-10-211-0/+9
| | | | | .removeClass() //removes all classes, as documented .removeClass(window.nonExistentVariable) // removes nothing
* Fix #12048. Set attributes for XML fragments. Close gh-965.Sai Wong2012-10-201-0/+11
|
* Fix attribute names in aliased form property test. Close gh-951.Jonathan Sampson2012-10-201-1/+1
| | | | Test expects input elements having name='id', name='name', and name='target'. Additionally, these should have id='id', id='name', and id='target' respectively. No element was provided with id='id' or name='id', but rather one element had two name attributes (illegal) with the values 'id' and 'name' respectively.
* Convert all jQuery.removeData(foo, bar, true) calls to jQuery._remove(foo, bar)Rick Waldron2012-10-161-2/+2
| | | | Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
* Enforce style guide in test/unit/attributes.js. Closes gh-985Erick Ruiz de Chavez2012-10-161-275/+365
|
* enforce double quotes via JSHint. Closes gh-975Mike Sherov2012-10-161-2/+2
|
* Fix #12583: Don't ignore disabled property of select-one, close gh-932.Richard Gibson2012-10-031-1/+7
|
* Since .getAttribute() returns strings, we should check for them.Dave Methvin2012-09-301-1/+1
|
* Fix #10943, tabindex not set properly on clone in IE7. Close gh-937.Mike Sherov2012-09-301-18/+23
| | | | This is only a unit test fix because the bug was tangentially fixed by a different commit
* Fix #11547. toLowerCase not work good on XML attributes.Dave Methvin2012-07-111-14/+26
| | | | This was fixed to some extent in gh-724 but there were insufficient test cases. Removing the lowercase completely allows IE 6/7 to work properly since there you need an exact case match for attributes, even in HTML docs. More discussion and test cases in the comments on gh-724.
* Make unit tests friendly to Closure Compiler. Closes gh-845.Chad Killingsworth2012-07-051-29/+29
| | | | | | Conflicts: test/unit/effects.js test/unit/offset.js
* Make removeClass smart enough to remove duplicates. Fixes #11923Rick Waldron2012-06-231-0/+10
|
* Unit tests are linted and passing.Rick Waldron2012-06-211-11/+19
|
* Some work to modularize ajax later on.jaubourg2012-06-111-13/+15
|