Commit Graph

434 Commits

Author SHA1 Message Date
Scott González
512825d358 Widget: Added ability to define how to find options on init. Fixes #6158 - Widget: Ability to define new methods for gathering options on init. 2010-10-06 15:11:49 -04:00
jenters
c3145b691b Tab: modified init to display correct content of misordered div when hash present in url. Fixed #6125 - Incorrect selection of tab on init with hash in url and misordered divs 2010-10-04 10:40:27 -04:00
John Firebaugh
e66cdfcf59 Dialog: Don't change DOM position on open. Fixes #6137 - dialog('open') causes form elements to reset on IE7. 2010-10-04 09:18:46 -04:00
Scott González
c090802cc1 Revert "Dialog: Don't change DOM position on open. Fixes #6137 - dialog('open') causes form elements to reset on IE7."
This reverts commit 67b1db14c9.

Reverting so I can commit again with the proper author.
2010-10-04 09:18:21 -04:00
Scott González
67b1db14c9 Dialog: Don't change DOM position on open. Fixes #6137 - dialog('open') causes form elements to reset on IE7. 2010-10-04 09:15:40 -04:00
Scott González
a2ddfd5107 Widget: Added create event. Fixes #6126 - Widget: Add create event. 2010-09-29 17:36:45 -07:00
Scott González
9d88b565d6 Widget: Added _setOptions method for handling normalized options setting. Fixes #6114 - Widget: Add _setOptions() method. 2010-09-27 11:21:09 -04:00
Scott González
0b6710aed7 Progressbar: Added a complete event. Fixes #3500 - Progressbar callback at the end. 2010-09-27 10:44:04 -04:00
Scott González
adcafce7a2 Autocomplete: Only prevent the default action for enter when a menu item is active. Fixes #6038 - Autocomplete: Allow default behaviour on enter when menu is open but inactive.
Thanks Ján Suchal.
2010-09-27 10:10:00 -04:00
Scott González
0c82f7ec2c Dialog tests: Enabling in TestSwarm. 2010-09-07 12:28:36 -04:00
Scott González
0050f234a8 Dialog: Fixed test for default title. Some browsers were returning an actual non-breaking space and some were returning the string " ". 2010-09-07 09:49:58 -04:00
Scott González
d80e2236f6 Dialog: Reduced size of dialogs in height/width tests. 2010-09-07 08:58:20 -04:00
Scott González
78540e2c0c Tabs: Allow non-latin characters for ids. Fixes #4581 - title attribute for remote tabs does not support foreign languages. 2010-09-03 11:35:10 -04:00
Ben Hollis
4b9d5d1b5b Position: Take margin into account when performing collisions. Fixes #5766 - position: collision should take margin into account. 2010-09-03 10:38:44 -04:00
Scott González
0a0a39f896 Widget: Hook into jQuery.cleanData to auto-destroy widgets. Fixes #6008 - Widget: auto-destroy is broken in jQuery 1.4. 2010-09-03 09:49:29 -04:00
Scott González
e5f3bfce4d Core tests: Enabled TestSwarm. 2010-09-02 11:54:40 -04:00
Scott González
0ab54d87dc Core tests: Fixed object element for focusable/tabbable tests. Fixes #4488 - :focusable and :tabbable are broken with jQuery 1.3.2. 2010-09-02 11:51:24 -04:00
Scott González
23d4eb5372 Core tests: Split .focus() test into two tests to avoid bug in IE with stop() and start(). 2010-09-02 11:14:00 -04:00
Scott González
d8c6c32b87 Core tests: Reordered some elements to avoid some bug in IE. 2010-09-02 10:38:45 -04:00
Scott González
cf545b8ff7 Position tests: Set a line-height on elements with a height less than 10px. Fixes failing tests in IE6. 2010-09-02 09:41:10 -04:00
Scott González
2365d03cef Dialog: Fixed a broken maxHeight test.
The size tests are fragile because they require the browser window to be large enough to contain the dialog.
2010-09-02 08:41:28 -04:00
Scott González
de02aa34a8 Dialog: Set the _isOpen flag before triggering the open event. Fixes #6012 - Dialog: _isOpen flag should be set before triggering open event. 2010-09-02 08:35:40 -04:00
Scott González
95a34593f9 Dialog: Added additional syntax for creating buttons. Fixes #4344 - Dialog: Enhanced Button Option. 2010-08-31 10:17:53 -04:00
jzaefferer
90345b30d8 Testsuite: Revert localhost back to swarm.jquery.org (thanks bugbegone) 2010-08-30 09:42:38 +02:00
jzaefferer
d8bee228b3 Seperated testswarm injection from testsuite extensions, to fix 'failing' testsuites on TestSwarm due to unhandled errors and race conditions 2010-08-29 17:21:39 +02:00
Scott González
79ee6f0d7b Dialog: When using the title attribute, update the title option. Fixes #5877 - Dialog: when using the title attribute, the title option should be updated. 2010-08-27 18:02:11 -04:00
Scott González
1e28040cf3 Widget: Throw errors when calling non-existent methods or methods on uninistantiated widgets. Fixes #5972 - Widget: Throw error for non-existent method calls. 2010-08-27 14:48:17 -04:00
Scott González
52a052be79 Position: Handle $(document) and $(window) for the of option. Fixes #5963 - Position: option 'of' accepts jQuery object unless it wraps document. Fixes #5655 - (Possible) Typo in jquery.ui.position 1.8.1. 2010-08-27 13:34:14 -04:00
Scott González
dd035d1123 Widget tests: Coding standards. 2010-08-26 12:05:40 -04:00
Scott González
306764ca0f Widget: Added more unit tests. 2010-08-26 11:49:07 -04:00
Scott González
edfc8631d1 Widget Tests: Coding standards. 2010-08-26 10:59:51 -04:00
Scott González
001b4b08f0 Widget: Added more unit tests. 2010-08-26 10:50:26 -04:00
Scott González
df786f80eb Widget: Added tests for re-initialization. 2010-08-23 15:35:28 -04:00
Scott González
2838c11ea8 Button: Read disabled attribute from original element if disabled option is null. Fixes #5252 -Button: read disabled option from input elements. 2010-08-18 14:51:30 -04:00
Scott González
9060bf3d09 Buttonset: Ignore hidden buttons. Fixes #5946 - buttonset should ignore buttons that are not :visible. 2010-08-18 10:13:57 -04:00
ph-ausseil
03eea0e39d Tabs: Ignore sublists. Fixes #5893 - Tabs: ability to contain sublists. 2010-08-11 23:06:41 -04:00
Ziling Zhao
c5770c0e84 Dialog: modified so that minWidth is respected. Fixes #5531 - dialog width should be at least minWidth on creation. 2010-07-30 15:14:48 -04:00
Scott González
90caa93a9b Autocomplete: Respect the disabled option. Fixes #5619 - Autocomplete widget keeps looking for remote data even when it's disabled. 2010-07-30 12:59:33 -04:00
Scott González
58ae7ce2fd Revert "Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack"
This reverts commit ea58cd5ac0.
2010-07-30 12:38:18 -04:00
jzaefferer
dffcba0ba6 Update to latest QUnit. 2010-07-30 14:39:54 +02:00
jzaefferer
96977edecc Use pushStack in tooltip's widget method. See #5732 2010-07-30 14:30:43 +02:00
jzaefferer
ea58cd5ac0 Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack 2010-07-30 14:26:58 +02:00
jzaefferer
39f0c1010a Added widget to unit tests index page. 2010-07-30 14:02:55 +02:00
Scott González
61e0aeac7e Dialog: Wrap buttons in a div so we can float the div instead of the individual buttons. Fixes #4529 - dialog buttons are accessed in wrong order using tab. 2010-07-29 20:56:28 -04:00
Scott González
f00c03139b Progressbar: cleanup. 2010-07-29 05:38:24 -04:00
Scott González
94cefc19b0 Tabs: coding standard. 2010-07-28 11:56:54 -04:00
Scott González
c4369bdaec Core Tests: Fixed image reference. 2010-07-22 19:27:37 -04:00
Scott González
fe13fbadd4 Core: Better support for areas in :focusable and :tabbable selectors. Partial fix for #4488 - :focusable and :tabbable are broken with jQuery 1.3.2. 2010-07-22 10:33:42 -04:00
Scott González
4deb824699 Core: Added .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight(). Fixes #5850 - .outerWidth(), .outerHeight(), .innerWidth(), .innerHeight() setters. 2010-07-21 22:17:52 -04:00
Scott González
3f070bdc62 Core: Fixed :focusable and :tabbable selectors for to work with :hidden and :visibile selectors in jQuery 1.3.2+. Still need to handle areas properly. Partial fix for #4488 - :focusable and :tabbable are broken with jQuery 1.3.2. 2010-07-21 22:10:16 -04:00
Scott González
74e0d4f473 Autocomplete: Added appendTo option. Fixes #5836 - Autocomplete: add appendTo option. 2010-07-21 14:54:20 -04:00
Scott González
245b932933 Core: Removed tests for .attr() ARIA override since the override no longer exists. 2010-07-21 11:25:33 -04:00
Scott González
8fa9ed7cbc Tabs: Added tests for select event. 2010-07-20 20:51:09 -04:00
Scott González
612838a151 Autocomplete: Added position option. Fixes #5153 - Autocomplete position option. 2010-07-19 09:28:04 -04:00
Scott González
7e03d4ea9d Tabs: Updated tests. 2010-07-16 20:20:28 -04:00
Scott González
2366a81740 Dialog: Fixed tests for position option. 2010-07-16 08:55:03 -04:00
JustinMacCarthy
05368115bb added empty test for containment by array option 2010-07-16 02:44:08 +08:00
Scott González
f24bc0fb1f Widget: Deep extend options when creating a new plugin. Fixes #5830 - Widget: Using inheritance overwrites the base classes options. 2010-07-15 10:27:21 -04:00
jzaefferer
56aecac811 Updated test for default position option: Reference using-implementation, as QUnit compares functions only by reference 2010-07-15 09:31:36 +02:00
Scott González
96e78a2cb7 Dialog: Updated test for default position option. QUnit still fails the test though. 2010-07-14 16:40:43 -04:00
Ben Hollis
6de9a5368c Dialog: allow setting position with ui.position arguments. Fixes #5459 - Dialog: expose .position() API 2010-07-14 16:29:28 -04:00
Scott González
2c7a9e9ff3 Dialog: Verify that we get a string back from .attr( "title" ) before using the return value. Fixes #5742 - Form field with name="title" moved to title area. 2010-07-14 15:28:01 -04:00
jzaefferer
b376fa8dda Menu: Implemented destroy method and disabled option, modified test to pass html-compare-destroy test and extended default visual test for testing destroy and disabled features 2010-06-18 10:57:20 +02:00
dominiquevincent
4b36cce683 Tabs: unit test to verify that number of panels is equal to number of tabs.
Ticket #5069 - tabs: ui.tabs.add creates two tab panels when using a full URL

Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
2010-05-10 16:36:13 +08:00
dominiquevincent
c821aa680c Menu:the first set of unit test files.
Signed-off-by: dominiquevincent <dominique.vincent@toitl.com>
2010-05-06 17:10:52 +02:00
carhartl
008def00bd added tests for disabled property 2010-05-05 19:16:39 +08:00
jzaefferer
3d692a0831 Slider unit tests: Disabled stale tests on Testswarm 2010-04-28 18:55:29 +02:00
jzaefferer
17f8079bc2 Menu: Extracted menu code from autocomplete, updated all dependencies 2010-04-21 21:01:08 +02:00
jzaefferer
cfa185d962 Merge commit '1.8.1' into tooltip 2010-04-21 20:06:56 +02:00
carhartl
73adda4146 added tests for enable/disable 2010-04-20 03:00:34 +08:00
jzaefferer
84e0ce168f Tooltip: Unit tests for tooltip and a fix to pass through event objects to triggered events 2010-04-15 09:45:35 +02:00
jzaefferer
baa3678477 Unit tests: Disable stale widget tests on testswarm 2010-04-14 20:19:20 +02:00
jzaefferer
9e8e339648 Unit tests: Disable stale interaction tests only on testswarm, but allow them to run locally 2010-04-14 19:02:03 +02:00
jzaefferer
65c225533b Unit tests: Try to disable tests only for testswarm; if this works, I'll modify the other ones as well 2010-04-14 18:53:01 +02:00
jzaefferer
7adf7a9d0b Position unit tests: Add module for testswarm to run all tests 2010-04-14 09:17:11 +02:00
jzaefferer
acfc66e1ab Revert "Position unit tests: Add module for testswarm to run all tests"
This reverts commit 50fe1d04fc.

Should have been commited to master, not tooltip branch.
2010-04-14 09:15:15 +02:00
jzaefferer
50fe1d04fc Position unit tests: Add module for testswarm to run all tests 2010-04-13 15:43:44 +02:00
jzaefferer
c13462b5fd Progressbar unit test: Ignore false vs. false in IE6 AND 7 in aria attributes test 2010-04-13 13:25:09 +02:00
jzaefferer
3280e3356d Autocomplete unit tests: Fix event handling in IE 2010-04-13 12:04:05 +02:00
jzaefferer
59ef373ddc Progressbar unit test: Ignore false vs. false in IE6 in aria attributes test 2010-04-13 11:35:50 +02:00
jzaefferer
094ab5a5d9 Autocomplete and button unit tests: Same remove-role-attr fix as for accordion in destroy-method test 2010-04-13 11:12:01 +02:00
jzaefferer
46b6a298cf Accordion unit tests: And another height-testing hotfix for Safari 3.x 2010-04-13 10:54:54 +02:00
jzaefferer
cfe3be7234 Accordion unit tests: One more height-testing hotfix for Safari 3.x 2010-04-13 10:36:04 +02:00
jzaefferer
4f4843a9fb Accordion unit tests: Remove role attribute to pass Opera 9 and adjust height tests to tolerate different results, as long as they are consistent 2010-04-13 10:13:13 +02:00
jzaefferer
53d9ac2098 Accordion unit tests: Trying some more style resets for getting accordion tests to pass in Safari 3.x, need to commit to see Testswarm results 2010-04-12 16:49:12 +02:00
jzaefferer
f7c68244a0 Accordion unit tests: Cleaned and fixed destroy-method test, working around html rendering inconsistencies 2010-04-12 16:44:37 +02:00
jzaefferer
ad6b4624b0 Accordion unit tests: Cleaned and fixed resize-method test, using #navigation avoids the :visible matching display:none issue in IE8 2010-04-12 16:12:05 +02:00
Richard D. Worth
3291d3951a sortable: don't call the base widget _setOption for disabled to avoid the ui-state-disabled class being added. Fixes #5501 - sortable: disabled should not have the ui-state-disabled class 2010-04-09 14:43:44 -04:00
jzaefferer
c01b3baef9 Autocomplete: Track input changes and fire change-event on blur, along with selected item, if available. Fix for #5490 2010-04-08 12:05:52 +02:00
jzaefferer
0cb9c7d963 Accordion: different useless markup for getting consistent results for the destroy test 2010-04-03 17:48:39 +02:00
jzaefferer
d9c0b626cf Accordion: Trying some styl resets, maybe finding the one for Safari 3.x 2010-04-03 17:35:02 +02:00
jzaefferer
6d5e9b5e7a Accordion: more useless markup for getting consistent results for the destroy test 2010-04-03 17:31:04 +02:00
jzaefferer
7902d3945f Accordion: Improved resize-method test, starting with a fixed container height 2010-04-03 17:27:00 +02:00
jzaefferer
7d1c9cd348 Accordion: Rewrote the resize method test; fails in IE8, probably related to :visible issue 2010-04-03 17:21:31 +02:00
jzaefferer
cf2b0ca0d8 Accordion unit tests: Cleanup 2010-04-03 17:14:58 +02:00
jzaefferer
da0fe50ec5 Accordion unit tests: Use display!=none instead of :visible to work around :visible issue in IE8 2010-04-03 17:10:50 +02:00
jzaefferer
ad5bfc7f60 Accordion unit tests: Refactored state-helper function 2010-04-03 17:08:45 +02:00
Richard D. Worth
9ba45f3b76 tabs: core ajax unit test - more refactoring, seems IE7 needs a quick setTimeout for the first async test to work on first load 2010-04-02 12:43:22 -04:00
Richard D. Worth
178c3b5b6e tabs: core ajax unit test - run two loads as two separate asyncs so IE7 will run remaining tests 2010-04-02 11:59:17 -04:00
Richard D. Worth
5ffd3ab36a Align slider value to step. Fixes #5471 - value not aligned to step when set programatically 2010-04-01 15:00:45 -04:00
jzaefferer
eccb95a8cd Tuning disabled testsuites to run with ?draggable that TestSwarm adds 2010-04-01 09:49:13 +02:00
jzaefferer
ab8d155217 Disabling interaction testsuites until we get to their rewrites; required to get 100% passing on TestSwarm now 2010-04-01 09:24:39 +02:00
jzaefferer
88b909b04e Autocomplete unit tests: Replace unreliable setTimeout with gobal ajax event handler 2010-03-31 16:39:16 +02:00
jzaefferer
c49be0be1a Merge branch 'master' of github.com:jquery/jquery-ui 2010-03-27 10:57:33 +01:00
jzaefferer
d5a6b33466 Accordion unit tets: Replacing destory method test with autocomplete/button approach, comparing before/after html - had to add some classes and empty style attributes to ignore class='' and style='', harmless enough 2010-03-27 08:01:41 +01:00
jzaefferer
11e719f8f8 Updating autocomplete and button unit tests: use equal instead of ok to compare markup, works fine in latest QUnit (escapes all messages correctly) 2010-03-27 08:00:03 +01:00
jzaefferer
b012de18a4 Accordion unit tests: Further normalization of styles to get consistent results across browsers 2010-03-27 07:42:43 +01:00
jzaefferer
ccf85fd3b9 Slider: Removing the placeholder for the animate-option, as we generally don't try to unit-test any animations 2010-03-27 02:01:56 +01:00
jzaefferer
d969e66164 Slider: Test for test-option, setting the value with the value-method; either test is wrong or the implementation ignores the step-option when set programmatically 2010-03-27 02:00:59 +01:00
jzaefferer
3eee15fca8 Slider tests: Split three different change-event tests into three tests, adding start, slide and stop assertions to each, removing placeholders for those other events 2010-03-27 01:44:14 +01:00
Scott González
9541bd0bf2 Position: Use parseInt() to prevent fractional pixel values.
Fixes #5280 - ui.position generates different position in static context.
2010-03-26 19:53:43 -04:00
jzaefferer
9786a19c82 Core unit tests: Include testsuite.js for the testswarm include 2010-03-25 16:40:43 -04:00
jzaefferer
467b6f9bb6 Update testswarm url for new server 2010-03-23 20:23:15 +01:00
Jörn Zaefferer
d7b1044d6c debug comment 2010-03-20 14:38:12 +00:00
Jörn Zaefferer
edcd6823e2 Fixed broken encoding of Préc 2010-03-20 14:37:55 +00:00
Jörn Zaefferer
c98e8e666b core focus-test, call start() after running assertions 2010-03-20 14:37:36 +00:00
Jörn Zaefferer
d7e33373ad replaced pearl with perl 2010-03-20 14:37:18 +00:00
Jörn Zaefferer
63ed4dccce normalize margin/padding on test markup to get reliable height results 2010-03-20 14:32:06 +00:00
Jörn Zaefferer
234c6cbfea global introduced by jQuery 1.3.x is gone, don't need the noglobals fix anymore 2010-03-20 14:31:23 +00:00
Richard Worth
0604e11052 Slider: fixed change event to be triggered by keyup and value and values option setters. Fixes #5367 - slider change event not triggered by keypress 2010-03-17 17:39:29 +00:00
Richard Worth
e84a318e46 Slider unit tests: slider event change 2010-03-17 15:58:22 +00:00
Richard Worth
8b885b3d52 Slider unit tests: slider event change 2010-03-17 15:31:17 +00:00
Richard Worth
5c5f9ad695 whitespace 2010-03-17 15:04:14 +00:00
Richard Worth
c6e48e85ab slider unit tests: corrected some hasClass calls 2010-03-17 15:02:18 +00:00
Richard Worth
92fe5e9225 Fixed #5362 - Buttonset class should be ui-buttonset because buttonset is one word 2010-03-17 13:16:40 +00:00
Richard Worth
bfc180b1ba html pages: added HTML5 meta charset UTF-8 tag, changed DOCTYPE to uppercase 2010-03-12 03:18:34 +00:00
Richard Worth
7898303437 dialog: corrected typo in ui.position property for drag events. Updated unit tests tracking fix of #5291 2010-03-11 20:48:21 +00:00
Scott González
d3cb190377 Button: Fixed tests that check for hidden button elements. 2010-03-11 20:10:26 +00:00
Scott González
5f213572d6 Autocomplete: Append menu to body and reset z-index on every suggestion.
Fixes #5271.
2010-03-11 03:28:00 +00:00
Richard Worth
9483dcdbe6 Externals: updated QUnit to http://github.com/jquery/qunit commit 67ba5a338d836014c24345dc218ab3c9bb63b06e
The various updates to the unit test suites introduced 0 regressions due to update of QUnit, however the addition of jquery.ui.dialog.css to the dialog test suite did introduce one regression, to the dialog option height tests.
Also removed some old crufty woefully incomplete unused and rotted test harnesses.
2010-02-25 11:09:39 +00:00
Richard Worth
2f11730a52 Externals: updated jquery.cookie plugin to http://github.com/carhartl/jquery-cookie commit 6818b83dff89e9cac9e95acd9d78bf0179777e3d 2010-02-24 18:46:56 +00:00
Scott González
9cabe8403e Buttons: Removed the logic for triggering click events on checkboxes and radio buttons. This logic was actually causing the opposite functionality from what we wanted.
Fixes #5195 - .buttonset() prevents change event from being catchable.
2010-02-18 02:43:23 +00:00
Richard Worth
0798b10717 Fixed #5182 - Update to jQuery 1.4.2 2010-02-16 02:39:57 +00:00
Scott González
c9f30818af Dialog: Update the internal flag for whether or not the dialog is open before triggering the close event.
Fixes #5184 - isOpen in dialogclose event is true.
2010-02-16 02:13:38 +00:00
Richard Worth
828bcdd2f0 fixed #5163 - themes: css files need to be renamed to be consistent with js file renames in 1.8a1 2010-02-16 01:38:23 +00:00
Scott González
b20df98b18 Unit Tests: Added autocomplete and button to list of tests.
Fixes #5149 - Button is missing on unit test index page.
2010-02-08 02:10:25 +00:00
Jörn Zaefferer
df391a998f Fix for #5120 - create menu only once and return that element from the widget method, put ui-autocomplete class on menu 2010-02-02 14:04:50 +00:00
Brant Burnett
b91ecde0a7 'Changed 2010-01-29 18:38:21 +00:00
Keith Wood
f214b70889 Datepicker: Fixed conflict between beforeShowDay and getDate
http://forum.jquery.com/topic/several-breaking-changes-in-jquery-ui-1-8rc1
2010-01-29 08:09:03 +00:00
Paul Bakaus
9617d15054 draggable: implemented #4145 - start,drag and stop events should be preventable 2010-01-28 16:35:59 +00:00
Richard Worth
79bd955054 switched to jQuery 1.4.1 2010-01-27 12:29:43 +00:00
Richard Worth
3eaf9daaca Deprecated beforeclose option instead of removing it for now, fixes reopened #4669 - Dialog: beforeclose option should be beforeClose. 2010-01-27 10:31:17 +00:00
Richard Worth
eecbde22a6 eol-style and mime-type 2010-01-20 14:00:14 +00:00
Richard Worth
a1e069759d switched to jQuery 1.4 2010-01-20 13:52:38 +00:00
Scott González
010385b2fa Dialog, position: Removed bgiframe option; always use bgiframe when available.
Fixes #5071 - Remove bgiframe option from all plugins.
2010-01-19 23:25:38 +00:00
Scott González
0ec857a5bd Button: conform to coding standards. 2010-01-18 01:58:15 +00:00
Scott González
7d96a0d096 Widget factory: Changed _create to _init.
Partial fix for #5064 - Widget: make multiple instantiation more useful.
2010-01-15 18:58:20 +00:00
Scott González
1c31a26b56 Replaced stackfix with bgiframe.
Fixes #5061 - Remove stackfix.
2010-01-14 18:09:07 +00:00
Scott González
6024fdf256 Copied autocomplete from dev branch. 2010-01-14 17:23:11 +00:00
Scott González
90fb45dffa Merged in /branches/dev r3251:3620 (excluding autocomplete, modal, tooltip, menu; including menu static tests). 2010-01-07 03:19:50 +00:00