From 478a01582cad26b9868e0048722f0766d981726d Mon Sep 17 00:00:00 2001 From: Chris Kelly Date: Wed, 10 Aug 2011 16:01:44 -0400 Subject: [PATCH 01/63] Typo fix: loose -> lose --- ui/jquery.effects.core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 15d81b4b0d3..daef9cb3011 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -425,7 +425,7 @@ $.extend( $.effects, { $( active ).focus(); } - wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually loose the reference to the wrapped element + wrapper = element.parent(); //Hotfix for jQuery 1.4 since some change in wrap() seems to actually lose the reference to the wrapped element // transfer positioning properties to the wrapper if ( element.css( "position" ) === "static" ) { From c36b43d0ee3cf7e10d82d21e3a4ca6cb954f4c16 Mon Sep 17 00:00:00 2001 From: Jay Oster Date: Thu, 15 Sep 2011 17:02:18 -0700 Subject: [PATCH 02/63] Datepicker: Fix `this` reference in _hideDatepicker(). Fixed #7722 - Datepicker: Does not properly clear current instance when hidden. --- ui/jquery.ui.datepicker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.datepicker.js b/ui/jquery.ui.datepicker.js index 0b6fb2218b3..a5ff08c633b 100644 --- a/ui/jquery.ui.datepicker.js +++ b/ui/jquery.ui.datepicker.js @@ -807,9 +807,10 @@ $.extend(Datepicker.prototype, { if (this._datepickerShowing) { var showAnim = this._get(inst, 'showAnim'); var duration = this._get(inst, 'duration'); + var self = this; var postProcess = function() { $.datepicker._tidyDialog(inst); - this._curInst = null; + self._curInst = null; }; // DEPRECATED: after BC for 1.8.x $.effects[ showAnim ] is not needed From 0b4f80899c79a08319aa35a2fdf3e2743e7169ed Mon Sep 17 00:00:00 2001 From: polomoshnov Date: Fri, 23 Sep 2011 13:57:02 +1200 Subject: [PATCH 03/63] Removed unnecessary code. --- ui/jquery.ui.resizable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.resizable.js b/ui/jquery.ui.resizable.js index 673a8fd753b..baca11f8319 100644 --- a/ui/jquery.ui.resizable.js +++ b/ui/jquery.ui.resizable.js @@ -292,7 +292,7 @@ $.widget("ui.resizable", $.ui.mouse, { if (!trigger) return false; // Calculate the attrs that will be change - var data = trigger.apply(this, [event, dx, dy]), ie6 = $.browser.msie && $.browser.version < 7, csdif = this.sizeDiff; + var data = trigger.apply(this, [event, dx, dy]); // Put this in the mouseDrag handler since the user can start pressing shift while resizing this._updateVirtualBoundaries(event.shiftKey); From f25937b215b1302368a71d69368d4782abdb7bac Mon Sep 17 00:00:00 2001 From: igor milla Date: Tue, 11 Oct 2011 02:09:08 +0300 Subject: [PATCH 04/63] jquery.ui.datepicker-uk.js : Corrected translation of the weekHeader. --- ui/i18n/jquery.ui.datepicker-uk.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/i18n/jquery.ui.datepicker-uk.js b/ui/i18n/jquery.ui.datepicker-uk.js index 07ce206b9ec..31964af4407 100644 --- a/ui/i18n/jquery.ui.datepicker-uk.js +++ b/ui/i18n/jquery.ui.datepicker-uk.js @@ -1,5 +1,6 @@ /* Ukrainian (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Maxim Drogobitskiy (maxdao@gmail.com). */ +/* Corrected by Igor Milla (igor.fsp.milla@gmail.com). */ jQuery(function($){ $.datepicker.regional['uk'] = { closeText: 'Закрити', @@ -13,7 +14,7 @@ jQuery(function($){ dayNames: ['неділя','понеділок','вівторок','середа','четвер','п’ятниця','субота'], dayNamesShort: ['нед','пнд','вів','срд','чтв','птн','сбт'], dayNamesMin: ['Нд','Пн','Вт','Ср','Чт','Пт','Сб'], - weekHeader: 'Не', + weekHeader: 'Тиж', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, From c3c84002898163c3c6625a4fedcddf1434f8e448 Mon Sep 17 00:00:00 2001 From: Marwan Al Jubeh Date: Mon, 17 Oct 2011 19:14:54 +0300 Subject: [PATCH 05/63] Core, Draggable: Fixed #7800 - Draggable helper="clone" doesn't remove the dragged clone if original element is removed upon drop --- ui/jquery.ui.core.js | 2 +- ui/jquery.ui.draggable.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.core.js b/ui/jquery.ui.core.js index 8bcc4c441cb..f0cf89ba76e 100644 --- a/ui/jquery.ui.core.js +++ b/ui/jquery.ui.core.js @@ -255,7 +255,7 @@ $.extend( $.ui, { }, call: function( instance, name, args ) { var set = instance.plugins[ name ]; - if ( !set || !instance.element[ 0 ].parentNode ) { + if ( !set || !instance.element[ 0 ].parentNode || instance.element[ 0 ].parentNode.nodeType === 11 ) { return; } diff --git a/ui/jquery.ui.draggable.js b/ui/jquery.ui.draggable.js index 6475ebd6116..92dd13c0d41 100644 --- a/ui/jquery.ui.draggable.js +++ b/ui/jquery.ui.draggable.js @@ -208,7 +208,7 @@ $.widget("ui.draggable", $.ui.mouse, { } //if the original element is removed, don't bother to continue - if(!this.element[0] || !this.element[0].parentNode) + if((!this.element[0] || !this.element[0].parentNode) && this.options.helper === "original") return false; if((this.options.revert == "invalid" && !dropped) || (this.options.revert == "valid" && dropped) || this.options.revert === true || ($.isFunction(this.options.revert) && this.options.revert.call(this.element, dropped))) { From 3c258bfa3ceab51b7e4c847f1196bd64f6c40cee Mon Sep 17 00:00:00 2001 From: Hans Hillen Date: Wed, 19 Oct 2011 11:41:33 +0200 Subject: [PATCH 06/63] Rewrite popup/menu interaction to make popup managed by menu (adds trigger option to menu). Makes popup agnostic of menu and allows datepicker to use popup (soon). --- demos/menu/contextmenu.html | 12 +-- demos/popup/popup-menu.html | 24 +++--- ui/jquery.ui.menu.js | 31 +++++++- ui/jquery.ui.popup.js | 149 +++++++++++++++++++++++++++--------- 4 files changed, 157 insertions(+), 59 deletions(-) diff --git a/demos/menu/contextmenu.html b/demos/menu/contextmenu.html index e031c2c4c88..961cdd45006 100644 --- a/demos/menu/contextmenu.html +++ b/demos/menu/contextmenu.html @@ -14,17 +14,17 @@ @@ -94,6 +102,8 @@

Slide with relative width

+
+
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index 1e5da211336..e1d52bd8072 100644 --- a/tests/unit/effects/effects_core.js +++ b/tests/unit/effects/effects_core.js @@ -31,59 +31,19 @@ test( "Immediate Return Conditions", function() { equal( ++count, 3, "Both Functions worked properly" ); }); -$.each( $.effects.effect, function( effect ) { - if ( effect === "transfer" ) { - return; - } - module( "effect."+effect ); - asyncTest( "show/hide", function() { - var hidden = $( "div.hidden" ); - expect( 8 ); - - var count = 0, - test = 0; - - function queueTest( fn ) { - count++; - var point = count; - return function( next ) { - test++; - equal( point, test, "Queue function fired in order" ); - if ( fn ) { - fn(); - } else { - setTimeout( next, minDuration ); - } - }; - } - - hidden.queue( queueTest() ).show( effect, minDuration, queueTest(function() { - equal( hidden.css("display"), "block", "Hidden is shown after .show(\"" +effect+ "\", time)" ); - })).queue( queueTest() ).hide( effect, minDuration, queueTest(function() { - equal( hidden.css("display"), "none", "Back to hidden after .hide(\"" +effect+ "\", time)" ); - })).queue( queueTest(function(next) { - deepEqual( hidden.queue(), ["inprogress"], "Only the inprogress sentinel remains"); - start(); - })); - }); - - asyncTest( "relative width & height - properties are preserved", function() { - var test = $("div.relWidth.relHeight"), - width = test.width(), height = test.height(), - cssWidth = test[0].style.width, cssHeight = test[0].style.height; +test( "createWrapper and removeWrapper retain focused elements (#7595)", function() { + expect( 2 ); + var test = $( "div.hidden" ).show(), + input = $( "" ).appendTo( test ).focus(); - expect( 4 ); - test.toggle( effect, minDuration, function() { - equal( test[0].style.width, cssWidth, "Inline CSS Width has been reset after animation ended" ); - equal( test[0].style.height, cssHeight, "Inline CSS Height has been rest after animation ended" ); - start(); - }); - equal( test.width(), width, "Width is the same px after animation started" ); - equal( test.height(), height, "Height is the same px after animation started" ); - }); + $.effects.createWrapper( test ); + equal( document.activeElement, input[ 0 ], "Active element is still input after createWrapper" ); + $.effects.removeWrapper( test ); + equal( document.activeElement, input[ 0 ], "Active element is still input after removeWrapper" ); }); -module("animateClass"); + +module( "effects.core: animateClass" ); asyncTest( "animateClass works with borderStyle", function() { var test = $("div.animateClass"), @@ -150,15 +110,73 @@ asyncTest( "animateClass clears style properties when stopped", function() { start(); }); -test( "createWrapper and removeWrapper retain focused elements (#7595)", function() { - expect( 2 ); - var test = $( "div.hidden" ).show(), - input = $( "" ).appendTo( test ).focus(); +asyncTest( "animateClass: css and class changes during animation are not lost (#7106)", function() { + var test = $( "div.ticket7106" ); - $.effects.createWrapper( test ); - equal( document.activeElement, input[ 0 ], "Active element is still input after createWrapper" ); - $.effects.removeWrapper( test ); - equal( document.activeElement, input[ 0 ], "Active element is still input after removeWrapper" ); -}) + // add a class and change a style property after starting an animated class + test.addClass( "animate", minDuration, animationComplete ) + .addClass( "testClass" ) + .height( 100 ); + + // ensure the class stays and that the css property stays + function animationComplete() { + ok( test.hasClass( "testClass" ), "class change during animateClass was not lost" ); + equal( test.height(), 100, "css change during animateClass was not lost" ); + start(); + } +}); + + +$.each( $.effects.effect, function( effect ) { + if ( effect === "transfer" ) { + return; + } + module( "effect."+effect ); + asyncTest( "show/hide", function() { + var hidden = $( "div.hidden" ); + expect( 8 ); + + var count = 0, + test = 0; + + function queueTest( fn ) { + count++; + var point = count; + return function( next ) { + test++; + equal( point, test, "Queue function fired in order" ); + if ( fn ) { + fn(); + } else { + setTimeout( next, minDuration ); + } + }; + } + + hidden.queue( queueTest() ).show( effect, minDuration, queueTest(function() { + equal( hidden.css("display"), "block", "Hidden is shown after .show(\"" +effect+ "\", time)" ); + })).queue( queueTest() ).hide( effect, minDuration, queueTest(function() { + equal( hidden.css("display"), "none", "Back to hidden after .hide(\"" +effect+ "\", time)" ); + })).queue( queueTest(function(next) { + deepEqual( hidden.queue(), ["inprogress"], "Only the inprogress sentinel remains"); + start(); + })); + }); + + asyncTest( "relative width & height - properties are preserved", function() { + var test = $("div.relWidth.relHeight"), + width = test.width(), height = test.height(), + cssWidth = test[0].style.width, cssHeight = test[0].style.height; + + expect( 4 ); + test.toggle( effect, minDuration, function() { + equal( test[0].style.width, cssWidth, "Inline CSS Width has been reset after animation ended" ); + equal( test[0].style.height, cssHeight, "Inline CSS Height has been rest after animation ended" ); + start(); + }); + equal( test.width(), width, "Width is the same px after animation started" ); + equal( test.height(), height, "Height is the same px after animation started" ); + }); +}); })(jQuery); diff --git a/ui/jquery.effects.core.js b/ui/jquery.effects.core.js index 3dc0a4e6710..a47880e7ff8 100644 --- a/ui/jquery.effects.core.js +++ b/ui/jquery.effects.core.js @@ -224,7 +224,7 @@ $.effects.animateClass = function( value, duration, easing, callback ) { return this.queue( function() { var animated = $( this ), baseClass = animated.attr( "class" ) || "", - finalClass, + applyClassChange, allAnimations = o.children ? animated.find( "*" ).andSelf() : animated; // map the animated objects to store the original styles. @@ -232,18 +232,19 @@ $.effects.animateClass = function( value, duration, easing, callback ) { var el = $( this ); return { el: el, - originalStyleAttr: el.attr( "style" ) || " ", start: getElementStyles.call( this ) }; }); // apply class change - $.each( classAnimationActions, function(i, action) { - if ( value[ action ] ) { - animated[ action + "Class" ]( value[ action ] ); - } - }); - finalClass = animated.attr( "class" ); + applyClassChange = function() { + $.each( classAnimationActions, function(i, action) { + if ( value[ action ] ) { + animated[ action + "Class" ]( value[ action ] ); + } + }); + }; + applyClassChange(); // map all animated objects again - calculate new styles and diff allAnimations = allAnimations.map(function() { @@ -275,16 +276,15 @@ $.effects.animateClass = function( value, duration, easing, callback ) { $.when.apply( $, allAnimations.get() ).done(function() { // set the final class - animated.attr( "class", finalClass ); + applyClassChange(); - // for each animated element + // for each animated element, + // clear all css properties that were animated $.each( arguments, function() { - if ( typeof this.el.attr( "style" ) === "object" ) { - this.el.attr( "style" ).cssText = ""; - this.el.attr( "style" ).cssText = this.originalStyleAttr; - } else { - this.el.attr( "style", this.originalStyleAttr ); - } + var el = this.el; + $.each( this.diff, function(key) { + el.css( key, '' ); + }); }); // this is guarnteed to be there if you use jQuery.speed() From 3b4e73e5f99d5613bf17fe1a6b400b8b1c518d82 Mon Sep 17 00:00:00 2001 From: midlis Date: Tue, 25 Oct 2011 23:41:11 +0100 Subject: [PATCH 15/63] Demos: replace global.js with globalize.js. --- demos/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/index.html b/demos/index.html index f29fc67c720..8fae2409daa 100644 --- a/demos/index.html +++ b/demos/index.html @@ -7,8 +7,8 @@ - - + + From dcac8c1f29cd718c949c1b2c48681a90b0f647ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Fri, 28 Oct 2011 15:58:33 -0400 Subject: [PATCH 16/63] Tests: Added ability to run tests against minified files via ?min=1 --- build/build.xml | 7 ++++ tests/resource_loader.js | 39 +++++++++++++++++++ tests/unit/accordion/accordion.html | 17 +++++--- .../unit/accordion/accordion_deprecated.html | 17 +++++--- tests/unit/autocomplete/autocomplete.html | 21 ++++++---- tests/unit/button/button.html | 17 +++++--- tests/unit/core/core.html | 8 +++- tests/unit/datepicker/datepicker.html | 22 ++++++----- tests/unit/dialog/dialog.html | 25 +++++++----- tests/unit/draggable/draggable.html | 16 ++++++-- tests/unit/droppable/droppable.html | 18 ++++++--- tests/unit/effects/effects.html | 35 ++++++++++------- tests/unit/menu/menu.html | 16 +++++--- tests/unit/position/position.html | 7 +++- tests/unit/position/position_deprecated.html | 7 +++- tests/unit/progressbar/progressbar.html | 17 +++++--- tests/unit/resizable/resizable.html | 19 +++++---- tests/unit/selectable/selectable.html | 16 ++++++-- tests/unit/slider/slider.html | 18 ++++++--- tests/unit/sortable/sortable.html | 16 ++++++-- tests/unit/spinner/spinner.html | 18 ++++++--- tests/unit/tabs/tabs.html | 16 +++++--- tests/unit/tabs/tabs_deprecated.html | 16 +++++--- tests/unit/tooltip/tooltip.html | 18 ++++++--- tests/unit/widget/widget.html | 11 +++++- 25 files changed, 309 insertions(+), 128 deletions(-) create mode 100644 tests/resource_loader.js diff --git a/build/build.xml b/build/build.xml index aef5e5fb314..1e5ab842b92 100644 --- a/build/build.xml +++ b/build/build.xml @@ -148,6 +148,13 @@ + + + + + + + diff --git a/tests/resource_loader.js b/tests/resource_loader.js new file mode 100644 index 00000000000..c8dec488142 --- /dev/null +++ b/tests/resource_loader.js @@ -0,0 +1,39 @@ +(function( $ ) { + +var parts = document.location.search.slice( 1 ).split( "&" ), + length = parts.length, + i = 0, + current, + min; + +for ( ; i < length; i++ ) { + current = parts[ i ].split( "=" ); + if ( current[ 0 ] === "min" ) { + min = current[ 1 ]; + break; + } +} + +function includeStyle( url ) { + document.write( "" ); +} + +function includeScript( url ) { + document.write( "" ); +} + +window.loadResources = min ? + function() { + includeStyle( "build/dist/theme/jquery-ui.min.css" ); + includeScript( "build/dist/jquery-ui.min.js" ); + } : + function( resources ) { + $.each( resources.css || [], function( i, resource ) { + includeStyle( "themes/base/jquery." + resource + ".css" ); + }); + $.each( resources.js || [], function( i, resource ) { + includeScript( resource ); + }); + }; + +})( jQuery ); diff --git a/tests/unit/accordion/accordion.html b/tests/unit/accordion/accordion.html index b3c3b59aca5..ed9b1aa1d3a 100644 --- a/tests/unit/accordion/accordion.html +++ b/tests/unit/accordion/accordion.html @@ -4,16 +4,21 @@ jQuery UI Accordion Test Suite - - - - - - + + diff --git a/tests/unit/accordion/accordion_deprecated.html b/tests/unit/accordion/accordion_deprecated.html index 3a7ad86f20f..f730d8029f0 100644 --- a/tests/unit/accordion/accordion_deprecated.html +++ b/tests/unit/accordion/accordion_deprecated.html @@ -4,13 +4,18 @@ jQuery UI Accordion Test Suite - - - - - - + + diff --git a/tests/unit/autocomplete/autocomplete.html b/tests/unit/autocomplete/autocomplete.html index e5987350b37..70d2ecfd154 100644 --- a/tests/unit/autocomplete/autocomplete.html +++ b/tests/unit/autocomplete/autocomplete.html @@ -4,15 +4,20 @@ jQuery UI Autocomplete Test Suite - - - - - - - - + + diff --git a/tests/unit/button/button.html b/tests/unit/button/button.html index 7fcf07eec39..5ec7e316afb 100644 --- a/tests/unit/button/button.html +++ b/tests/unit/button/button.html @@ -4,13 +4,18 @@ jQuery UI Button Test Suite - - - - - - + + diff --git a/tests/unit/core/core.html b/tests/unit/core/core.html index e2d98880683..3b1dc1fc82b 100644 --- a/tests/unit/core/core.html +++ b/tests/unit/core/core.html @@ -5,8 +5,12 @@ jQuery UI Core Test Suite - - + + diff --git a/tests/unit/datepicker/datepicker.html b/tests/unit/datepicker/datepicker.html index 10802337280..592db53ccaf 100644 --- a/tests/unit/datepicker/datepicker.html +++ b/tests/unit/datepicker/datepicker.html @@ -4,16 +4,20 @@ jQuery UI Datepicker Test Suite - - - - - - - - - + + diff --git a/tests/unit/dialog/dialog.html b/tests/unit/dialog/dialog.html index b35ae582308..94b20a225af 100644 --- a/tests/unit/dialog/dialog.html +++ b/tests/unit/dialog/dialog.html @@ -4,18 +4,23 @@ jQuery UI Dialog Test Suite - - - - - - - - - - + + diff --git a/tests/unit/draggable/draggable.html b/tests/unit/draggable/draggable.html index e5006bf174e..5be71f46065 100644 --- a/tests/unit/draggable/draggable.html +++ b/tests/unit/draggable/draggable.html @@ -5,10 +5,18 @@ jQuery UI Draggable Test Suite - - - - + + diff --git a/tests/unit/droppable/droppable.html b/tests/unit/droppable/droppable.html index 149430bcf6c..abf94f0c7b9 100644 --- a/tests/unit/droppable/droppable.html +++ b/tests/unit/droppable/droppable.html @@ -5,11 +5,19 @@ jQuery UI Droppable Test Suite - - - - - + + diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html index f5dac54c7cf..06023c55d7c 100644 --- a/tests/unit/effects/effects.html +++ b/tests/unit/effects/effects.html @@ -8,20 +8,27 @@ - - - - - - - - - - - - - - + + diff --git a/tests/unit/menu/menu.html b/tests/unit/menu/menu.html index 014123144c7..76f4a7a316f 100644 --- a/tests/unit/menu/menu.html +++ b/tests/unit/menu/menu.html @@ -4,12 +4,18 @@ jQuery UI Menu Test Suite - - - - - + + diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html index a3a97911ca8..17ee20258e3 100644 --- a/tests/unit/position/position.html +++ b/tests/unit/position/position.html @@ -8,7 +8,12 @@ - + + diff --git a/tests/unit/position/position_deprecated.html b/tests/unit/position/position_deprecated.html index c80490f74f6..ee9be189dd9 100644 --- a/tests/unit/position/position_deprecated.html +++ b/tests/unit/position/position_deprecated.html @@ -5,7 +5,12 @@ jQuery UI Position Test Suite - + + diff --git a/tests/unit/progressbar/progressbar.html b/tests/unit/progressbar/progressbar.html index b708af26510..8b55f5a890e 100644 --- a/tests/unit/progressbar/progressbar.html +++ b/tests/unit/progressbar/progressbar.html @@ -4,13 +4,18 @@ jQuery UI Progressbar Test Suite - - - - - - + + diff --git a/tests/unit/resizable/resizable.html b/tests/unit/resizable/resizable.html index f1b2f1bc364..4e886d2fd12 100644 --- a/tests/unit/resizable/resizable.html +++ b/tests/unit/resizable/resizable.html @@ -4,14 +4,19 @@ jQuery UI Resizable Test Suite - - - - - - - + + diff --git a/tests/unit/selectable/selectable.html b/tests/unit/selectable/selectable.html index 4d6150691ca..4f70e8dd448 100644 --- a/tests/unit/selectable/selectable.html +++ b/tests/unit/selectable/selectable.html @@ -5,10 +5,18 @@ jQuery UI Selectable Test Suite - - - - + + diff --git a/tests/unit/slider/slider.html b/tests/unit/slider/slider.html index 3fe3b358852..60d124b7ab6 100644 --- a/tests/unit/slider/slider.html +++ b/tests/unit/slider/slider.html @@ -4,13 +4,19 @@ jQuery UI Slider Test Suite - - - - - - + + diff --git a/tests/unit/sortable/sortable.html b/tests/unit/sortable/sortable.html index 40eed66527a..a20eb7109ee 100644 --- a/tests/unit/sortable/sortable.html +++ b/tests/unit/sortable/sortable.html @@ -5,10 +5,18 @@ jQuery UI Sortable Test Suite - - - - + + diff --git a/tests/unit/spinner/spinner.html b/tests/unit/spinner/spinner.html index 321c16b4cbf..0c01a5f4848 100644 --- a/tests/unit/spinner/spinner.html +++ b/tests/unit/spinner/spinner.html @@ -4,16 +4,22 @@ jQuery UI Spinner Test Suite - - - - - - + + diff --git a/tests/unit/tabs/tabs.html b/tests/unit/tabs/tabs.html index 688b2642ffa..f2a672b2e4e 100644 --- a/tests/unit/tabs/tabs.html +++ b/tests/unit/tabs/tabs.html @@ -4,15 +4,21 @@ jQuery UI Tabs Test Suite - - - - - + + diff --git a/tests/unit/tabs/tabs_deprecated.html b/tests/unit/tabs/tabs_deprecated.html index 322cec1635c..92d9be81c92 100644 --- a/tests/unit/tabs/tabs_deprecated.html +++ b/tests/unit/tabs/tabs_deprecated.html @@ -4,13 +4,19 @@ jQuery UI Tabs Test Suite - - - - - + + diff --git a/tests/unit/tooltip/tooltip.html b/tests/unit/tooltip/tooltip.html index 82070fbfd24..b5e8558e5dc 100644 --- a/tests/unit/tooltip/tooltip.html +++ b/tests/unit/tooltip/tooltip.html @@ -4,13 +4,19 @@ jQuery UI Tooltip Test Suite - - - - - - + + diff --git a/tests/unit/widget/widget.html b/tests/unit/widget/widget.html index 7ae41f2643f..6f4caaa6c62 100644 --- a/tests/unit/widget/widget.html +++ b/tests/unit/widget/widget.html @@ -5,8 +5,15 @@ jQuery UI Widget Test Suite - - + + From 79105eeb5649ad650073d5603d9d50759e979e99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 31 Oct 2011 15:06:05 -0400 Subject: [PATCH 17/63] Tests (Simulate): Whitespace cleanup. --- tests/jquery.simulate.js | 169 +++++++++++++++++++++++---------------- 1 file changed, 99 insertions(+), 70 deletions(-) diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index bb82624d312..9713a3038b1 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -7,123 +7,152 @@ * */ -;(function($) { +;(function( $ ) { $.fn.extend({ - simulate: function(type, options) { + simulate: function( type, options ) { return this.each(function() { - var opt = $.extend({}, $.simulate.defaults, options || {}); - new $.simulate(this, type, opt); + var opt = $.extend( {}, $.simulate.defaults, options ); + new $.simulate( this, type, opt ); }); } }); -$.simulate = function(el, type, options) { +$.simulate = function( el, type, options ) { this.target = el; this.options = options; - if (/^drag$/.test(type)) { - this[type].apply(this, [this.target, options]); + if ( type === "drag" ) { + this[ type ].apply( this, [ this.target, options ] ); } else { - this.simulateEvent(el, type, options); + this.simulateEvent( el, type, options ); } -} +}; -$.extend($.simulate.prototype, { - simulateEvent: function(el, type, options) { - var evt = this.createEvent(type, options); - this.dispatchEvent(el, type, evt, options); +$.extend( $.simulate.prototype, { + simulateEvent: function( el, type, options ) { + var evt = this.createEvent( type, options ); + this.dispatchEvent( el, type, evt, options ); return evt; }, - createEvent: function(type, options) { - if (/^mouse(over|out|down|up|move)|(dbl)?click$/.test(type)) { - return this.mouseEvent(type, options); - } else if (/^key(up|down|press)$/.test(type)) { - return this.keyboardEvent(type, options); + createEvent: function( type, options ) { + if ( /^mouse(over|out|down|up|move)|(dbl)?click$/.test( type ) ) { + return this.mouseEvent( type, options ); + } else if ( /^key(up|down|press)$/.test( type ) ) { + return this.keyboardEvent( type, options ); } }, - mouseEvent: function(type, options) { + mouseEvent: function( type, options ) { var evt; var e = $.extend({ - bubbles: true, cancelable: (type != "mousemove"), view: window, detail: 0, - screenX: 0, screenY: 0, clientX: 0, clientY: 0, - ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, - button: 0, relatedTarget: undefined - }, options); + bubbles: true, + cancelable: (type !== "mousemove"), + view: window, + detail: 0, + screenX: 0, + screenY: 0, + clientX: 0, + clientY: 0, + ctrlKey: false, + altKey: false, + shiftKey: false, + metaKey: false, + button: 0, + relatedTarget: undefined + }, options ); - var relatedTarget = $(e.relatedTarget)[0]; + var relatedTarget = $( e.relatedTarget )[0]; - if ($.isFunction(document.createEvent)) { - evt = document.createEvent("MouseEvents"); - evt.initMouseEvent(type, e.bubbles, e.cancelable, e.view, e.detail, + if ( $.isFunction( document.createEvent ) ) { + evt = document.createEvent( "MouseEvents" ); + evt.initMouseEvent( type, e.bubbles, e.cancelable, e.view, e.detail, e.screenX, e.screenY, e.clientX, e.clientY, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, - e.button, e.relatedTarget || document.body.parentNode); - } else if (document.createEventObject) { + e.button, e.relatedTarget || document.body.parentNode ); + } else if ( document.createEventObject ) { evt = document.createEventObject(); - $.extend(evt, e); + $.extend( evt, e ); evt.button = { 0:1, 1:4, 2:2 }[evt.button] || evt.button; } return evt; }, - keyboardEvent: function(type, options) { + keyboardEvent: function( type, options ) { var evt; - var e = $.extend({ bubbles: true, cancelable: true, view: window, - ctrlKey: false, altKey: false, shiftKey: false, metaKey: false, - keyCode: 0, charCode: 0 - }, options); + var e = $.extend({ + bubbles: true, + cancelable: true, + view: window, + ctrlKey: false, + altKey: false, + shiftKey: false, + metaKey: false, + keyCode: 0, + charCode: 0 + }, options ); - if ($.isFunction(document.createEvent)) { + if ( $.isFunction( document.createEvent ) ) { try { - evt = document.createEvent("KeyEvents"); - evt.initKeyEvent(type, e.bubbles, e.cancelable, e.view, + evt = document.createEvent( "KeyEvents" ); + evt.initKeyEvent( type, e.bubbles, e.cancelable, e.view, e.ctrlKey, e.altKey, e.shiftKey, e.metaKey, - e.keyCode, e.charCode); - } catch(err) { - evt = document.createEvent("Events"); - evt.initEvent(type, e.bubbles, e.cancelable); - $.extend(evt, { view: e.view, - ctrlKey: e.ctrlKey, altKey: e.altKey, shiftKey: e.shiftKey, metaKey: e.metaKey, - keyCode: e.keyCode, charCode: e.charCode + e.keyCode, e.charCode ); + } catch( err ) { + evt = document.createEvent( "Events" ); + evt.initEvent( type, e.bubbles, e.cancelable ); + $.extend(evt, { + view: e.view, + ctrlKey: e.ctrlKey, + altKey: e.altKey, + shiftKey: e.shiftKey, + metaKey: e.metaKey, + keyCode: e.keyCode, + charCode: e.charCode }); } - } else if (document.createEventObject) { + } else if ( document.createEventObject ) { evt = document.createEventObject(); - $.extend(evt, e); + $.extend( evt, e ); } - if ($.browser.msie || $.browser.opera) { + if ( $.browser.msie || $.browser.opera ) { evt.keyCode = (e.charCode > 0) ? e.charCode : e.keyCode; evt.charCode = undefined; } return evt; }, - dispatchEvent: function(el, type, evt) { - if (el.dispatchEvent) { - el.dispatchEvent(evt); - } else if (el.fireEvent) { - el.fireEvent('on' + type, evt); + dispatchEvent: function( el, type, evt ) { + if ( el.dispatchEvent ) { + el.dispatchEvent( evt ); + } else if ( el.fireEvent ) { + el.fireEvent( "on" + type, evt ); } return evt; }, - drag: function(el) { - var self = this, center = this.findCenter(this.target), - options = this.options, x = Math.floor(center.x), y = Math.floor(center.y), - dx = options.dx || 0, dy = options.dy || 0, target = this.target; - var coord = { clientX: x, clientY: y }; - this.simulateEvent(target, "mousedown", coord); + drag: function( el ) { + var self = this, + center = this.findCenter(this.target), + options = this.options, + x = Math.floor( center.x ), + y = Math.floor( center.y ), + dx = options.dx || 0, + dy = options.dy || 0, + target = this.target, + coord = { clientX: x, clientY: y }; + this.simulateEvent( target, "mousedown", coord ); coord = { clientX: x + 1, clientY: y + 1 }; - this.simulateEvent(document, "mousemove", coord); + this.simulateEvent( document, "mousemove", coord ); coord = { clientX: x + dx, clientY: y + dy }; - this.simulateEvent(document, "mousemove", coord); - this.simulateEvent(document, "mousemove", coord); - this.simulateEvent(target, "mouseup", coord); - this.simulateEvent(target, "click", coord); + this.simulateEvent( document, "mousemove", coord ); + this.simulateEvent( document, "mousemove", coord ); + this.simulateEvent( target, "mouseup", coord ); + this.simulateEvent( target, "click", coord ); }, - findCenter: function(el) { - var el = $(this.target), o = el.offset(), d = $(document); + findCenter: function( el ) { + var el = $( this.target ), + o = el.offset(), + d = $( document ); return { x: o.left + el.outerWidth() / 2 - d.scrollLeft(), y: o.top + el.outerHeight() / 2 - d.scrollTop() @@ -131,9 +160,9 @@ $.extend($.simulate.prototype, { } }); -$.extend($.simulate, { +$.extend( $.simulate, { defaults: { - speed: 'sync' + speed: "sync" }, VK_TAB: 9, VK_ENTER: 13, @@ -148,4 +177,4 @@ $.extend($.simulate, { VK_DOWN: 40 }); -})(jQuery); +})( jQuery ); From e31adf039b4adb07b8878435beceaae1a6532d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 31 Oct 2011 17:28:00 -0400 Subject: [PATCH 18/63] Tests (Simulate): Added focus and blur support. --- tests/jquery.simulate.js | 49 +++++++++++++++++++ .../unit/autocomplete/autocomplete_events.js | 8 ++- tests/unit/tooltip/tooltip_events.js | 4 +- 3 files changed, 54 insertions(+), 7 deletions(-) diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index 9713a3038b1..c1d28f982d9 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -24,6 +24,8 @@ $.simulate = function( el, type, options ) { if ( type === "drag" ) { this[ type ].apply( this, [ this.target, options ] ); + } else if ( type === "focus" || type === "blur" ) { + this[ type ](); } else { this.simulateEvent( el, type, options ); } @@ -157,6 +159,53 @@ $.extend( $.simulate.prototype, { x: o.left + el.outerWidth() / 2 - d.scrollLeft(), y: o.top + el.outerHeight() / 2 - d.scrollTop() }; + }, + + focus: function() { + var focusinEvent, + triggered = false, + element = $( this.target ); + + function trigger() { + triggered = true; + } + + element.bind( "focus", trigger ); + element[ 0 ].focus(); + + if ( !triggered ) { + focusinEvent = $.Event( "focusin" ); + focusinEvent.preventDefault(); + element.trigger( focusinEvent ); + element.triggerHandler( "focus" ); + } + element.unbind( "focus", trigger ); + }, + + blur: function() { + var focusoutEvent, + triggered = false, + element = $( this.target ); + + function trigger() { + triggered = true; + } + + element.bind( "blur", trigger ); + element[ 0 ].blur(); + + // Some versions of IE don't actually .blur() on an element - so we focus the body + if ( element[ 0 ].ownerDocument.activeElement === element[ 0 ] ) { + element[ 0 ].ownerDocument.body.focus(); + } + + if ( !triggered ) { + focusoutEvent = $.Event( "focusout" ); + focusoutEvent.preventDefault(); + element.trigger( focusoutEvent ); + element.triggerHandler( "blur" ); + } + element.unbind( "blur", trigger ); } }); diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index 6813cfa71d5..dc945c28635 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -62,15 +62,13 @@ $.each([ } }), menu = element.autocomplete( "widget" ); - - element.focus()[ settings.valueMethod ]( "j" ).keydown(); + + element.simulate( "focus" )[ settings.valueMethod ]( "j" ).keydown(); setTimeout(function() { ok( menu.is( ":visible" ), "menu is visible after delay" ); element.simulate( "keydown", { keyCode: $.ui.keyCode.DOWN } ); element.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } ); - // blurring through jQuery causes a bug in IE 6 which causes the - // autocompletechange event to occur twice - element[0].blur(); + element.simulate( "blur" ); }, 50 ); }); }); diff --git a/tests/unit/tooltip/tooltip_events.js b/tests/unit/tooltip/tooltip_events.js index 963acaf596c..99e1fbd7977 100644 --- a/tests/unit/tooltip/tooltip_events.js +++ b/tests/unit/tooltip/tooltip_events.js @@ -59,7 +59,7 @@ asyncTest( "mixed events", function() { element.one( "tooltipopen", function( event ) { same( event.originalEvent.type, "focusin" ); }); - element[0].focus(); + element.simulate( "focus" ); element.one( "tooltipopen", function() { ok( false, "open triggered while already open" ); @@ -77,7 +77,7 @@ asyncTest( "mixed events", function() { same( event.originalEvent.type, "blur" ); start(); }); - element[0].blur(); + element.simulate( "blur" ); }); }( jQuery ) ); From ea38e15e20bf97163bad043f4f3455f0e2217a4c Mon Sep 17 00:00:00 2001 From: basti Date: Tue, 1 Nov 2011 11:53:06 +0100 Subject: [PATCH 19/63] build: removes disturbing error outputs on which call By calling `which node nodejs` which reports an error even if there's an existing nodejs installation in $PATH. It silently ignores that non existing issue now. Before: http://imagebin.org/181889 After: http://imagebin.org/181890 --- build/build.xml | 2 +- build/build/minify-js.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/build.xml b/build/build.xml index 1e5ab842b92..49568b3ccbb 100644 --- a/build/build.xml +++ b/build/build.xml @@ -320,7 +320,7 @@ - + diff --git a/build/build/minify-js.sh b/build/build/minify-js.sh index c94853fa23d..2633a2f57f7 100755 --- a/build/build/minify-js.sh +++ b/build/build/minify-js.sh @@ -1,3 +1,3 @@ #!/bin/bash dir=$(dirname $0) -`which node nodejs` $dir/uglify.js $1 > $2 +`which node nodejs 2> /dev/null` $dir/uglify.js $1 > $2 From 63d1cbc7ab8b65405afe32e577fc90a0265d11cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 1 Nov 2011 16:26:31 -0400 Subject: [PATCH 20/63] Autocomplete tests: Fixed typo. --- tests/unit/autocomplete/autocomplete_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index dc945c28635..286d902f1f8 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -56,7 +56,7 @@ $.each([ }, change: function( event, ui ) { equal( event.originalEvent.type, "blur", "change originalEvent" ); - deepEqual( ui.item, { label: "Java", value: "Java" }, "chnage ui.item" ); + deepEqual( ui.item, { label: "Java", value: "Java" }, "change ui.item" ); ok( menu.is( ":hidden" ), "menu closed on change" ); start(); } From 183d6a00df531b13c638944796b5bc52ca19ecb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 1 Nov 2011 16:35:49 -0400 Subject: [PATCH 21/63] Tests (Simulate): Make the blur event async to deal with IE's native blur being async. --- tests/jquery.simulate.js | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index c1d28f982d9..adc340049fd 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -194,18 +194,23 @@ $.extend( $.simulate.prototype, { element.bind( "blur", trigger ); element[ 0 ].blur(); - // Some versions of IE don't actually .blur() on an element - so we focus the body - if ( element[ 0 ].ownerDocument.activeElement === element[ 0 ] ) { - element[ 0 ].ownerDocument.body.focus(); - } + // blur events are async in IE + setTimeout(function() { + // IE won't let the blur occur if the window is inactive + if ( element[ 0 ].ownerDocument.activeElement === element[ 0 ] ) { + element[ 0 ].ownerDocument.body.focus(); + } - if ( !triggered ) { - focusoutEvent = $.Event( "focusout" ); - focusoutEvent.preventDefault(); - element.trigger( focusoutEvent ); - element.triggerHandler( "blur" ); - } - element.unbind( "blur", trigger ); + // Firefox won't trigger events if the window is inactive + // IE doesn't trigger events if we had to manually focus the body + if ( !triggered ) { + focusoutEvent = $.Event( "focusout" ); + focusoutEvent.preventDefault(); + element.trigger( focusoutEvent ); + element.triggerHandler( "blur" ); + } + element.unbind( "blur", trigger ); + }, 1 ); } }); From f11dab34cce80f027c74cf604394c05d32c38255 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 1 Nov 2011 18:16:04 -0400 Subject: [PATCH 22/63] Datepicker: Changed Kazakh locale from kz to kk. Fixes #7829 - Kazakhstan language code. --- demos/datepicker/localization.html | 4 ++-- demos/index.html | 2 +- ...{jquery.ui.datepicker-kz.js => jquery.ui.datepicker-kk.js} | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) rename ui/i18n/{jquery.ui.datepicker-kz.js => jquery.ui.datepicker-kk.js} (92%) diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 8fe0256cb95..8e6f0f08c44 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -40,8 +40,8 @@ + - @@ -123,8 +123,8 @@ + - diff --git a/demos/index.html b/demos/index.html index 8fae2409daa..b4031bf99cd 100644 --- a/demos/index.html +++ b/demos/index.html @@ -76,8 +76,8 @@ + - diff --git a/ui/i18n/jquery.ui.datepicker-kz.js b/ui/i18n/jquery.ui.datepicker-kk.js similarity index 92% rename from ui/i18n/jquery.ui.datepicker-kz.js rename to ui/i18n/jquery.ui.datepicker-kk.js index 658c21275d2..dcd6a65df72 100644 --- a/ui/i18n/jquery.ui.datepicker-kz.js +++ b/ui/i18n/jquery.ui.datepicker-kk.js @@ -1,7 +1,7 @@ /* Kazakh (UTF-8) initialisation for the jQuery UI date picker plugin. */ /* Written by Dmitriy Karasyov (dmitriy.karasyov@gmail.com). */ jQuery(function($){ - $.datepicker.regional['kz'] = { + $.datepicker.regional['kk'] = { closeText: 'Жабу', prevText: '<Алдыңғы', nextText: 'Келесі>', @@ -19,5 +19,5 @@ jQuery(function($){ isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; - $.datepicker.setDefaults($.datepicker.regional['kz']); + $.datepicker.setDefaults($.datepicker.regional['kk']); }); From 253b792887bc015088a0e4ecda7df971755bb782 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 2 Nov 2011 08:53:42 -0400 Subject: [PATCH 23/63] Position tests: Changed DOM structure to fix dimensions of within container. --- tests/unit/position/position.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html index 17ee20258e3..115adc3e9ec 100644 --- a/tests/unit/position/position.html +++ b/tests/unit/position/position.html @@ -61,14 +61,14 @@

-
-
-
-
+ +
+
+
From f76873c2d266f6d46b920877bc2c13dc758f1ff7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 2 Nov 2011 09:35:20 -0400 Subject: [PATCH 24/63] Tabs test: Increase delay in load test. --- tests/unit/tabs/tabs_methods.js | 4 ++-- ui/jquery.ui.tabs.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js index ec21e2de790..b62f7bb3a11 100644 --- a/tests/unit/tabs/tabs_methods.js +++ b/tests/unit/tabs/tabs_methods.js @@ -180,7 +180,7 @@ asyncTest( "load", function() { strictEqual( uiPanel[ 0 ], panel[ 0 ], "panel" ); equals( uiPanel.find( "p" ).length, 1, "panel html" ); tabs_state( element, 1, 0, 0, 0, 0 ); - setTimeout( tabsload1, 1 ); + setTimeout( tabsload1, 100 ); }); element.tabs( "load", 3 ); tabs_state( element, 1, 0, 0, 0, 0 ); @@ -192,7 +192,7 @@ asyncTest( "load", function() { }); element.one( "tabsload", function() { ok( true, "tabsload invoked" ); - setTimeout( tabsload2, 1 ); + setTimeout( tabsload2, 100 ); }); element.tabs( "option", "active", 3 ); tabs_state( element, 0, 0, 0, 1, 0 ); diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 4127ddf84a9..5eaab1aae9e 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -561,7 +561,7 @@ $.widget( "ui.tabs", { if ( jqXHR === self.xhr ) { delete self.xhr; } - }); + }, 1 ); }); } From 3de7d8b68ca310f492fc460418f87e3faa590418 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 2 Nov 2011 11:09:00 -0400 Subject: [PATCH 25/63] Position: Check for fraction support. --- ui/jquery.ui.position.js | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/ui/jquery.ui.position.js b/ui/jquery.ui.position.js index 74530b9481d..9a520f8453e 100644 --- a/ui/jquery.ui.position.js +++ b/ui/jquery.ui.position.js @@ -183,6 +183,12 @@ $.fn.position = function( options ) { position.left += myOffset[ 0 ]; position.top += myOffset[ 1 ]; + // if the browser doesn't support fractions, then round for consistent results + if ( !$.support.offsetFractions ) { + position.left = Math.round( position.left ); + position.top = Math.round( position.top ); + } + collisionPosition = { marginLeft: marginLeft, marginTop: marginTop @@ -406,6 +412,45 @@ $.ui.position = { } }; +// fraction support test +(function () { + var testElement, testElementParent, testElementStyle, offsetLeft, i + body = document.getElementsByTagName( "body" )[ 0 ], + div = document.createElement( "div" ); + + //Create a "fake body" for testing based on method used in jQuery.support + testElement = document.createElement( body ? "div" : "body" ); + testElementStyle = { + visibility: "hidden", + width: 0, + height: 0, + border: 0, + margin: 0, + background: "none" + }; + if ( body ) { + jQuery.extend( testElementStyle, { + position: "absolute", + left: "-1000px", + top: "-1000px" + }); + } + for ( i in testElementStyle ) { + testElement.style[ i ] = testElementStyle[ i ]; + } + testElement.appendChild( div ); + testElementParent = body || document.documentElement; + testElementParent.insertBefore( testElement, testElementParent.firstChild ); + + div.style.cssText = "position: absolute; left: 10.7432222px;"; + + offsetLeft = $( div ).offset().left; + $.support.offsetFractions = offsetLeft > 10 && offsetLeft < 11; + + testElement.innerHTML = ""; + testElementParent.removeChild( testElement ); +})(); + // DEPRECATED if ( $.uiBackCompat !== false ) { // offset option From 4f9209feb020bf11c260195e7c8960a33f3a80fa Mon Sep 17 00:00:00 2001 From: kborchers Date: Wed, 2 Nov 2011 12:22:58 -0500 Subject: [PATCH 26/63] Tests: Change the input in the effects test to a text input. This fixes failing tests in IE8 that could not focus the input. --- tests/unit/effects/effects_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index e1d52bd8072..aca4c469486 100644 --- a/tests/unit/effects/effects_core.js +++ b/tests/unit/effects/effects_core.js @@ -34,7 +34,7 @@ test( "Immediate Return Conditions", function() { test( "createWrapper and removeWrapper retain focused elements (#7595)", function() { expect( 2 ); var test = $( "div.hidden" ).show(), - input = $( "" ).appendTo( test ).focus(); + input = $( "" ).appendTo( test ).focus(); $.effects.createWrapper( test ); equal( document.activeElement, input[ 0 ], "Active element is still input after createWrapper" ); From 95d7314bd9bd9d5ca8983d646a51ee0fb51a1149 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 3 Nov 2011 08:45:04 -0400 Subject: [PATCH 27/63] Tests: Removed visual tests for plugins that are being rewritten. --- tests/visual/datepicker/calendar.gif | Bin 127 -> 0 bytes tests/visual/datepicker/datepicker.html | 23 - .../datepicker/datepicker_multi_inline.html | 113 --- .../datepicker/datepicker_ticket_4071.html | 96 --- .../datepicker/datepicker_ticket_4240.html | 55 -- .../datepicker/datepicker_ticket_4443.html | 38 - .../datepicker/datepicker_ticket_5676.html | 30 - .../datepicker/datepicker_ticket_7552.html | 23 - tests/visual/datepicker/multimonth.html | 23 - tests/visual/datepicker/viewport.html | 278 ------- tests/visual/draggable/draggable.html | 24 - tests/visual/draggable/draggable.scroll.html | 152 ---- .../draggable_option_containment_array.html | 26 - .../draggable_option_cursorAt_object.html | 26 - .../draggable_option_handle_selector.html | 28 - .../draggable_option_iframeFix_false.html | 30 - .../draggable_option_iframeFix_selector.html | 30 - .../draggable_option_iframeFix_true.html | 30 - tests/visual/droppable/droppable.css | 3 - tests/visual/droppable/droppable.html | 33 - .../droppable_option_accept_default.html | 40 - .../droppable_option_accept_function.html | 43 - .../droppable_option_accept_selector.html | 41 - .../droppable/droppable_ticket_4087.html | 51 -- .../droppable/droppable_ticket_4088.html | 69 -- tests/visual/resizable/images/test.png | Bin 2499 -> 0 bytes tests/visual/resizable/resizable.html | 24 - .../resizable_option_alsoResize_child.html | 48 -- .../resizable_option_aspectRatio_0.5.html | 29 - .../resizable_option_aspectRatio_1.0.html | 29 - .../resizable_option_aspectRatio_1.5.html | 29 - ...on_aspectRatio_preserve_maxHeight_150.html | 30 - ...ion_aspectRatio_preserve_maxWidth_150.html | 30 - ...ion_aspectRatio_preserve_minHeight_50.html | 30 - ...tion_aspectRatio_preserve_minWidth_50.html | 30 - ...option_aspectRatio_preserve_w100xh100.html | 29 - ..._option_aspectRatio_preserve_w100xh50.html | 29 - ..._option_aspectRatio_preserve_w50xh100.html | 29 - .../resizable/resizable_ticket_3053.html | 37 - .../resizable/resizable_ticket_4199.html | 37 - .../resizable/resizable_ticket_4217.html | 46 -- .../resizable/resizable_ticket_4940.html | 32 - .../resizable/resizable_ticket_5335.html | 52 -- tests/visual/selectable/selectable.html | 40 - .../selectable/selectable_ticket_4341.html | 46 -- tests/visual/sortable/sortable.html | 40 - .../sortable/sortable_massive_scale.html | 757 ------------------ .../sortable_option_revert_false.html | 31 - .../sortable/sortable_option_revert_true.html | 31 - .../visual/sortable/sortable_ticket_4231.html | 78 -- .../visual/sortable/sortable_ticket_5355.html | 58 -- 51 files changed, 2956 deletions(-) delete mode 100644 tests/visual/datepicker/calendar.gif delete mode 100644 tests/visual/datepicker/datepicker.html delete mode 100644 tests/visual/datepicker/datepicker_multi_inline.html delete mode 100644 tests/visual/datepicker/datepicker_ticket_4071.html delete mode 100644 tests/visual/datepicker/datepicker_ticket_4240.html delete mode 100644 tests/visual/datepicker/datepicker_ticket_4443.html delete mode 100644 tests/visual/datepicker/datepicker_ticket_5676.html delete mode 100644 tests/visual/datepicker/datepicker_ticket_7552.html delete mode 100644 tests/visual/datepicker/multimonth.html delete mode 100644 tests/visual/datepicker/viewport.html delete mode 100644 tests/visual/draggable/draggable.html delete mode 100644 tests/visual/draggable/draggable.scroll.html delete mode 100644 tests/visual/draggable/draggable_option_containment_array.html delete mode 100644 tests/visual/draggable/draggable_option_cursorAt_object.html delete mode 100644 tests/visual/draggable/draggable_option_handle_selector.html delete mode 100644 tests/visual/draggable/draggable_option_iframeFix_false.html delete mode 100644 tests/visual/draggable/draggable_option_iframeFix_selector.html delete mode 100644 tests/visual/draggable/draggable_option_iframeFix_true.html delete mode 100644 tests/visual/droppable/droppable.css delete mode 100644 tests/visual/droppable/droppable.html delete mode 100644 tests/visual/droppable/droppable_option_accept_default.html delete mode 100644 tests/visual/droppable/droppable_option_accept_function.html delete mode 100644 tests/visual/droppable/droppable_option_accept_selector.html delete mode 100644 tests/visual/droppable/droppable_ticket_4087.html delete mode 100644 tests/visual/droppable/droppable_ticket_4088.html delete mode 100644 tests/visual/resizable/images/test.png delete mode 100644 tests/visual/resizable/resizable.html delete mode 100644 tests/visual/resizable/resizable_option_alsoResize_child.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_0.5.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_1.0.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_1.5.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html delete mode 100644 tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html delete mode 100644 tests/visual/resizable/resizable_ticket_3053.html delete mode 100644 tests/visual/resizable/resizable_ticket_4199.html delete mode 100644 tests/visual/resizable/resizable_ticket_4217.html delete mode 100644 tests/visual/resizable/resizable_ticket_4940.html delete mode 100644 tests/visual/resizable/resizable_ticket_5335.html delete mode 100644 tests/visual/selectable/selectable.html delete mode 100644 tests/visual/selectable/selectable_ticket_4341.html delete mode 100644 tests/visual/sortable/sortable.html delete mode 100644 tests/visual/sortable/sortable_massive_scale.html delete mode 100644 tests/visual/sortable/sortable_option_revert_false.html delete mode 100644 tests/visual/sortable/sortable_option_revert_true.html delete mode 100644 tests/visual/sortable/sortable_ticket_4231.html delete mode 100644 tests/visual/sortable/sortable_ticket_5355.html diff --git a/tests/visual/datepicker/calendar.gif b/tests/visual/datepicker/calendar.gif deleted file mode 100644 index 8526cf5d19a915aa8073cf344873c4505491970d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 127 zcmZ?wbhEHb6krfwSj51v)Yr?)cd3`J*V1K6uU)?O9}E~67!-f9FfuT(G3WrDe9t*l - - - - Datepicker Visual Test : Default - - - - - - - - - - -
- - - diff --git a/tests/visual/datepicker/datepicker_multi_inline.html b/tests/visual/datepicker/datepicker_multi_inline.html deleted file mode 100644 index 844d7e1e9fd..00000000000 --- a/tests/visual/datepicker/datepicker_multi_inline.html +++ /dev/null @@ -1,113 +0,0 @@ - - - - - Simple Datepicker - - - - - - - - - - -
    -
  • - - - - - Datepicker Simple -
    - -
    -
  • -
  • - - - - - Datepicker Multi -
    - -
    -
  • -
  • - - - - - Datepicker Inline -
    -
  • -
  • - Datepicker disabled input -
    - -
    -
  • -
  • - Datepicker - positioned bottom-right -
    - -
    -
  • -
- - - diff --git a/tests/visual/datepicker/datepicker_ticket_4071.html b/tests/visual/datepicker/datepicker_ticket_4071.html deleted file mode 100644 index 0e4bd402a5d..00000000000 --- a/tests/visual/datepicker/datepicker_ticket_4071.html +++ /dev/null @@ -1,96 +0,0 @@ - - - - - Datepicker Visual Test : Datepicker ticket #4071 - - - - - - - - - - - -

#4071 - 'length' is null or not an object

- -

Summary

-In Internet Explorer, when a event such as click on one element causes a change event on another element to trigger programmatically, any change event handler that was bound to that second element through onchange gets the click event instead of the change event. - -

Steps to reproduce

-

-To demonstrate the issue, do one of the following: -

-
    -
  • Click the input to open the Datepicker, then select a date
  • -
  • Or press a number in the text field and blur
  • -
  • Or click a button below
  • -
-

-Each will trigger change on the text input. The input has a handler bound in three different ways. Notice the difference when pressing a number in the input and bluring versus either selecting a date or pressing one of the first three buttons. In Internet Explorer, when the issue is present, 2 out of the three event objects are of type 'click' instead of 'change' and have the wrong corresponding srcElement/target when the datepicker or one of the first three buttons are clicked. -

- - - - - - - - - diff --git a/tests/visual/datepicker/datepicker_ticket_4240.html b/tests/visual/datepicker/datepicker_ticket_4240.html deleted file mode 100644 index 3015d47bffe..00000000000 --- a/tests/visual/datepicker/datepicker_ticket_4240.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - Datepicker Visual Test : Datepicker ticket #4240 - - - - - - - - - - -

#4240 - Datepicker destroy affects other datepickers

- - - -

- - -

- - -

- - -

- - - - - diff --git a/tests/visual/datepicker/datepicker_ticket_4443.html b/tests/visual/datepicker/datepicker_ticket_4443.html deleted file mode 100644 index 3df9df50d2a..00000000000 --- a/tests/visual/datepicker/datepicker_ticket_4443.html +++ /dev/null @@ -1,38 +0,0 @@ - - - - - Datepicker Visual Test : Datepicker ticket #4443 - - - - - - - - - - - - - -

#4443 - Datepicker's vertical position in thickbox is wrong

- -

- - - - - diff --git a/tests/visual/datepicker/datepicker_ticket_5676.html b/tests/visual/datepicker/datepicker_ticket_5676.html deleted file mode 100644 index 46458ebf942..00000000000 --- a/tests/visual/datepicker/datepicker_ticket_5676.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Datepicker Visual Test : Datepicker ticket #5676 - - - - - - - - - - -

#5676 - DatePicker Dialog defaultDate incorrect behaviour

- -
- - - - diff --git a/tests/visual/datepicker/datepicker_ticket_7552.html b/tests/visual/datepicker/datepicker_ticket_7552.html deleted file mode 100644 index db24207b238..00000000000 --- a/tests/visual/datepicker/datepicker_ticket_7552.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - Datepicker Visual Test : Datepicker ticket #7552 - - - - - - - - - - -

#7552 - A Datepicker created on a detached div has zero height

- - - diff --git a/tests/visual/datepicker/multimonth.html b/tests/visual/datepicker/multimonth.html deleted file mode 100644 index d497847f412..00000000000 --- a/tests/visual/datepicker/multimonth.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - Datepicker Visual Test : Default - - - - - - - - - - -
- - - diff --git a/tests/visual/datepicker/viewport.html b/tests/visual/datepicker/viewport.html deleted file mode 100644 index 8ef9d4b19e1..00000000000 --- a/tests/visual/datepicker/viewport.html +++ /dev/null @@ -1,278 +0,0 @@ - - - - - Mon 26JanTest application details - by chrisv from #3863 (Viewport test) - - - - - - - - - - - - -
-
-

Mon 26JanTest

-

Application progress

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
-
Applic’n rec’d
Stage 1 mtg - - @ - -
  - -
  - - Yes - - No
  - - Yes - - No
 
- - -
Stage 2 mtg - - @ - -
- - -
- - -
- -
- - - Yes - - - No
- - - Yes - - No
- - - - Yes - - No
- - - Yes - - No
- - - - Yes - - No
- - - Yes - - - No
- - - Yes - - No
- - - - Yes - - No
- - - Yes - - No
Site visit - - @ - -
- - -
- - -
- - - Yes - - - No
Director interview - - @ - - -
- - -
- - - Yes - - - No
- - - Yes - - No
- - - - Yes - - No
- - - Yes - - No
- - - - Yes - - No
- - - Yes - - - No
- - -
-
-
- -
- - - \ No newline at end of file diff --git a/tests/visual/draggable/draggable.html b/tests/visual/draggable/draggable.html deleted file mode 100644 index b336847da49..00000000000 --- a/tests/visual/draggable/draggable.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - Draggable Visual Test : Default - - - - - - - - - - -
-

Draggable

-
- - diff --git a/tests/visual/draggable/draggable.scroll.html b/tests/visual/draggable/draggable.scroll.html deleted file mode 100644 index 6cf3099fe84..00000000000 --- a/tests/visual/draggable/draggable.scroll.html +++ /dev/null @@ -1,152 +0,0 @@ - - - - - Draggable Scroll Tests - - - - - - - - - - - - - -
Simple draggable
-
- - -
-
(Broken in IE)
-
-
- -
-
-
-
- -
-
Absolute
-
-
- -
-
Absolute
-
-
- -
-
Fixed
-
-
- -
-
Fixed
-
-
- - - -
-
-
Relative
-
-
- -
- -
-
-
Relative
-
-
-
- -
-
-
Relative (Broken in IE)
-
-
- -
- -
-
-
Relative
-
-
-
- - - -
-
-
Absolute
-
-
- -
- -
-
-
Absolute
-
-
-
- -
-
-
Absolute
-
-
- -
- -
-
-
Absolute
-
-
-
- - - diff --git a/tests/visual/draggable/draggable_option_containment_array.html b/tests/visual/draggable/draggable_option_containment_array.html deleted file mode 100644 index f0ee5b261a3..00000000000 --- a/tests/visual/draggable/draggable_option_containment_array.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Draggable Visual Test : Draggable option containment array - - - - - - - - - - -
-

Draggable

-
- - diff --git a/tests/visual/draggable/draggable_option_cursorAt_object.html b/tests/visual/draggable/draggable_option_cursorAt_object.html deleted file mode 100644 index 6243d9b689b..00000000000 --- a/tests/visual/draggable/draggable_option_cursorAt_object.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - Draggable Visual Test : Draggable option cursorAt object - - - - - - - - - - -
-

Draggable

-
- - diff --git a/tests/visual/draggable/draggable_option_handle_selector.html b/tests/visual/draggable/draggable_option_handle_selector.html deleted file mode 100644 index d30c41f375d..00000000000 --- a/tests/visual/draggable/draggable_option_handle_selector.html +++ /dev/null @@ -1,28 +0,0 @@ - - - - - Draggable Visual Test : Draggable option handle selector - - - - - - - - - - -
-

Draggable

-

Handle

-

Not handle

-
- - diff --git a/tests/visual/draggable/draggable_option_iframeFix_false.html b/tests/visual/draggable/draggable_option_iframeFix_false.html deleted file mode 100644 index 8f8689bfed2..00000000000 --- a/tests/visual/draggable/draggable_option_iframeFix_false.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Draggable Visual Test : Draggable option iframeFix false - - - - - - - - - - -
-

Draggable

-
- - - - - diff --git a/tests/visual/draggable/draggable_option_iframeFix_selector.html b/tests/visual/draggable/draggable_option_iframeFix_selector.html deleted file mode 100644 index 0e485fe3f26..00000000000 --- a/tests/visual/draggable/draggable_option_iframeFix_selector.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Draggable Visual Test : Draggable option iframeFix selector - - - - - - - - - - -
-

Draggable

-
- - - - - diff --git a/tests/visual/draggable/draggable_option_iframeFix_true.html b/tests/visual/draggable/draggable_option_iframeFix_true.html deleted file mode 100644 index a9eb6d8b232..00000000000 --- a/tests/visual/draggable/draggable_option_iframeFix_true.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Draggable Visual Test : Draggable option iframeFix true - - - - - - - - - - -
-

Draggable

-
- - - - - diff --git a/tests/visual/droppable/droppable.css b/tests/visual/droppable/droppable.css deleted file mode 100644 index cfe663ecead..00000000000 --- a/tests/visual/droppable/droppable.css +++ /dev/null @@ -1,3 +0,0 @@ -#draggables * { width: 100px; height: 20px; display: block; margin-bottom: 1em; background: #abc; } -#droppable { width: 200px; } -#droppable * { margin: 0.8em; padding: 0.4em; } diff --git a/tests/visual/droppable/droppable.html b/tests/visual/droppable/droppable.html deleted file mode 100644 index 0f4edfdd2d2..00000000000 --- a/tests/visual/droppable/droppable.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - Droppable Visual Test : Default - - - - - - - - - - - -
-

Draggable

-
-
-

Droppable

-
- - diff --git a/tests/visual/droppable/droppable_option_accept_default.html b/tests/visual/droppable/droppable_option_accept_default.html deleted file mode 100644 index 8e77a012119..00000000000 --- a/tests/visual/droppable/droppable_option_accept_default.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Droppable Visual Test : Draggable option accept default - - - - - - - - - - - - - -
-
Draggable div
-

Draggable p

- Draggable span
- - -
-

Droppable

-
- - diff --git a/tests/visual/droppable/droppable_option_accept_function.html b/tests/visual/droppable/droppable_option_accept_function.html deleted file mode 100644 index 9dbdcdffa79..00000000000 --- a/tests/visual/droppable/droppable_option_accept_function.html +++ /dev/null @@ -1,43 +0,0 @@ - - - - - Droppable Visual Test : Draggable option accept function - - - - - - - - - - - - - -
-
Draggable div
-

Draggable p

- Draggable span
- - -
-

Droppable

-
- - diff --git a/tests/visual/droppable/droppable_option_accept_selector.html b/tests/visual/droppable/droppable_option_accept_selector.html deleted file mode 100644 index 4733d1bdf77..00000000000 --- a/tests/visual/droppable/droppable_option_accept_selector.html +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Droppable Visual Test : Draggable option accept selector - - - - - - - - - - - - - -
-
Draggable div
-

Draggable p

- Draggable span
- - -
-

Droppable

-
- - diff --git a/tests/visual/droppable/droppable_ticket_4087.html b/tests/visual/droppable/droppable_ticket_4087.html deleted file mode 100644 index f3be61b1b51..00000000000 --- a/tests/visual/droppable/droppable_ticket_4087.html +++ /dev/null @@ -1,51 +0,0 @@ - - - - - Droppable Visual Test - Droppable ticket 4087 - - - - - - - - - - - - - -

-Ticket #4087 - Removing ui.draggable immediately after the drop callback raises an error. -

-

-TEST: Drag 'Drag me' to the div labelled 'Drop here' -

- -
-

Drag me

-
- -
-

Drop here

-
- -

-ASSERT: No exception '$(this).data("draggable") is undefined' -

- - - diff --git a/tests/visual/droppable/droppable_ticket_4088.html b/tests/visual/droppable/droppable_ticket_4088.html deleted file mode 100644 index 54cf3ffe209..00000000000 --- a/tests/visual/droppable/droppable_ticket_4088.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - Droppable Visual Test - Droppable ticket 4088 - - - - - - - - - - - - - -

-Ticket #4088 - Unable to remove() ui.draggable (sortable item) immediately after the drop callback. -

-

-TEST: Drag 'Special Item' to the div labelled 'Drop here' -

-

-TEST: Drag a 'Normal Item' to the div labelled 'Drop here' -

- -
    -
  • Special Item
  • -
  • Normal Item 1
  • -
  • Normal Item 2
  • -
  • Normal Item 3
  • -
- -
-

Trash Drop here

-
- -

-ASSERT: The dropped item is removed from the original list and the following text does not appear: "I was dropped and removed, but still here I am!" -

- - - diff --git a/tests/visual/resizable/images/test.png b/tests/visual/resizable/images/test.png deleted file mode 100644 index 61242c62b0778bd35378db687a564e30597f953f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2499 zcmV;!2|V_RP)ONiV&5&cOjt)gRC;#QX|Fc2=%6y(`9KU-N|HNzmusWf4ETwK6Q$i;;FemQr z?sZiq|L4R1$8?fpAOFdD|EMPaxlrZh<=2N0M?EjMcNhQn_y4LY|IUQ}yHo0s4FBe} z%7GKs*4F?3|D>d(IyyR9T3TjiX3WgYLPA2BnVE}=i%LpL>yiw}fE4zZ3afD%-;57) zb90oGlu}Yst*xzHNGit0#s%@*?$XWeoSz{`I$gQcL@i{W+|4`WMNb4e=TGo3t7lQ7P63qEMy^z?&%q&o2SsQ z#pvKX453kr(1Y(GHfeFrTnNXC2R-#A|FJ~`7elgI-C5#gg~emL*{$iYzka<6@I&aV zPA_V$ZMSh7h}N(Lp>Ch*+8f018d(Ezj3758NKz!(CNJqO_EKywXhl<&ETL&_3DWxi zZ|z!)&qyR?S_lf{JXz#mL>>;$3@KYoAmQt|IIJ1t;l+mG=`bzE|C4Y#kK~8z_2P4F z1N^XdPXrk_!ZSlUi+n$7oJfJetqjCR)JqDe-xU;=JIUYS5dpTc525FiUka5&zkzzjPCVfqAI40@Tn ze!IS&3r?dn#X}AexR9k2J|-f@1v>Zl9gyL|Qh`)>@*ozQaZ%4u6pNwocV?s)VFn+; zk5!W5!Y7QSaDiUbNolm~O5l@_8aE0M;yHy_Y{td)c823T8}_kq_?rzbjIh9zH65IY zN|5y-5qr>8A|@v^G0m`HwB+DR>f8VzH14IcLv^ zWuSIFMyazQ7xfQnE(Y8CtuM_zllmgW>me5tML7ojn}6f)EpIh>@$R8m$SKNSe6r9zg!;t-1pT(l%EkYEPG zp-Eg!A$3RrTyvd}A}!K5w-8zZ(}Kg&Q{;3uMP*Tei)#%RbpaDD60&M@hRvQsN0k<_ zdNJnEWI80oGFB0dGtX0U(H1b^g45_9Yq*GVXNnovlMbnzX)z_1mg?dLFR8-CT}zcy z>+ernOKcnHg^TD17ff?vNpoT+NoNElR$!911VZT|u?iQ%zNjzjIWF$9RwM0f(BwbX zlv)ln1=87+52^T>G$inxC54v{pGsWRy8D@f{VpZLe*2hS47f;XvYet^*6kyR2k!gk zAjg8ck|S}Vl5aSv#6_(qJlxuHsfE@uxj>~wFE2i7FF3#qxM-qS3a|-OXe!s(6*cC2LyCB1U#{{m|#Rc}NR~S@EjbcoYaFNJ|RAi!{RH$cCGsI$JF8(eY!q}Ux zZHshz)DmsILB_>_L8Ub=UV)#?d@c}nkX`7=twNUZ!G)$=3N=xa;xbKw!96$xBSY_K zu&gNF?+7Z8T`mnOEenIvBaPF5N?kIYe?dada~4BqgTkfRm}^Gi@d{jg{U8Ek3nT6A zZr$u$^;gfo425+5WpJkz;Zms-fu67!yNp6{NKJI3m{$0nii_~}DN_Skr1olUrG=Fm zGabO0RWe(yBhw`{?o>C5MI|m?JqqQA7E|MDB)E9^PVYG?W-^|zGB_NnqL{6cD2NF+ zxHPN4#mh@UM*Ws4alR@!J{f$sgl2KAWFWoFlw|m2k(GdXSvmt48FN8#feXF9Dk@NY zeWUe@flnwuC7NMrO>p!KR7{O2^IRtv6}fo%&x(w@KUe|#H=`95hh?5URdDh}?5z2S z;RlKSvvU}DY7$fR^5X_+GcJG^2RNbc?b6ujy(5*^<@W|(4;@KU{m3PV1j3w2m;=u_ zc4tITz#vV*h%)^QPBtot~fF?2T+2T|b%p%^`mF|KmHX5!m)< zFzB}1H9>^HMTuM7I$O_`3*eLHdou9a=z5QZ&z1||b*&T!`YMZuez>B-`?q~_d2JgA z;_&oG8D`n+LqZ?~LI@*WjGKeOwDBPUJEo9RPK7>b3x(1LZU6swM-{<@QX8s-61pGk zGVo(AAA6E!=zgg9Kvdtc3wnNbK*dRUbT(|{G2IUcG}3T!I|*pbUAv&`?TbH6COvJA zf3}!Dk!FZ;J;stWQ2|dJr~(iu0H~-2AR6V2as@?N0MRhOISsd#%+x{g1p`}xxro0BPBPqtjZwJ7y - - - - Resizable Visual Test : Default - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_alsoResize_child.html b/tests/visual/resizable/resizable_option_alsoResize_child.html deleted file mode 100644 index e738ff77ad1..00000000000 --- a/tests/visual/resizable/resizable_option_alsoResize_child.html +++ /dev/null @@ -1,48 +0,0 @@ - - - - - Resizable Visual Test : Resizable option alsoResize child - - - - - - - - - - - - -
- parent -
- child -
- parent -
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_0.5.html b/tests/visual/resizable/resizable_option_aspectRatio_0.5.html deleted file mode 100644 index 67ab9d2c562..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_0.5.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 0.5 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_1.0.html b/tests/visual/resizable/resizable_option_aspectRatio_1.0.html deleted file mode 100644 index 954b0f34395..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_1.0.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.0 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_1.5.html b/tests/visual/resizable/resizable_option_aspectRatio_1.5.html deleted file mode 100644 index a7494791e82..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_1.5.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.5 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html deleted file mode 100644 index d22821a8f1b..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxHeight_150.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.0 maxHeight 150 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html deleted file mode 100644 index d88c26e8f38..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_maxWidth_150.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.0 maxWidth 150 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html deleted file mode 100644 index 6bc7761664d..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_minHeight_50.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.0 minHeight 50 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html deleted file mode 100644 index a797b303415..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_minWidth_50.html +++ /dev/null @@ -1,30 +0,0 @@ - - - - - Resizable Visual Test : Resizable option aspectRatio 1.0 maxWidth 50 - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html deleted file mode 100644 index d2b7a07b5e4..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh100.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Default - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html deleted file mode 100644 index 76ba1cda125..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w100xh50.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Default - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html b/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html deleted file mode 100644 index 45ba3c2c662..00000000000 --- a/tests/visual/resizable/resizable_option_aspectRatio_preserve_w50xh100.html +++ /dev/null @@ -1,29 +0,0 @@ - - - - - Resizable Visual Test : Default - - - - - - - - - - - - -
Resizable
- - - diff --git a/tests/visual/resizable/resizable_ticket_3053.html b/tests/visual/resizable/resizable_ticket_3053.html deleted file mode 100644 index 8463e25bc25..00000000000 --- a/tests/visual/resizable/resizable_ticket_3053.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Resizable Visual Test : Resizable ticket #3053 - - - - - - - - - - - - -

#3053 - when resizing a image a row of pixels can disappear

- - - - - diff --git a/tests/visual/resizable/resizable_ticket_4199.html b/tests/visual/resizable/resizable_ticket_4199.html deleted file mode 100644 index 3933fb8db13..00000000000 --- a/tests/visual/resizable/resizable_ticket_4199.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - - Resizable Visual Test : Resizable ticket #4199 - - - - - - - - - - - - -

#4199 - resizable with containment boundary - aspectRatio breaks.

- -
- -
Resizable
- -
- - - diff --git a/tests/visual/resizable/resizable_ticket_4217.html b/tests/visual/resizable/resizable_ticket_4217.html deleted file mode 100644 index 69f9e906990..00000000000 --- a/tests/visual/resizable/resizable_ticket_4217.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Resizable Visual Test : Resizable ticket #4217 - - - - - - - - - - - - -

#4217 - Resizable: displacement of element (in case of constraint resize area)

- - -
- -
-

- Resizable -

-
- -
- - - diff --git a/tests/visual/resizable/resizable_ticket_4940.html b/tests/visual/resizable/resizable_ticket_4940.html deleted file mode 100644 index 3f91583855a..00000000000 --- a/tests/visual/resizable/resizable_ticket_4940.html +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Resizable Visual Test : Resizable ticket #4940 - - - - - - - - - - - -

#4940 - resizable('destroy') moves images to end of parent element

- -before - - - -after - - - - - diff --git a/tests/visual/resizable/resizable_ticket_5335.html b/tests/visual/resizable/resizable_ticket_5335.html deleted file mode 100644 index 94e656dc7b7..00000000000 --- a/tests/visual/resizable/resizable_ticket_5335.html +++ /dev/null @@ -1,52 +0,0 @@ - - - - - Resizable Visual Test : Resizable ticket #5335 - - - - - - - - - - - - - -

#5335 - Resizable: position set to absolute at end of resize

-
-
-
Draggable
-
Not draggable
-
- -
- - diff --git a/tests/visual/selectable/selectable.html b/tests/visual/selectable/selectable.html deleted file mode 100644 index 5d9611d3b63..00000000000 --- a/tests/visual/selectable/selectable.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Selectable Visual Test : Default - - - - - - - - - - - - -
    -
  • - Selectable -
    -
    1
    -
    2
    -
    3
    -
    4
    -
    5
    -
    6
    -
    7
    -
    8
    -
    9
    -
    -
  • -
- - - diff --git a/tests/visual/selectable/selectable_ticket_4341.html b/tests/visual/selectable/selectable_ticket_4341.html deleted file mode 100644 index 27eb8e60141..00000000000 --- a/tests/visual/selectable/selectable_ticket_4341.html +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Selectable Visual Test : Selectable ticket #4341 - - - - - - - - - - - - -
- -
-
Selectable 1
-
Selectable 2
-
Selectable 3
-
Selectable 4
-
Selectable 5
-
- -
- -

#4341 - Selectable: option appendTo is ignored, helper always appends to body

- - - diff --git a/tests/visual/sortable/sortable.html b/tests/visual/sortable/sortable.html deleted file mode 100644 index bf2369fdcd7..00000000000 --- a/tests/visual/sortable/sortable.html +++ /dev/null @@ -1,40 +0,0 @@ - - - - - Sortable Visual Test : Default - - - - - - - - - - - - -
    -
  • - Sortable -
    -
    C
    -
    I
    -
    G
    -
    F
    -
    D
    -
    H
    -
    A
    -
    E
    -
    B
    -
    -
  • -
- - - diff --git a/tests/visual/sortable/sortable_massive_scale.html b/tests/visual/sortable/sortable_massive_scale.html deleted file mode 100644 index bddb525837d..00000000000 --- a/tests/visual/sortable/sortable_massive_scale.html +++ /dev/null @@ -1,757 +0,0 @@ - - - - - Sortable Massive Scale Test - - - - - - - - - - - - -
    -
  • Draggable
  • -
- -
    -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
- -
    -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
- -
    -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
- -
    -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
- -
    -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
  • Item 1
  • -
  • Item 2
  • -
  • Item 3
  • -
  • Item 4
  • -
  • Item 5
  • -
  • Item 6
  • -
  • Item 7
  • -
  • Item 8
  • -
  • Item 9
  • -
  • Item 10
  • -
  • Item 11
  • -
  • Item 12
  • -
  • Item 13
  • -
  • Item 14
  • -
  • Item 15
  • -
  • Item 16
  • -
  • Item 17
  • -
  • Item 18
  • -
  • Item 19
  • -
  • Item 20
  • -
- - - diff --git a/tests/visual/sortable/sortable_option_revert_false.html b/tests/visual/sortable/sortable_option_revert_false.html deleted file mode 100644 index ad8e73f3171..00000000000 --- a/tests/visual/sortable/sortable_option_revert_false.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - Sortable Visual Test : Sortable option revert false - - - - - - - - - - - - -
-
Sortable 1
-
Sortable 2
-
Sortable 3
-
- - - diff --git a/tests/visual/sortable/sortable_option_revert_true.html b/tests/visual/sortable/sortable_option_revert_true.html deleted file mode 100644 index cfa8d735ccf..00000000000 --- a/tests/visual/sortable/sortable_option_revert_true.html +++ /dev/null @@ -1,31 +0,0 @@ - - - - - Sortable Visual Test : Sortable option revert true - - - - - - - - - - - - -
-
Sortable 1
-
Sortable 2
-
Sortable 3
-
- - - diff --git a/tests/visual/sortable/sortable_ticket_4231.html b/tests/visual/sortable/sortable_ticket_4231.html deleted file mode 100644 index 9b50d4c9ff7..00000000000 --- a/tests/visual/sortable/sortable_ticket_4231.html +++ /dev/null @@ -1,78 +0,0 @@ - - - - - Visual testcase for #4231 - - - - - - - - - - - - - -
-
    -
      -
        -
          -
            -
              -
                -
                  -
                    -
                      -
                        -
                          -
                          - -
                            -
                          • Drag me
                          • -
                          • Drag me
                          • -
                          • Drag me
                          • -
                          - - - diff --git a/tests/visual/sortable/sortable_ticket_5355.html b/tests/visual/sortable/sortable_ticket_5355.html deleted file mode 100644 index c6bfd7b215f..00000000000 --- a/tests/visual/sortable/sortable_ticket_5355.html +++ /dev/null @@ -1,58 +0,0 @@ - - - - - Sortable Visual Test : Sortable ticket #5355 - - - - - - - - - - - - - - -

                          #5355 - cssPosition in sortable

                          - -
                          -
                          -
                          - handle -
                          ....
                          -
                          -
                          - handle -
                          ....
                          -
                          -
                          -
                          -
                          - handle -
                          ....
                          -
                          -
                          - handle -
                          ....
                          -
                          . -
                          -
                          - - - From 416101b4647e7e958ad755826583b6e2524e848d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 3 Nov 2011 09:01:15 -0400 Subject: [PATCH 28/63] Tests: Removed unnecessary visual tests for button. --- .../button/button_input_type_checkbox.html | 25 ------ .../button/button_option_disabled_true.html | 84 ------------------- 2 files changed, 109 deletions(-) delete mode 100644 tests/visual/button/button_input_type_checkbox.html delete mode 100644 tests/visual/button/button_option_disabled_true.html diff --git a/tests/visual/button/button_input_type_checkbox.html b/tests/visual/button/button_input_type_checkbox.html deleted file mode 100644 index 4988c85fe9e..00000000000 --- a/tests/visual/button/button_input_type_checkbox.html +++ /dev/null @@ -1,25 +0,0 @@ - - - - - Button Visual Test : Button input type checkbox - - - - - - - - - - - - - - diff --git a/tests/visual/button/button_option_disabled_true.html b/tests/visual/button/button_option_disabled_true.html deleted file mode 100644 index 0e1fc4a72bb..00000000000 --- a/tests/visual/button/button_option_disabled_true.html +++ /dev/null @@ -1,84 +0,0 @@ - - - - - Button Visual Test : Button disabled true - - - - - - - - - - -
                          - button - -
                          - -
                          - -
                          - anchor - anchor 1 -
                          - anchor 1 -
                          - -
                          - input type="button" - -
                          - -
                          - -
                          - input type="radio" - - - -
                          - - - -
                          - -
                          - input type="checkbox" - - - -
                          - - - -
                          - - - From 124cf3cc6c9bf182563e2fe0663cdde497700f7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABtan=20Muller?= Date: Sun, 6 Nov 2011 15:21:22 +0100 Subject: [PATCH 29/63] Accordion: Fixed #7238 - Problem with accordion slide animation fixed width calculation --- ui/jquery.ui.accordion.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 580009d33a3..6eb496a43c1 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -483,11 +483,11 @@ $.extend( $.ui.accordion, { // fix width before calculating height of hidden element var s = options.toShow; originalWidth = s[0].style.width; - s.width( parseInt( s.parent().width(), 10 ) - - parseInt( s.css( "paddingLeft" ), 10 ) - - parseInt( s.css( "paddingRight" ), 10 ) - - ( parseInt( s.css( "borderLeftWidth" ), 10 ) || 0 ) - - ( parseInt( s.css( "borderRightWidth" ), 10) || 0 ) ); + s.width( s.parent().width() + - parseFloat( s.css( "paddingLeft" ) ) + - parseFloat( s.css( "paddingRight" ) ) + - ( parseFloat( s.css( "borderLeftWidth" ) ) || 0 ) + - ( parseFloat( s.css( "borderRightWidth" ) ) || 0 ) ); $.each( fxAttrs, function( i, prop ) { hideProps[ prop ] = "hide"; From 8fd6101c3c330be347b50f4e659161d739513162 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 7 Nov 2011 08:39:22 -0500 Subject: [PATCH 30/63] Widget: Define this.document properly when instantiating a widget on a document or window. Fixes #7835 - Undefined property when creating widgets. --- ui/jquery.ui.widget.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 578d330ba33..56f465b94dd 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -195,7 +195,11 @@ $.Widget.prototype = { if ( element !== this ) { $.data( element, this.widgetName, this ); this._bind({ remove: "destroy" }); - this.document = $( element.ownerDocument ); + this.document = $( element.style ? + // element within the document + element.ownerDocument : + // element is window or document + element.document || element ); this.window = $( this.document[0].defaultView || this.document[0].parentWindow ); } From b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Mon, 7 Nov 2011 15:49:20 -0500 Subject: [PATCH 31/63] Simulate: fixed charCode to be undefined unless specified. Fixed #3229 - Safari: jQuery.simulate() doesn't set "which" field for key events --- tests/jquery.simulate.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index adc340049fd..a37302c46c9 100644 --- a/tests/jquery.simulate.js +++ b/tests/jquery.simulate.js @@ -90,7 +90,7 @@ $.extend( $.simulate.prototype, { shiftKey: false, metaKey: false, keyCode: 0, - charCode: 0 + charCode: undefined }, options ); if ( $.isFunction( document.createEvent ) ) { From 1856a84d590e1711935b72d1441851f4595f4f7d Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Wed, 9 Nov 2011 08:45:10 -0500 Subject: [PATCH 32/63] Popup: increased delay between focusout and focusin/mouseup as it was sometimes not high enough --- ui/jquery.ui.popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.popup.js b/ui/jquery.ui.popup.js index f6585b761d4..128464cc25d 100644 --- a/ui/jquery.ui.popup.js +++ b/ui/jquery.ui.popup.js @@ -168,7 +168,7 @@ $.widget( "ui.popup", { // handle the closing instead of opening again this.closeTimer = this._delay( function() { this.close( event ); - }, 100); + }, 150); }, focusin: function( event ) { clearTimeout( this.closeTimer ); From 50dab05784f0d9e98cbf46a975375badb484610b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 9 Nov 2011 10:18:33 -0500 Subject: [PATCH 33/63] Upgrade jQuery to 1.7. --- demos/accordion/collapsible.html | 2 +- demos/accordion/custom-icons.html | 2 +- demos/accordion/default.html | 2 +- demos/accordion/fillspace.html | 2 +- demos/accordion/hoverintent.html | 2 +- demos/accordion/mouseover.html | 2 +- demos/accordion/no-auto-height.html | 2 +- demos/accordion/sortable.html | 2 +- demos/addClass/default.html | 2 +- demos/animate/default.html | 2 +- demos/autocomplete/categories.html | 2 +- demos/autocomplete/combobox.html | 2 +- demos/autocomplete/custom-data.html | 2 +- demos/autocomplete/default.html | 2 +- demos/autocomplete/folding.html | 2 +- demos/autocomplete/maxheight.html | 2 +- demos/autocomplete/multiple-remote.html | 2 +- demos/autocomplete/multiple.html | 2 +- demos/autocomplete/remote-jsonp.html | 2 +- demos/autocomplete/remote-with-cache.html | 2 +- demos/autocomplete/remote.html | 2 +- demos/autocomplete/xml.html | 2 +- demos/button/checkbox.html | 2 +- demos/button/default.html | 2 +- demos/button/icons.html | 2 +- demos/button/radio.html | 2 +- demos/button/splitbutton.html | 2 +- demos/button/toolbar.html | 2 +- demos/datepicker/alt-field.html | 2 +- demos/datepicker/animation.html | 2 +- demos/datepicker/buttonbar.html | 2 +- demos/datepicker/date-formats.html | 2 +- demos/datepicker/date-range.html | 2 +- demos/datepicker/default.html | 2 +- demos/datepicker/dropdown-month-year.html | 2 +- demos/datepicker/icon-trigger.html | 2 +- demos/datepicker/inline.html | 2 +- demos/datepicker/localization.html | 2 +- demos/datepicker/min-max.html | 2 +- demos/datepicker/multiple-calendars.html | 2 +- demos/datepicker/other-months.html | 2 +- demos/datepicker/show-week.html | 2 +- demos/dialog/animated.html | 2 +- demos/dialog/default.html | 2 +- demos/dialog/modal-confirmation.html | 2 +- demos/dialog/modal-form.html | 2 +- demos/dialog/modal-message.html | 2 +- demos/dialog/modal.html | 2 +- demos/draggable/constrain-movement.html | 2 +- demos/draggable/cursor-style.html | 2 +- demos/draggable/default.html | 2 +- demos/draggable/delay-start.html | 2 +- demos/draggable/events.html | 2 +- demos/draggable/handle.html | 2 +- demos/draggable/revert.html | 2 +- demos/draggable/scroll.html | 2 +- demos/draggable/snap-to.html | 2 +- demos/draggable/sortable.html | 2 +- demos/draggable/visual-feedback.html | 2 +- demos/droppable/accepted-elements.html | 2 +- demos/droppable/default.html | 2 +- demos/droppable/photo-manager.html | 2 +- demos/droppable/propagation.html | 2 +- demos/droppable/revert.html | 2 +- demos/droppable/shopping-cart.html | 2 +- demos/droppable/visual-feedback.html | 2 +- demos/effect/default.html | 2 +- demos/effect/easing.html | 2 +- demos/hide/default.html | 2 +- demos/index.html | 2 +- demos/menu/contextmenu.html | 2 +- demos/menu/default.html | 2 +- demos/menu/navigationmenu.html | 2 +- demos/menu/topalignmenu.html | 2 +- demos/menubar/default.html | 2 +- demos/popup/animation.html | 2 +- demos/popup/default.html | 2 +- demos/popup/popup-menu-table.html | 2 +- demos/popup/popup-menu.html | 2 +- demos/popup/tooltip.html | 2 +- demos/position/cycler.html | 2 +- demos/position/default.html | 2 +- demos/progressbar/animated.html | 2 +- demos/progressbar/default.html | 2 +- demos/progressbar/resize.html | 2 +- demos/removeClass/default.html | 2 +- demos/resizable/animate.html | 2 +- demos/resizable/aspect-ratio.html | 2 +- demos/resizable/constrain-area.html | 2 +- demos/resizable/default.html | 2 +- demos/resizable/delay-start.html | 2 +- demos/resizable/helper.html | 2 +- demos/resizable/max-min.html | 2 +- demos/resizable/snap-to-grid.html | 2 +- demos/resizable/synchronous-resize.html | 2 +- demos/resizable/textarea.html | 2 +- demos/resizable/visual-feedback.html | 2 +- demos/selectable/default.html | 2 +- demos/selectable/display-grid.html | 2 +- demos/selectable/serialize.html | 2 +- demos/show/default.html | 2 +- demos/slider/colorpicker.html | 2 +- demos/slider/default.html | 2 +- demos/slider/hotelrooms.html | 2 +- demos/slider/multiple-vertical.html | 2 +- demos/slider/range-vertical.html | 2 +- demos/slider/range.html | 2 +- demos/slider/rangemax.html | 2 +- demos/slider/rangemin.html | 2 +- demos/slider/side-scroll.html | 2 +- demos/slider/slider-vertical.html | 2 +- demos/slider/steps.html | 2 +- demos/slider/tabs.html | 2 +- .../sortable/connect-lists-through-tabs.html | 2 +- demos/sortable/connect-lists.html | 2 +- demos/sortable/default.html | 2 +- demos/sortable/delay-start.html | 2 +- demos/sortable/display-grid.html | 2 +- demos/sortable/empty-lists.html | 2 +- demos/sortable/items.html | 2 +- demos/sortable/placeholder.html | 2 +- demos/sortable/portlets.html | 2 +- demos/spinner/currency.html | 2 +- demos/spinner/decimal.html | 2 +- demos/spinner/default.html | 2 +- demos/spinner/latlong.html | 2 +- demos/spinner/overflow.html | 2 +- demos/spinner/time.html | 2 +- demos/switchClass/default.html | 2 +- demos/tabs/ajax.html | 2 +- demos/tabs/bottom.html | 2 +- demos/tabs/collapsible.html | 2 +- demos/tabs/cookie.html | 2 +- demos/tabs/default.html | 2 +- demos/tabs/manipulation.html | 2 +- demos/tabs/mouseover.html | 2 +- demos/tabs/sortable.html | 2 +- demos/tabs/vertical.html | 2 +- demos/toggle/default.html | 2 +- demos/toggleClass/default.html | 2 +- demos/tooltip/custom-animation.html | 2 +- demos/tooltip/custom-content.html | 2 +- demos/tooltip/default.html | 2 +- demos/tooltip/forms.html | 2 +- demos/tooltip/tracking.html | 2 +- demos/tooltip/video-player.html | 2 +- demos/widget/default.html | 2 +- jquery-1.6.4.js => jquery-1.7.js | 2908 +++--- tests/index.html | 2 +- tests/jquery-1.7.js | 9300 +++++++++++++++++ tests/jquery.js | 2 +- tests/static/button/default.html | 2 +- tests/static/datepicker/datepicker.html | 2 +- tests/static/datepicker/default.html | 2 +- tests/static/icons.html | 2 +- tests/static/slider/default.html | 2 +- tests/static/slider/default_vertical.html | 2 +- tests/static/slider/slider_horizontal.html | 2 +- .../slider/slider_horizontal_range.html | 2 +- .../slider/slider_horizontal_range_max.html | 2 +- .../slider/slider_horizontal_range_min.html | 2 +- tests/static/slider/slider_vertical.html | 2 +- .../static/slider/slider_vertical_range.html | 2 +- .../slider/slider_vertical_range_max.html | 2 +- .../slider/slider_vertical_range_min.html | 2 +- tests/unit/accordion/all.html | 2 +- tests/unit/all.html | 2 +- tests/unit/autocomplete/all.html | 2 +- tests/unit/button/all.html | 2 +- tests/unit/core/all.html | 2 +- tests/unit/datepicker/all.html | 2 +- tests/unit/dialog/all.html | 2 +- tests/unit/draggable/all.html | 2 +- tests/unit/droppable/all.html | 2 +- tests/unit/effects/all.html | 2 +- tests/unit/menu/all.html | 2 +- tests/unit/position/all.html | 2 +- tests/unit/progressbar/all.html | 2 +- tests/unit/resizable/all.html | 2 +- tests/unit/selectable/all.html | 2 +- tests/unit/slider/all.html | 2 +- tests/unit/sortable/all.html | 2 +- tests/unit/spinner/all.html | 2 +- tests/unit/subsuite.js | 2 +- tests/unit/tabs/all.html | 2 +- tests/unit/tooltip/all.html | 2 +- tests/unit/widget/all.html | 2 +- tests/visual/addClass/addClass_queue.html | 2 +- tests/visual/button/button.html | 2 +- tests/visual/button/button_disabled_true.html | 2 +- tests/visual/button/button_performance.html | 2 +- tests/visual/button/button_ticket_5254.html | 2 +- tests/visual/button/button_ticket_5261.html | 2 +- tests/visual/button/button_ticket_5278.html | 2 +- tests/visual/compound/accordion_dialog.html | 2 +- tests/visual/compound/accordion_tabs.html | 2 +- tests/visual/compound/datepicker_dialog.html | 2 +- .../visual/compound/draggable_accordion.html | 2 +- ...le_accordion_accordion_tabs_draggable.html | 2 +- .../sortable_accordion_sortable_tabs.html | 2 +- tests/visual/compound/tabs_tabs.html | 2 +- tests/visual/compound/tabs_tooltips.html | 2 +- tests/visual/compound/widgets_in_dialog.html | 2 +- .../dialog/dialog_on_page_with_large_dom.html | 2 +- tests/visual/effects/effects.all.html | 2 +- tests/visual/effects/effects.scale.html | 2 +- tests/visual/menu/drilldown.html | 2 +- tests/visual/menu/menu.html | 2 +- tests/visual/menu/tablemenu.html | 2 +- tests/visual/position/position.html | 2 +- tests/visual/position/position_fit.html | 2 +- tests/visual/position/position_flip.html | 2 +- tests/visual/position/position_flipfit.html | 2 +- tests/visual/position/position_margin.html | 2 +- tests/visual/position/position_within.html | 2 +- tests/visual/theme.html | 2 +- tests/visual/tooltip/animations.html | 2 +- tests/visual/tooltip/callout.html | 2 +- tests/visual/tooltip/tooltip.html | 2 +- 219 files changed, 11098 insertions(+), 1544 deletions(-) rename jquery-1.6.4.js => jquery-1.7.js (78%) create mode 100644 tests/jquery-1.7.js diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index d8d0f191882..85789e6c62c 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Collapse content - + diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index a5f3742dc25..de57f28b148 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Customize icons - + diff --git a/demos/accordion/default.html b/demos/accordion/default.html index 734de8a9eb4..99f17df4d1a 100644 --- a/demos/accordion/default.html +++ b/demos/accordion/default.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Default functionality - + diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index fa68be01c67..bcbf6404d88 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Fill space - + diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index 279f914833e..ce4703117b1 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Open on hoverintent - + diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html index 7acca170453..bd19ddd4e68 100644 --- a/demos/accordion/mouseover.html +++ b/demos/accordion/mouseover.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Open on mouseover - + diff --git a/demos/accordion/no-auto-height.html b/demos/accordion/no-auto-height.html index 19c195b0625..e349d1a945e 100644 --- a/demos/accordion/no-auto-height.html +++ b/demos/accordion/no-auto-height.html @@ -4,7 +4,7 @@ jQuery UI Accordion - No auto height - + diff --git a/demos/accordion/sortable.html b/demos/accordion/sortable.html index 9f2ff61eb9b..0afa3057b1f 100644 --- a/demos/accordion/sortable.html +++ b/demos/accordion/sortable.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Sortable - + diff --git a/demos/addClass/default.html b/demos/addClass/default.html index 9fbc46a19d1..7de7c56f5b3 100644 --- a/demos/addClass/default.html +++ b/demos/addClass/default.html @@ -4,7 +4,7 @@ jQuery UI Effects - addClass demo - + - + diff --git a/tests/visual/button/button_disabled_true.html b/tests/visual/button/button_disabled_true.html index 0e1fc4a72bb..5284dc022a4 100644 --- a/tests/visual/button/button_disabled_true.html +++ b/tests/visual/button/button_disabled_true.html @@ -5,7 +5,7 @@ Button Visual Test : Button disabled true - + diff --git a/tests/visual/button/button_performance.html b/tests/visual/button/button_performance.html index 3274549b0cd..40d53d77437 100644 --- a/tests/visual/button/button_performance.html +++ b/tests/visual/button/button_performance.html @@ -9,7 +9,7 @@ #toolbar { margin-top: 2em; padding:0.2em; } #ops1, #ops2, #format, #mode { margin-right: 1em } - + diff --git a/tests/visual/button/button_ticket_5254.html b/tests/visual/button/button_ticket_5254.html index ba455bd89f3..ccd237f312a 100644 --- a/tests/visual/button/button_ticket_5254.html +++ b/tests/visual/button/button_ticket_5254.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5254 - + diff --git a/tests/visual/button/button_ticket_5261.html b/tests/visual/button/button_ticket_5261.html index 0913e8dceee..ad92c7aa9e7 100644 --- a/tests/visual/button/button_ticket_5261.html +++ b/tests/visual/button/button_ticket_5261.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5261 - + diff --git a/tests/visual/button/button_ticket_5278.html b/tests/visual/button/button_ticket_5278.html index 3393d9dcd2c..ac2c1cff0a0 100644 --- a/tests/visual/button/button_ticket_5278.html +++ b/tests/visual/button/button_ticket_5278.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5278 - + diff --git a/tests/visual/compound/accordion_dialog.html b/tests/visual/compound/accordion_dialog.html index 2c2fb4f90bd..e11a35098f8 100644 --- a/tests/visual/compound/accordion_dialog.html +++ b/tests/visual/compound/accordion_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Dialog - + diff --git a/tests/visual/compound/accordion_tabs.html b/tests/visual/compound/accordion_tabs.html index 98afc32e718..f356179c9db 100644 --- a/tests/visual/compound/accordion_tabs.html +++ b/tests/visual/compound/accordion_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Tabs - + diff --git a/tests/visual/compound/datepicker_dialog.html b/tests/visual/compound/datepicker_dialog.html index 8ab92783898..1762e610895 100644 --- a/tests/visual/compound/datepicker_dialog.html +++ b/tests/visual/compound/datepicker_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : Datepicker in Dialog - + diff --git a/tests/visual/compound/draggable_accordion.html b/tests/visual/compound/draggable_accordion.html index 31cec03234f..634ffbe2dc6 100644 --- a/tests/visual/compound/draggable_accordion.html +++ b/tests/visual/compound/draggable_accordion.html @@ -5,7 +5,7 @@ Compound Visual Test : Draggable in Accordion - + diff --git a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html index 647da041340..3f211b04640 100644 --- a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +++ b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html @@ -5,7 +5,7 @@ Compound Visual Test : Draggable in Accordion - + diff --git a/tests/visual/compound/sortable_accordion_sortable_tabs.html b/tests/visual/compound/sortable_accordion_sortable_tabs.html index 35bd508a43f..c055016b628 100644 --- a/tests/visual/compound/sortable_accordion_sortable_tabs.html +++ b/tests/visual/compound/sortable_accordion_sortable_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Tabs - + diff --git a/tests/visual/compound/tabs_tabs.html b/tests/visual/compound/tabs_tabs.html index 32f19bde81a..7398bef3ae1 100644 --- a/tests/visual/compound/tabs_tabs.html +++ b/tests/visual/compound/tabs_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Tabs in Tabs - + diff --git a/tests/visual/compound/tabs_tooltips.html b/tests/visual/compound/tabs_tooltips.html index 5a48c252b02..d8d132a30cd 100644 --- a/tests/visual/compound/tabs_tooltips.html +++ b/tests/visual/compound/tabs_tooltips.html @@ -5,7 +5,7 @@ Compound Visual Test : Tabs in Tabs - + diff --git a/tests/visual/compound/widgets_in_dialog.html b/tests/visual/compound/widgets_in_dialog.html index 8cd021a93fb..999b67b0f7f 100644 --- a/tests/visual/compound/widgets_in_dialog.html +++ b/tests/visual/compound/widgets_in_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : All Widgets in Dialog - + diff --git a/tests/visual/dialog/dialog_on_page_with_large_dom.html b/tests/visual/dialog/dialog_on_page_with_large_dom.html index 9f5ea1cb1c8..2a93071949a 100644 --- a/tests/visual/dialog/dialog_on_page_with_large_dom.html +++ b/tests/visual/dialog/dialog_on_page_with_large_dom.html @@ -5,7 +5,7 @@ Dialog Visual Test : Modal Dialog in Large DOM - + diff --git a/tests/visual/effects/effects.all.html b/tests/visual/effects/effects.all.html index 28c1489958c..838e17a3c10 100644 --- a/tests/visual/effects/effects.all.html +++ b/tests/visual/effects/effects.all.html @@ -4,7 +4,7 @@ jQuery UI Effects Test Suite - + diff --git a/tests/visual/effects/effects.scale.html b/tests/visual/effects/effects.scale.html index 21225e42d12..2d35cee18b1 100644 --- a/tests/visual/effects/effects.scale.html +++ b/tests/visual/effects/effects.scale.html @@ -4,7 +4,7 @@ jQuery UI Effects Test Suite - + diff --git a/tests/visual/menu/drilldown.html b/tests/visual/menu/drilldown.html index 96ebacbbaf5..838583e88d9 100644 --- a/tests/visual/menu/drilldown.html +++ b/tests/visual/menu/drilldown.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 48c95f80bf8..80062a42348 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/menu/tablemenu.html b/tests/visual/menu/tablemenu.html index f9ae0ac59f0..be1d0646041 100644 --- a/tests/visual/menu/tablemenu.html +++ b/tests/visual/menu/tablemenu.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/position/position.html b/tests/visual/position/position.html index 63fbbdb5a1e..e28a6ae692f 100644 --- a/tests/visual/position/position.html +++ b/tests/visual/position/position.html @@ -5,7 +5,7 @@ Position Visual Test: Default - + diff --git a/tests/visual/position/position_fit.html b/tests/visual/position/position_fit.html index 1c4530ff6f1..73a683dcedf 100644 --- a/tests/visual/position/position_fit.html +++ b/tests/visual/position/position_fit.html @@ -5,7 +5,7 @@ Position Visual Test: Fit - + diff --git a/tests/visual/position/position_flip.html b/tests/visual/position/position_flip.html index 4d5e6654d10..766576fde40 100644 --- a/tests/visual/position/position_flip.html +++ b/tests/visual/position/position_flip.html @@ -5,7 +5,7 @@ Position Visual Test: Flip - + diff --git a/tests/visual/position/position_flipfit.html b/tests/visual/position/position_flipfit.html index c610cec254c..edb1adecfd8 100644 --- a/tests/visual/position/position_flipfit.html +++ b/tests/visual/position/position_flipfit.html @@ -5,7 +5,7 @@ Position Visual Test: FlipFit - + diff --git a/tests/visual/position/position_margin.html b/tests/visual/position/position_margin.html index 02e2d94eea5..1e6608d9159 100644 --- a/tests/visual/position/position_margin.html +++ b/tests/visual/position/position_margin.html @@ -5,7 +5,7 @@ Position Visual Test: Default - + diff --git a/tests/visual/position/position_within.html b/tests/visual/position/position_within.html index e7bd863198b..f348c5e8df3 100644 --- a/tests/visual/position/position_within.html +++ b/tests/visual/position/position_within.html @@ -7,7 +7,7 @@ - + diff --git a/tests/visual/theme.html b/tests/visual/theme.html index 61e911b8c60..d10f2444f35 100644 --- a/tests/visual/theme.html +++ b/tests/visual/theme.html @@ -4,7 +4,7 @@ jQuery UI Example Page - + diff --git a/tests/visual/tooltip/animations.html b/tests/visual/tooltip/animations.html index df4e6604ec2..b1ffc891466 100644 --- a/tests/visual/tooltip/animations.html +++ b/tests/visual/tooltip/animations.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + diff --git a/tests/visual/tooltip/callout.html b/tests/visual/tooltip/callout.html index 78b886294d3..3a498b2a655 100644 --- a/tests/visual/tooltip/callout.html +++ b/tests/visual/tooltip/callout.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index bc8cdc88cec..5eb1ab0a784 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + From 31b176106fff6e25de87469644885f9a3fa98bdc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 9 Nov 2011 11:38:16 -0500 Subject: [PATCH 34/63] Effects tests: Proper detection of fixed position support in jQuery 1.7. --- tests/unit/effects/effects_scale.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/unit/effects/effects_scale.js b/tests/unit/effects/effects_scale.js index a607361e6f0..b9bb91c2e8f 100644 --- a/tests/unit/effects/effects_scale.js +++ b/tests/unit/effects/effects_scale.js @@ -54,8 +54,13 @@ function suite( position ) { $(function() { suite( "absolute" ); suite( "relative" ); - $.offset.initialize(); - if ( $.offset.supportsFixedPosition ) { + var fixed = $.support.fixedPosition; + // jQuery < 1.7 uses $.offset.supportsFixedPosition + if ( fixed === undefined ) { + $.offset.initialize(); + fixed = $.offset.supportsFixedPosition; + } + if ( fixed ) { suite( "fixed" ); } }); From c21a5b4451f5eded288de4482b9508e2bd13756d Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Wed, 9 Nov 2011 12:57:52 -0500 Subject: [PATCH 35/63] Theme base core: Updated clearfix to 'new micro clearfix hack' by Nicolas Gallagher http://nicolasgallagher.com/micro-clearfix-hack/ . Fixed #7838 - Clearfix breaks after runs through YUI Compressor --- themes/base/jquery.ui.core.css | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/themes/base/jquery.ui.core.css b/themes/base/jquery.ui.core.css index 59e14d572b3..143d6c2409b 100644 --- a/themes/base/jquery.ui.core.css +++ b/themes/base/jquery.ui.core.css @@ -13,12 +13,9 @@ .ui-helper-hidden { display: none; } .ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); } .ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; } -.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; } -.ui-helper-clearfix { display: inline-block; } -/* required comment for clearfix to work in Opera \*/ -* html .ui-helper-clearfix { height:1%; } -.ui-helper-clearfix { display:block; } -/* end clearfix */ +.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; } +.ui-helper-clearfix:after { clear: both; } +.ui-helper-clearfix { zoom: 1; } .ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); } From 1b165148a6654f64d572bd4c28ddb2cee5f6a332 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Thu, 10 Nov 2011 07:58:44 -0500 Subject: [PATCH 36/63] Widget: Set event.target in ._trigger(). Fixes #7852 - Droppable event target changes under jQuery 1.7. --- ui/jquery.ui.widget.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 56f465b94dd..294e321a91f 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -393,6 +393,10 @@ $.Widget.prototype = { } } + // the original event may come from any element + // so we need to reset the target on the new event + event.target = this.element[0]; + this.element.trigger( event, data ); args = $.isArray( data ) ? From f0f54e38d8eab613d7ea25d698b81126e5263d83 Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Fri, 11 Nov 2011 09:24:55 -0500 Subject: [PATCH 37/63] Demos accordion hoverintent: moved event.type setter to not clobber event.type. Partial fix for #7871 - Demo accordion hoverintent: hover instead of hoverintent behavior with jQuery 1.7.0 --- demos/accordion/hoverintent.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index ce4703117b1..e39fb6d5213 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -29,7 +29,6 @@ $( this ).unbind( "mouseover", jQuery.event.special.hoverintent.handler ); }, handler: function( event ) { - event.type = "hoverintent"; var self = this, args = arguments, target = $( event.target ), @@ -50,6 +49,7 @@ function handler() { if ( ( Math.abs( pX - cX ) + Math.abs( pY - cY ) ) < cfg.sensitivity ) { clear(); + event.type = "hoverintent"; jQuery.event.handle.apply( self, args ); } else { pX = cX; From e5464f8f19f2026487bdffb465c6e77498449032 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 16 Nov 2011 07:59:21 -0500 Subject: [PATCH 38/63] Accordion: Fixed back-compat for icons.headerSelected when icons option is null. --- demos/accordion/custom-icons.html | 2 +- ui/jquery.ui.accordion.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index de57f28b148..2351b9bb012 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -20,7 +20,7 @@ icons: icons }); $( "#toggle" ).button().toggle(function() { - $( "#accordion" ).accordion( "option", "icons", false ); + $( "#accordion" ).accordion( "option", "icons", null ); }, function() { $( "#accordion" ).accordion( "option", "icons", icons ); }); diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 6eb496a43c1..8289ee81b8a 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -628,8 +628,10 @@ if ( $.uiBackCompat !== false ) { var _createIcons = prototype._createIcons; prototype._createIcons = function() { - this.options.icons.activeHeader = this.options.icons.activeHeader || - this.options.icons.headerSelected; + if ( this.options.icons ) { + this.options.icons.activeHeader = this.options.icons.activeHeader || + this.options.icons.headerSelected; + } _createIcons.call( this ); }; }( jQuery, jQuery.ui.accordion.prototype ) ); From 97bc2d9de9875e222254cfa1cd3fa3bde605c2ed Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Wed, 16 Nov 2011 10:52:12 -0500 Subject: [PATCH 39/63] Selectable: add ui-selectee class to elements matching filter on refresh. Fixes #7716 - Selectable: new elements added programatically don't have class ui-selectee --- ui/jquery.ui.selectable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index 75f1cee66a8..d7b24d4e399 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -34,6 +34,7 @@ $.widget("ui.selectable", $.ui.mouse, { var selectees; this.refresh = function() { selectees = $(self.options.filter, self.element[0]); + selectees.addClass("ui-selectee"); selectees.each(function() { var $this = $(this); var pos = $this.offset(); From 924e80e576e098fd07899bc6e2d5929680d54446 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 16 Nov 2011 12:07:33 -0500 Subject: [PATCH 40/63] Spinner: Handle changes to numberFormat and currency options. --- demos/spinner/currency.html | 4 +--- tests/unit/spinner/spinner_options.js | 19 +++++++++++++++++++ ui/jquery.ui.spinner.js | 7 +++++++ 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html index 485ad90647e..796b379a53a 100644 --- a/demos/spinner/currency.html +++ b/demos/spinner/currency.html @@ -17,9 +17,7 @@ + + + + + + + + + + +
                          + +

                          Tooltips can be attached to any element. When you hover +the element with your mouse, the title attribute is displayed in a little box next to the element, just like a native tooltip.

                          +

                          But as it's not a native tooltip, it can be styled. Any themes built with +ThemeRoller +will also style tooltips accordingly.

                          +

                          Tooltips are also useful for form elements, to show some additional information in the context of each field.

                          +

                          +

                          Hover the field to see the tooltip.

                          + +
                          + + + +
                          +

                          Hover the links above or use the tab key to cycle the focus on each element.

                          +
                          + + + diff --git a/demos/tooltip/index.html b/demos/tooltip/index.html index 6e7c6836e34..3753bc181d5 100644 --- a/demos/tooltip/index.html +++ b/demos/tooltip/index.html @@ -11,6 +11,7 @@

                          Examples

                          • Default functionality
                          • +
                          • Custom style with arrow
                          • Forms with tooltips
                          • Track the mouse
                          • Custom animation
                          • From 326bfec626b3039e2d51f53d2d6d2d48cdd78207 Mon Sep 17 00:00:00 2001 From: Michel Weimerskirch Date: Thu, 17 Nov 2011 11:52:32 -0600 Subject: [PATCH 42/63] Datepicker: Added Luxembourgish translation. Fixes #7891 Datepicker: Add Luxembourgish Translation --- demos/datepicker/localization.html | 2 ++ demos/index.html | 1 + ui/i18n/jquery.ui.datepicker-lb.js | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ui/i18n/jquery.ui.datepicker-lb.js diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index d63859663e8..36cf4cfa713 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -42,6 +42,7 @@ + @@ -127,6 +128,7 @@ + diff --git a/demos/index.html b/demos/index.html index 8ea00483119..97de3913259 100644 --- a/demos/index.html +++ b/demos/index.html @@ -78,6 +78,7 @@ + diff --git a/ui/i18n/jquery.ui.datepicker-lb.js b/ui/i18n/jquery.ui.datepicker-lb.js new file mode 100644 index 00000000000..87c79d594eb --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-lb.js @@ -0,0 +1,23 @@ +/* Luxembourgish initialisation for the jQuery UI date picker plugin. */ +/* Written by Michel Weimerskirch */ +jQuery(function($){ + $.datepicker.regional['lb'] = { + closeText: 'Fäerdeg', + prevText: 'Zréck', + nextText: 'Weider', + currentText: 'Haut', + monthNames: ['Januar','Februar','Mäerz','Abrëll','Mee','Juni', + 'Juli','August','September','Oktober','November','Dezember'], + monthNamesShort: ['Jan', 'Feb', 'Mäe', 'Abr', 'Mee', 'Jun', + 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'], + dayNames: ['Sonndeg', 'Méindeg', 'Dënschdeg', 'Mëttwoch', 'Donneschdeg', 'Freideg', 'Samschdeg'], + dayNamesShort: ['Son', 'Méi', 'Dën', 'Mët', 'Don', 'Fre', 'Sam'], + dayNamesMin: ['So','Mé','Dë','Më','Do','Fr','Sa'], + weekHeader: 'W', + dateFormat: 'dd.mm.yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['lb']); +}); From 6525365944d306931e0697b7bb909e9e48a5501c Mon Sep 17 00:00:00 2001 From: William Griffiths Date: Thu, 17 Nov 2011 12:34:33 -0600 Subject: [PATCH 43/63] Datepicker: Added Welsh/UK localization. Fixes #7892 Datepicker: Add Welsh/UK Localization --- demos/datepicker/localization.html | 2 ++ demos/index.html | 1 + ui/i18n/jquery.ui.datepicker-cy-GB.js | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ui/i18n/jquery.ui.datepicker-cy-GB.js diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 36cf4cfa713..626cf7e21d3 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -16,6 +16,7 @@ + @@ -150,6 +151,7 @@ +

                            diff --git a/demos/index.html b/demos/index.html index 97de3913259..2e80b7dee03 100644 --- a/demos/index.html +++ b/demos/index.html @@ -52,6 +52,7 @@ + diff --git a/ui/i18n/jquery.ui.datepicker-cy-GB.js b/ui/i18n/jquery.ui.datepicker-cy-GB.js new file mode 100644 index 00000000000..dfee2f9d4cd --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-cy-GB.js @@ -0,0 +1,23 @@ +/* Welsh/UK initialisation for the jQuery UI date picker plugin. */ +/* Written by William Griffiths. */ +jQuery(function($){ + $.datepicker.regional['cy-GB'] = { + closeText: 'Done', + prevText: 'Prev', + nextText: 'Next', + currentText: 'Today', + monthNames: ['Ionawr','Chwefror','Mawrth','Ebrill','Mai','Mehefin', + 'Gorffennaf','Awst','Medi','Hydref','Tachwedd','Rhagfyr'], + monthNamesShort: ['Ion', 'Chw', 'Maw', 'Ebr', 'Mai', 'Meh', + 'Gor', 'Aws', 'Med', 'Hyd', 'Tac', 'Rha'], + dayNames: ['Dydd Sul', 'Dydd Llun', 'Dydd Mawrth', 'Dydd Mercher', 'Dydd Iau', 'Dydd Gwener', 'Dydd Sadwrn'], + dayNamesShort: ['Sul', 'Llu', 'Maw', 'Mer', 'Iau', 'Gwe', 'Sad'], + dayNamesMin: ['Su','Ll','Ma','Me','Ia','Gw','Sa'], + weekHeader: 'Wy', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['cy-GB']); +}); \ No newline at end of file From b2d05f8b76a0de4e66f6a51d77b952be1633e17a Mon Sep 17 00:00:00 2001 From: stojce Date: Thu, 17 Nov 2011 12:45:36 -0600 Subject: [PATCH 44/63] Datepicker: Added Macedonian i18n for date picker plugin. Fixes #7893 Datepicker: Add Macedonian Localization --- demos/datepicker/localization.html | 2 ++ demos/index.html | 1 + ui/i18n/jquery.ui.datepicker-mk.js | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ui/i18n/jquery.ui.datepicker-mk.js diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 626cf7e21d3..8aa91153a8b 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -46,6 +46,7 @@ + @@ -130,6 +131,7 @@ + diff --git a/demos/index.html b/demos/index.html index 2e80b7dee03..75e155b2481 100644 --- a/demos/index.html +++ b/demos/index.html @@ -82,6 +82,7 @@ + diff --git a/ui/i18n/jquery.ui.datepicker-mk.js b/ui/i18n/jquery.ui.datepicker-mk.js new file mode 100644 index 00000000000..554ad20ba32 --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-mk.js @@ -0,0 +1,23 @@ +/* Macedonian i18n for the jQuery UI date picker plugin. */ +/* Written by Stojce Slavkovski. */ +jQuery(function($){ + $.datepicker.regional['mk'] = { + closeText: 'Затвори', + prevText: '<', + nextText: '>', + currentText: 'Денес', + monthNames: ['Јануари','Фебруари','Март','Април','Мај','Јуни', + 'Јули','Август','Септември','Октомври','Ноември','Декември'], + monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун', + 'Јул','Авг','Сеп','Окт','Ное','Дек'], + dayNames: ['Недела','Понеделник','Вторник','Среда','Четврток','Петок','Сабота'], + dayNamesShort: ['Нед','Пон','Вто','Сре','Чет','Пет','Саб'], + dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Са'], + weekHeader: 'Сед', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['mk']); +}); From 9ebbcfe87ed9213f1e20a2873e526878e474ee90 Mon Sep 17 00:00:00 2001 From: David Soms Date: Thu, 17 Nov 2011 13:30:01 -0600 Subject: [PATCH 45/63] Datepicker: Updated catalan translation using globalize.js as a reference (https://github.com/jquery/globalize/blob/master/lib/cultures/globalize.culture.ca.js). Fixes #7894 Datepicker: Update Catalan Localization --- ui/i18n/jquery.ui.datepicker-ca.js | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ui/i18n/jquery.ui.datepicker-ca.js b/ui/i18n/jquery.ui.datepicker-ca.js index 23c5c8c8151..a10b549c28c 100644 --- a/ui/i18n/jquery.ui.datepicker-ca.js +++ b/ui/i18n/jquery.ui.datepicker-ca.js @@ -1,23 +1,23 @@ -/* Inicialització en català per a l'extenció 'calendar' per jQuery. */ +/* Inicialització en català per a l'extensió 'UI date picker' per jQuery. */ /* Writers: (joan.leon@gmail.com). */ jQuery(function($){ $.datepicker.regional['ca'] = { - closeText: 'Tancar', - prevText: '<Ant', - nextText: 'Seg>', + closeText: 'Tanca', + prevText: 'Anterior', + nextText: 'Següent', currentText: 'Avui', - monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', - 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], - monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', - 'Jul','Ago','Set','Oct','Nov','Des'], - dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], - dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], - dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], - weekHeader: 'Sm', + monthNames: ['gener','febrer','març','abril','maig','juny', + 'juliol','agost','setembre','octubre','novembre','desembre'], + monthNamesShort: ['gen','feb','març','abr','maig','juny', + 'jul','ag','set','oct','nov','des'], + dayNames: ['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'], + dayNamesShort: ['dg','dl','dt','dc','dj','dv','ds'], + dayNamesMin: ['dg','dl','dt','dc','dj','dv','ds'], + weekHeader: 'Set', dateFormat: 'dd/mm/yy', firstDay: 1, isRTL: false, showMonthAfterYear: false, yearSuffix: ''}; $.datepicker.setDefaults($.datepicker.regional['ca']); -}); \ No newline at end of file +}); From dfbd9be72df7734451f535af6dcc1f07294c242b Mon Sep 17 00:00:00 2001 From: David De Sloovere Date: Thu, 17 Nov 2011 13:43:02 -0600 Subject: [PATCH 46/63] Datepicker: added i18n for nl-BE. Fixes #7895 Datepicker: Add Dutch (Belgium) Localization --- demos/datepicker/localization.html | 2 ++ demos/index.html | 1 + ui/i18n/jquery.ui.datepicker-nl-BE.js | 23 +++++++++++++++++++++++ 3 files changed, 26 insertions(+) create mode 100644 ui/i18n/jquery.ui.datepicker-nl-BE.js diff --git a/demos/datepicker/localization.html b/demos/datepicker/localization.html index 8aa91153a8b..5534067575a 100644 --- a/demos/datepicker/localization.html +++ b/demos/datepicker/localization.html @@ -50,6 +50,7 @@ + @@ -106,6 +107,7 @@ + diff --git a/demos/index.html b/demos/index.html index 75e155b2481..700ebcdd68c 100644 --- a/demos/index.html +++ b/demos/index.html @@ -86,6 +86,7 @@ + diff --git a/ui/i18n/jquery.ui.datepicker-nl-BE.js b/ui/i18n/jquery.ui.datepicker-nl-BE.js new file mode 100644 index 00000000000..56207cb04d9 --- /dev/null +++ b/ui/i18n/jquery.ui.datepicker-nl-BE.js @@ -0,0 +1,23 @@ +/* Dutch (Belgium) initialisation for the jQuery UI date picker plugin. */ +/* David De Sloovere @DavidDeSloovere */ +jQuery(function($){ + $.datepicker.regional['nl-BE'] = { + closeText: 'Sluiten', + prevText: '←', + nextText: '→', + currentText: 'Vandaag', + monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', + 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], + monthNamesShort: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', + 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], + dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], + dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], + dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], + weekHeader: 'Wk', + dateFormat: 'dd/mm/yy', + firstDay: 1, + isRTL: false, + showMonthAfterYear: false, + yearSuffix: ''}; + $.datepicker.setDefaults($.datepicker.regional['nl-BE']); +}); \ No newline at end of file From 66f9e12797c16d8fa9078f45401f08f0f200e1bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Fri, 18 Nov 2011 12:19:32 +0100 Subject: [PATCH 47/63] Widget: Remove method argument from _super and _superApply. Was a left-over from first implementation, not necessary anymore. --- demos/widget/default.html | 4 ++-- tests/unit/widget/widget_core.js | 10 +++++----- ui/jquery.ui.accordion.js | 10 +++++----- ui/jquery.ui.autocomplete.js | 2 +- ui/jquery.ui.button.js | 12 ++++++------ ui/jquery.ui.dialog.js | 16 ++++++++-------- ui/jquery.ui.progressbar.js | 2 +- ui/jquery.ui.spinner.js | 6 +++--- ui/jquery.ui.tabs.js | 22 +++++++++++----------- ui/jquery.ui.tooltip.js | 2 +- ui/jquery.ui.widget.js | 8 ++++---- 11 files changed, 47 insertions(+), 47 deletions(-) diff --git a/demos/widget/default.html b/demos/widget/default.html index 45cbe3298dc..3b812ef8e37 100644 --- a/demos/widget/default.html +++ b/demos/widget/default.html @@ -106,7 +106,7 @@ // always refresh when changing options _setOptions: function() { // _super and _superApply handle keeping the right this-context - this._superApply( "_setOptions", arguments ); + this._superApply( arguments ); this._refresh(); }, @@ -116,7 +116,7 @@ if ( /red|green|blue/.test(key) && (value < 0 || value > 255) ) { return; } - this._super( "_setOption", key, value ); + this._super( key, value ); } }); diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index 0510da4b4cc..edf1ae0fc7e 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -346,7 +346,7 @@ test( "._super()", function() { same( this, instance, "this is correct in testWidget2" ); same( a, 5, "parameter passed to testWidget2" ); same( b, 10, "parameter passed to testWidget2" ); - return this._super( "method", a, b*2 ); + return this._super( a, b*2 ); } }); @@ -354,7 +354,7 @@ test( "._super()", function() { method: function( a ) { same( this, instance, "this is correct in testWidget3" ); same( a, 5, "parameter passed to testWidget3" ); - var ret = this._super( "method", a, a*2 ); + var ret = this._super( a, a*2 ); same( ret, 25, "super returned value" ); } }); @@ -382,7 +382,7 @@ test( "._superApply()", function() { same( this, instance, "this is correct in testWidget2" ); same( a, 5, "parameter passed to testWidget2" ); same( b, 10, "second parameter passed to testWidget2" ); - return this._superApply( "method", arguments ); + return this._superApply( arguments ); } }); @@ -391,7 +391,7 @@ test( "._superApply()", function() { same( this, instance, "this is correct in testWidget3" ); same( a, 5, "parameter passed to testWidget3" ); same( b, 10, "second parameter passed to testWidget3" ); - var ret = this._superApply( "method", arguments ); + var ret = this._superApply( arguments ); same( ret, 15, "super returned value" ); } }); @@ -1031,7 +1031,7 @@ test( "redefine", function() { $.widget( "ui.testWidget", $.ui.testWidget, { method: function( str ) { equal( str, "foo", "new invoked with correct parameter" ); - this._super( "method", "bar" ); + this._super(); } }); diff --git a/ui/jquery.ui.accordion.js b/ui/jquery.ui.accordion.js index 8289ee81b8a..127099d597a 100644 --- a/ui/jquery.ui.accordion.js +++ b/ui/jquery.ui.accordion.js @@ -12,7 +12,7 @@ * jquery.ui.widget.js */ (function( $, undefined ) { - + // TODO: use ui-accordion-header-active class and fix styling $.widget( "ui.accordion", { version: "@VERSION", @@ -167,7 +167,7 @@ $.widget( "ui.accordion", { this._setupEvents( value ); } - this._super( "_setOption", key, value ); + this._super( key, value ); // setting collapsible: false while collapsed; open first panel if ( key === "collapsible" && !value && this.options.active === false ) { @@ -244,7 +244,7 @@ $.widget( "ui.accordion", { if ( position === "absolute" || position === "fixed" ) { return; } - maxHeight -= elem.outerHeight( true ); + maxHeight -= elem.outerHeight( true ); }); if ( overflow ) { parent.css( "overflow", overflow ); @@ -437,7 +437,7 @@ $.extend( $.ui.accordion, { options.prevHide.stop( true, true ); options.toHide = options.prevShow; } - + var showOverflow = options.toShow.css( "overflow" ), hideOverflow = options.toHide.css( "overflow" ), percentDone = 0, @@ -449,7 +449,7 @@ $.extend( $.ui.accordion, { easing: "swing", duration: 300 }, options, additions ); - + options.widget.lastToggle = options; if ( !options.toHide.size() ) { diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 4e528dce43f..9871b52d773 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -291,7 +291,7 @@ $.widget( "ui.autocomplete", { }, _setOption: function( key, value ) { - this._super( "_setOption", key, value ); + this._super( key, value ); if ( key === "source" ) { this._initSource(); } diff --git a/ui/jquery.ui.button.js b/ui/jquery.ui.button.js index 20eb2ca89fe..18a95056330 100644 --- a/ui/jquery.ui.button.js +++ b/ui/jquery.ui.button.js @@ -269,7 +269,7 @@ $.widget( "ui.button", { }, _setOption: function( key, value ) { - this._super( "_setOption", key, value ); + this._super( key, value ); if ( key === "disabled" ) { if ( value ) { this.element.prop( "disabled", true ); @@ -326,7 +326,7 @@ $.widget( "ui.button", { .text(), icons = this.options.icons, multipleIcons = icons.primary && icons.secondary, - buttonClasses = []; + buttonClasses = []; if ( icons.primary || icons.secondary ) { if ( this.options.text ) { @@ -365,7 +365,7 @@ $.widget( "ui.buttonset", { _create: function() { this.element.addClass( "ui-buttonset" ); }, - + _init: function() { this.refresh(); }, @@ -375,12 +375,12 @@ $.widget( "ui.buttonset", { this.buttons.button( "option", key, value ); } - this._super( "_setOption", key, value ); + this._super( key, value ); }, - + refresh: function() { var rtl = this.element.css( "direction" ) === "rtl"; - + this.buttons = this.element.find( this.options.items ) .filter( ":ui-button" ) .button( "refresh" ) diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 9c9a9b6fc74..49ef8f64b2f 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -169,7 +169,7 @@ $.widget("ui.dialog", { _destroy: function() { var self = this; - + if ( self.overlay ) { self.overlay.destroy(); } @@ -196,7 +196,7 @@ $.widget("ui.dialog", { var self = this, maxZ, thisZ; - + if ( false === self._trigger( "beforeClose", event ) ) { return; } @@ -493,7 +493,7 @@ $.widget("ui.dialog", { at: myAt.join( " " ), offset: offset.join( " " ) }; - } + } position = $.extend( {}, $.ui.dialog.prototype.options.position, position ); } else { @@ -518,7 +518,7 @@ $.widget("ui.dialog", { $.each( options, function( key, value ) { self._setOption( key, value ); - + if ( key in sizeRelatedOptions ) { resize = true; } @@ -564,7 +564,7 @@ $.widget("ui.dialog", { if ( isDraggable && !value ) { uiDialog.draggable( "destroy" ); } - + if ( !isDraggable && value ) { self._makeDraggable(); } @@ -596,7 +596,7 @@ $.widget("ui.dialog", { break; } - this._super( "_setOption", key, value ); + this._super( key, value ); }, _size: function() { @@ -627,7 +627,7 @@ $.widget("ui.dialog", { }) .height(); minContentHeight = Math.max( 0, options.minHeight - nonContentHeight ); - + if ( options.height === "auto" ) { // only needed for IE6 support if ( $.support.minHeight ) { @@ -704,7 +704,7 @@ $.extend( $.ui.dialog.overlay, { $( document ).bind( "keydown.dialog-overlay", function( event ) { if ( dialog.options.closeOnEscape && !event.isDefaultPrevented() && event.keyCode && event.keyCode === $.ui.keyCode.ESCAPE ) { - + dialog.close( event ); event.preventDefault(); } diff --git a/ui/jquery.ui.progressbar.js b/ui/jquery.ui.progressbar.js index 18747068188..f754f61a4b8 100644 --- a/ui/jquery.ui.progressbar.js +++ b/ui/jquery.ui.progressbar.js @@ -68,7 +68,7 @@ $.widget( "ui.progressbar", { } } - this._super( "_setOption", key, value ); + this._super( key, value ); }, _value: function() { diff --git a/ui/jquery.ui.spinner.js b/ui/jquery.ui.spinner.js index 5623722db27..b78b4dbea1a 100644 --- a/ui/jquery.ui.spinner.js +++ b/ui/jquery.ui.spinner.js @@ -318,7 +318,7 @@ $.widget( "ui.spinner", { return; } - this._super( "_setOption", key, value ); + this._super( key, value ); if ( key === "disabled" ) { if ( value ) { @@ -332,7 +332,7 @@ $.widget( "ui.spinner", { }, _setOptions: modifier(function( options ) { - this._super( "_setOptions", options ); + this._super( options ); this._value( this.element.val() ); }), @@ -387,7 +387,7 @@ $.widget( "ui.spinner", { .removeAttr( "aria-valuemin" ) .removeAttr( "aria-valuemax" ) .removeAttr( "aria-valuenow" ); - this._super( "destroy" ); + this._super(); this.uiSpinner.replaceWith( this.element ); }, diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js index 5eaab1aae9e..5c9fc1326ae 100644 --- a/ui/jquery.ui.tabs.js +++ b/ui/jquery.ui.tabs.js @@ -136,7 +136,7 @@ $.widget( "ui.tabs", { return; } - this._super( "_setOption", key, value); + this._super( key, value); // setting collapsible: false while collapsed; open first panel if ( key === "collapsible" && !value && this.options.active === false ) { @@ -323,7 +323,7 @@ $.widget( "ui.tabs", { if ( tab.hasClass( "ui-state-disabled" ) || // tab is already loading - tab.hasClass( "ui-tabs-loading" ) || + tab.hasClass( "ui-tabs-loading" ) || // can't switch durning an animation that.running || // click on active header, but not collapsible @@ -555,9 +555,9 @@ $.widget( "ui.tabs", { if ( status === "abort" ) { self.panels.stop( false, true ); } - + self.lis.eq( index ).removeClass( "ui-tabs-loading" ); - + if ( jqXHR === self.xhr ) { delete self.xhr; } @@ -674,13 +674,13 @@ if ( $.uiBackCompat !== false ) { spinner: "Loading…" }, _create: function() { - this._super( "_create" ); + this._super(); this._bind({ tabsbeforeload: function( event, ui ) { if ( !this.options.spinner ) { return; } - + var span = ui.tab.find( "span" ), html = span.html(); span.html( this.options.spinner ); @@ -973,7 +973,7 @@ if ( $.uiBackCompat !== false ) { } options.active = active; } - this._super( "_create" ); + this._super(); }, _cookie: function( active ) { var cookie = [ this.cookie || @@ -985,19 +985,19 @@ if ( $.uiBackCompat !== false ) { return $.cookie.apply( null, cookie ); }, _refresh: function() { - this._super( "_refresh" ); + this._super(); if ( this.options.cookie ) { this._cookie( this.options.active, this.options.cookie ); } }, _eventHandler: function( event ) { - this._superApply( "_eventHandler", arguments ); + this._superApply( arguments ); if ( this.options.cookie ) { this._cookie( this.options.active, this.options.cookie ); } }, _destroy: function() { - this._super( "_destroy" ); + this._super(); if ( this.options.cookie ) { this._cookie( null, this.options.cookie ); } @@ -1012,7 +1012,7 @@ if ( $.uiBackCompat !== false ) { _data.panel = _data.panel[ 0 ]; _data.tab = _data.tab[ 0 ]; } - return this._super( "_trigger", type, event, _data ); + return this._super( type, event, _data ); } }); } diff --git a/ui/jquery.ui.tooltip.js b/ui/jquery.ui.tooltip.js index 35b6f9b5020..a006f3bf79a 100644 --- a/ui/jquery.ui.tooltip.js +++ b/ui/jquery.ui.tooltip.js @@ -54,7 +54,7 @@ $.widget( "ui.tooltip", { // disable element style changes return; } - this._super( "_setOption", key, value ); + this._super( key, value ); }, _disable: function() { diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 294e321a91f..53cde389e2a 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -62,11 +62,11 @@ $.widget = function( name, base, prototype ) { $.each( prototype, function( prop, value ) { if ( $.isFunction( value ) ) { prototype[ prop ] = (function() { - var _super = function( method ) { - return base.prototype[ method ].apply( this, slice.call( arguments, 1 ) ); + var _super = function() { + return base.prototype[ prop ].apply( this, arguments ); }; - var _superApply = function( method, args ) { - return base.prototype[ method ].apply( this, args ); + var _superApply = function( args ) { + return base.prototype[ prop ].apply( this, args ); }; return function() { var __super = this._super, From 93214d6ddccb04e521db2cd40feeb6be70bf80a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 21 Nov 2011 08:43:08 -0500 Subject: [PATCH 48/63] Widget tests: Fixed _super() call in redefine test. --- tests/unit/widget/widget_core.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/widget/widget_core.js b/tests/unit/widget/widget_core.js index edf1ae0fc7e..2e55ad70318 100644 --- a/tests/unit/widget/widget_core.js +++ b/tests/unit/widget/widget_core.js @@ -1031,7 +1031,7 @@ test( "redefine", function() { $.widget( "ui.testWidget", $.ui.testWidget, { method: function( str ) { equal( str, "foo", "new invoked with correct parameter" ); - this._super(); + this._super( "bar" ); } }); From 91ef69d7503f11f2b6223b9c0061fca51e3a006f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 21 Nov 2011 11:14:19 -0500 Subject: [PATCH 49/63] Widget: Don't use $.event.props when creating events. --- ui/jquery.ui.widget.js | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 53cde389e2a..0d52fb53405 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -374,29 +374,28 @@ $.Widget.prototype = { }, _trigger: function( type, event, data ) { - var callback = this.options[ type ], - args; + var args, prop, orig, + callback = this.options[ type ]; + data = data || {}; event = $.Event( event ); event.type = ( type === this.widgetEventPrefix ? type : this.widgetEventPrefix + type ).toLowerCase(); - data = data || {}; + // the original event may come from any element + // so we need to reset the target on the new event + event.target = this.element[ 0 ]; // copy original event properties over to the new event - // this would happen if we could call $.event.fix instead of $.Event - // but we don't have a way to force an event to be fixed multiple times - if ( event.originalEvent ) { - for ( var i = $.event.props.length, prop; i; ) { - prop = $.event.props[ --i ]; - event[ prop ] = event.originalEvent[ prop ]; + orig = event.originalEvent; + if ( orig ) { + for ( prop in orig ) { + if ( !( prop in event ) ) { + event[ prop ] = orig[ prop ]; + } } } - // the original event may come from any element - // so we need to reset the target on the new event - event.target = this.element[0]; - this.element.trigger( event, data ); args = $.isArray( data ) ? From 5fb9629766f10a9119e0099bd8aee06f86cc3f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Mon, 21 Nov 2011 11:31:51 -0500 Subject: [PATCH 50/63] Widget: Simplify data normalization in _trigger(). --- ui/jquery.ui.widget.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ui/jquery.ui.widget.js b/ui/jquery.ui.widget.js index 0d52fb53405..4f47a008b05 100644 --- a/ui/jquery.ui.widget.js +++ b/ui/jquery.ui.widget.js @@ -374,7 +374,7 @@ $.Widget.prototype = { }, _trigger: function( type, event, data ) { - var args, prop, orig, + var prop, orig, callback = this.options[ type ]; data = data || {}; @@ -397,13 +397,8 @@ $.Widget.prototype = { } this.element.trigger( event, data ); - - args = $.isArray( data ) ? - [ event ].concat( data ) : - [ event, data ]; - return !( $.isFunction( callback ) && - callback.apply( this.element[0], args ) === false || + callback.apply( this.element[0], [ event ].concat( data ) ) === false || event.isDefaultPrevented() ); } }; From fdc332ed5fb7f7e688151d5cae9b450569d73da5 Mon Sep 17 00:00:00 2001 From: "Michael P. Jung" Date: Mon, 21 Nov 2011 16:16:32 -0500 Subject: [PATCH 51/63] Droppable: Make sure._drop is called for all relevant droppables. Fixes #6009 - Upper droppable should receive draggable. Fixes #6085 - Parent droppable takes precedence over dynamically created child droppable. --- ui/jquery.ui.droppable.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/jquery.ui.droppable.js b/ui/jquery.ui.droppable.js index 3942c6b8f49..62bba2abad9 100644 --- a/ui/jquery.ui.droppable.js +++ b/ui/jquery.ui.droppable.js @@ -224,7 +224,7 @@ $.ui.ddmanager = { if(!this.options) return; if (!this.options.disabled && this.visible && $.ui.intersect(draggable, this, this.options.tolerance)) - dropped = dropped || this._drop.call(this, event); + dropped = this._drop.call(this, event) || dropped; if (!this.options.disabled && this.visible && this.accept.call(this.element[0],(draggable.currentItem || draggable.element))) { this.isout = 1; this.isover = 0; From 35dd0417bdb442ad00a9eb37a85db5ddf1b14615 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 22 Nov 2011 08:31:11 -0500 Subject: [PATCH 52/63] Selectable: Explicitly check event.ctrlKey now that jQuery differentiates between meta and ctrl. Fixes #7858 - ctrl-click to select multiple elements not working. --- ui/jquery.ui.selectable.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/jquery.ui.selectable.js b/ui/jquery.ui.selectable.js index d7b24d4e399..408771eff7d 100644 --- a/ui/jquery.ui.selectable.js +++ b/ui/jquery.ui.selectable.js @@ -104,7 +104,7 @@ $.widget("ui.selectable", $.ui.mouse, { this.selectees.filter('.ui-selected').each(function() { var selectee = $.data(this, "selectable-item"); selectee.startselected = true; - if (!event.metaKey) { + if (!event.metaKey && !event.ctrlKey) { selectee.$element.removeClass('ui-selected'); selectee.selected = false; selectee.$element.addClass('ui-unselecting'); @@ -119,7 +119,7 @@ $.widget("ui.selectable", $.ui.mouse, { $(event.target).parents().andSelf().each(function() { var selectee = $.data(this, "selectable-item"); if (selectee) { - var doSelect = !event.metaKey || !selectee.$element.hasClass('ui-selected'); + var doSelect = (!event.metaKey && !event.ctrlKey) || !selectee.$element.hasClass('ui-selected'); selectee.$element .removeClass(doSelect ? "ui-unselecting" : "ui-selected") .addClass(doSelect ? "ui-selecting" : "ui-unselecting"); @@ -189,7 +189,7 @@ $.widget("ui.selectable", $.ui.mouse, { } else { // UNSELECT if (selectee.selecting) { - if (event.metaKey && selectee.startselected) { + if ((event.metaKey || event.ctrlKey) && selectee.startselected) { selectee.$element.removeClass('ui-selecting'); selectee.selecting = false; selectee.$element.addClass('ui-selected'); @@ -208,7 +208,7 @@ $.widget("ui.selectable", $.ui.mouse, { } } if (selectee.selected) { - if (!event.metaKey && !selectee.startselected) { + if (!event.metaKey && !event.ctrlKey && !selectee.startselected) { selectee.$element.removeClass('ui-selected'); selectee.selected = false; From 54fb1441fe2f9595a8376b9f4bf7d766469f5045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 22 Nov 2011 08:43:09 -0500 Subject: [PATCH 53/63] Upgrade jQuery to 1.7.1. --- demos/accordion/collapsible.html | 2 +- demos/accordion/custom-icons.html | 2 +- demos/accordion/default.html | 2 +- demos/accordion/fillspace.html | 2 +- demos/accordion/hoverintent.html | 2 +- demos/accordion/mouseover.html | 2 +- demos/accordion/no-auto-height.html | 2 +- demos/accordion/sortable.html | 2 +- demos/addClass/default.html | 2 +- demos/animate/default.html | 2 +- demos/autocomplete/categories.html | 2 +- demos/autocomplete/combobox.html | 2 +- demos/autocomplete/custom-data.html | 2 +- demos/autocomplete/default.html | 2 +- demos/autocomplete/folding.html | 2 +- demos/autocomplete/maxheight.html | 2 +- demos/autocomplete/multiple-remote.html | 2 +- demos/autocomplete/multiple.html | 2 +- demos/autocomplete/remote-jsonp.html | 2 +- demos/autocomplete/remote-with-cache.html | 2 +- demos/autocomplete/remote.html | 2 +- demos/autocomplete/xml.html | 2 +- demos/button/checkbox.html | 2 +- demos/button/default.html | 2 +- demos/button/icons.html | 2 +- demos/button/radio.html | 2 +- demos/button/splitbutton.html | 2 +- demos/button/toolbar.html | 2 +- demos/datepicker/alt-field.html | 2 +- demos/datepicker/animation.html | 2 +- demos/datepicker/buttonbar.html | 2 +- demos/datepicker/date-formats.html | 2 +- demos/datepicker/date-range.html | 2 +- demos/datepicker/default.html | 2 +- demos/datepicker/dropdown-month-year.html | 2 +- demos/datepicker/icon-trigger.html | 2 +- demos/datepicker/inline.html | 2 +- demos/datepicker/localization.html | 2 +- demos/datepicker/min-max.html | 2 +- demos/datepicker/multiple-calendars.html | 2 +- demos/datepicker/other-months.html | 2 +- demos/datepicker/show-week.html | 2 +- demos/dialog/animated.html | 2 +- demos/dialog/default.html | 2 +- demos/dialog/modal-confirmation.html | 2 +- demos/dialog/modal-form.html | 2 +- demos/dialog/modal-message.html | 2 +- demos/dialog/modal.html | 2 +- demos/draggable/constrain-movement.html | 2 +- demos/draggable/cursor-style.html | 2 +- demos/draggable/default.html | 2 +- demos/draggable/delay-start.html | 2 +- demos/draggable/events.html | 2 +- demos/draggable/handle.html | 2 +- demos/draggable/revert.html | 2 +- demos/draggable/scroll.html | 2 +- demos/draggable/snap-to.html | 2 +- demos/draggable/sortable.html | 2 +- demos/draggable/visual-feedback.html | 2 +- demos/droppable/accepted-elements.html | 2 +- demos/droppable/default.html | 2 +- demos/droppable/photo-manager.html | 2 +- demos/droppable/propagation.html | 2 +- demos/droppable/revert.html | 2 +- demos/droppable/shopping-cart.html | 2 +- demos/droppable/visual-feedback.html | 2 +- demos/effect/default.html | 2 +- demos/effect/easing.html | 2 +- demos/hide/default.html | 2 +- demos/index.html | 2 +- demos/menu/contextmenu.html | 2 +- demos/menu/default.html | 2 +- demos/menu/navigationmenu.html | 2 +- demos/menu/topalignmenu.html | 2 +- demos/menubar/default.html | 2 +- demos/popup/animation.html | 2 +- demos/popup/default.html | 2 +- demos/popup/popup-menu-table.html | 2 +- demos/popup/popup-menu.html | 2 +- demos/popup/tooltip.html | 2 +- demos/position/cycler.html | 2 +- demos/position/default.html | 2 +- demos/progressbar/animated.html | 2 +- demos/progressbar/default.html | 2 +- demos/progressbar/resize.html | 2 +- demos/removeClass/default.html | 2 +- demos/resizable/animate.html | 2 +- demos/resizable/aspect-ratio.html | 2 +- demos/resizable/constrain-area.html | 2 +- demos/resizable/default.html | 2 +- demos/resizable/delay-start.html | 2 +- demos/resizable/helper.html | 2 +- demos/resizable/max-min.html | 2 +- demos/resizable/snap-to-grid.html | 2 +- demos/resizable/synchronous-resize.html | 2 +- demos/resizable/textarea.html | 2 +- demos/resizable/visual-feedback.html | 2 +- demos/selectable/default.html | 2 +- demos/selectable/display-grid.html | 2 +- demos/selectable/serialize.html | 2 +- demos/show/default.html | 2 +- demos/slider/colorpicker.html | 2 +- demos/slider/default.html | 2 +- demos/slider/hotelrooms.html | 2 +- demos/slider/multiple-vertical.html | 2 +- demos/slider/range-vertical.html | 2 +- demos/slider/range.html | 2 +- demos/slider/rangemax.html | 2 +- demos/slider/rangemin.html | 2 +- demos/slider/side-scroll.html | 2 +- demos/slider/slider-vertical.html | 2 +- demos/slider/steps.html | 2 +- demos/slider/tabs.html | 2 +- .../sortable/connect-lists-through-tabs.html | 2 +- demos/sortable/connect-lists.html | 2 +- demos/sortable/default.html | 2 +- demos/sortable/delay-start.html | 2 +- demos/sortable/display-grid.html | 2 +- demos/sortable/empty-lists.html | 2 +- demos/sortable/items.html | 2 +- demos/sortable/placeholder.html | 2 +- demos/sortable/portlets.html | 2 +- demos/spinner/currency.html | 2 +- demos/spinner/decimal.html | 2 +- demos/spinner/default.html | 2 +- demos/spinner/latlong.html | 2 +- demos/spinner/overflow.html | 2 +- demos/spinner/time.html | 2 +- demos/switchClass/default.html | 2 +- demos/tabs/ajax.html | 2 +- demos/tabs/bottom.html | 2 +- demos/tabs/collapsible.html | 2 +- demos/tabs/cookie.html | 2 +- demos/tabs/default.html | 2 +- demos/tabs/manipulation.html | 2 +- demos/tabs/mouseover.html | 2 +- demos/tabs/sortable.html | 2 +- demos/tabs/vertical.html | 2 +- demos/toggle/default.html | 2 +- demos/toggleClass/default.html | 2 +- demos/tooltip/custom-animation.html | 2 +- demos/tooltip/custom-content.html | 2 +- demos/tooltip/custom-style.html | 2 +- demos/tooltip/default.html | 2 +- demos/tooltip/forms.html | 2 +- demos/tooltip/tracking.html | 2 +- demos/tooltip/video-player.html | 2 +- demos/widget/default.html | 2 +- jquery-1.7.js => jquery-1.7.1.js | 612 +- tests/index.html | 2 +- tests/jquery-1.7.1.js | 9266 +++++++++++++++++ tests/jquery.js | 2 +- tests/static/button/default.html | 2 +- tests/static/datepicker/datepicker.html | 2 +- tests/static/datepicker/default.html | 2 +- tests/static/icons.html | 2 +- tests/static/slider/default.html | 2 +- tests/static/slider/default_vertical.html | 2 +- tests/static/slider/slider_horizontal.html | 2 +- .../slider/slider_horizontal_range.html | 2 +- .../slider/slider_horizontal_range_max.html | 2 +- .../slider/slider_horizontal_range_min.html | 2 +- tests/static/slider/slider_vertical.html | 2 +- .../static/slider/slider_vertical_range.html | 2 +- .../slider/slider_vertical_range_max.html | 2 +- .../slider/slider_vertical_range_min.html | 2 +- tests/unit/accordion/all.html | 2 +- tests/unit/all.html | 2 +- tests/unit/autocomplete/all.html | 2 +- tests/unit/button/all.html | 2 +- tests/unit/core/all.html | 2 +- tests/unit/datepicker/all.html | 2 +- tests/unit/dialog/all.html | 2 +- tests/unit/draggable/all.html | 2 +- tests/unit/droppable/all.html | 2 +- tests/unit/effects/all.html | 2 +- tests/unit/menu/all.html | 2 +- tests/unit/position/all.html | 2 +- tests/unit/progressbar/all.html | 2 +- tests/unit/resizable/all.html | 2 +- tests/unit/selectable/all.html | 2 +- tests/unit/slider/all.html | 2 +- tests/unit/sortable/all.html | 2 +- tests/unit/spinner/all.html | 2 +- tests/unit/subsuite.js | 2 +- tests/unit/tabs/all.html | 2 +- tests/unit/tooltip/all.html | 2 +- tests/unit/widget/all.html | 2 +- tests/visual/addClass/addClass_queue.html | 2 +- tests/visual/button/button.html | 2 +- tests/visual/button/button_disabled_true.html | 2 +- tests/visual/button/button_performance.html | 2 +- tests/visual/button/button_ticket_5254.html | 2 +- tests/visual/button/button_ticket_5261.html | 2 +- tests/visual/button/button_ticket_5278.html | 2 +- tests/visual/compound/accordion_dialog.html | 2 +- tests/visual/compound/accordion_tabs.html | 2 +- tests/visual/compound/datepicker_dialog.html | 2 +- .../visual/compound/draggable_accordion.html | 2 +- ...le_accordion_accordion_tabs_draggable.html | 2 +- .../sortable_accordion_sortable_tabs.html | 2 +- tests/visual/compound/tabs_tabs.html | 2 +- tests/visual/compound/tabs_tooltips.html | 2 +- tests/visual/compound/widgets_in_dialog.html | 2 +- .../dialog/dialog_on_page_with_large_dom.html | 2 +- tests/visual/effects/effects.all.html | 2 +- tests/visual/effects/effects.scale.html | 2 +- tests/visual/menu/drilldown.html | 2 +- tests/visual/menu/menu.html | 2 +- tests/visual/menu/tablemenu.html | 2 +- tests/visual/position/position.html | 2 +- tests/visual/position/position_fit.html | 2 +- tests/visual/position/position_flip.html | 2 +- tests/visual/position/position_flipfit.html | 2 +- tests/visual/position/position_margin.html | 2 +- tests/visual/position/position_within.html | 2 +- tests/visual/theme.html | 2 +- tests/visual/tooltip/animations.html | 2 +- tests/visual/tooltip/callout.html | 2 +- tests/visual/tooltip/tooltip.html | 2 +- 220 files changed, 9773 insertions(+), 541 deletions(-) rename jquery-1.7.js => jquery-1.7.1.js (95%) create mode 100644 tests/jquery-1.7.1.js diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index 85789e6c62c..310e550a93e 100644 --- a/demos/accordion/collapsible.html +++ b/demos/accordion/collapsible.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Collapse content - + diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 2351b9bb012..e2fc9bdb140 100644 --- a/demos/accordion/custom-icons.html +++ b/demos/accordion/custom-icons.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Customize icons - + diff --git a/demos/accordion/default.html b/demos/accordion/default.html index 99f17df4d1a..4afc2b129c0 100644 --- a/demos/accordion/default.html +++ b/demos/accordion/default.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Default functionality - + diff --git a/demos/accordion/fillspace.html b/demos/accordion/fillspace.html index bcbf6404d88..3a7d81edc9c 100644 --- a/demos/accordion/fillspace.html +++ b/demos/accordion/fillspace.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Fill space - + diff --git a/demos/accordion/hoverintent.html b/demos/accordion/hoverintent.html index e39fb6d5213..09360d62da4 100644 --- a/demos/accordion/hoverintent.html +++ b/demos/accordion/hoverintent.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Open on hoverintent - + diff --git a/demos/accordion/mouseover.html b/demos/accordion/mouseover.html index bd19ddd4e68..6f4bc2e6949 100644 --- a/demos/accordion/mouseover.html +++ b/demos/accordion/mouseover.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Open on mouseover - + diff --git a/demos/accordion/no-auto-height.html b/demos/accordion/no-auto-height.html index e349d1a945e..c51880b7138 100644 --- a/demos/accordion/no-auto-height.html +++ b/demos/accordion/no-auto-height.html @@ -4,7 +4,7 @@ jQuery UI Accordion - No auto height - + diff --git a/demos/accordion/sortable.html b/demos/accordion/sortable.html index 0afa3057b1f..a0a8993444c 100644 --- a/demos/accordion/sortable.html +++ b/demos/accordion/sortable.html @@ -4,7 +4,7 @@ jQuery UI Accordion - Sortable - + diff --git a/demos/addClass/default.html b/demos/addClass/default.html index 7de7c56f5b3..38acd8b4cae 100644 --- a/demos/addClass/default.html +++ b/demos/addClass/default.html @@ -4,7 +4,7 @@ jQuery UI Effects - addClass demo - + - + diff --git a/tests/visual/button/button_disabled_true.html b/tests/visual/button/button_disabled_true.html index 5284dc022a4..ac21a568388 100644 --- a/tests/visual/button/button_disabled_true.html +++ b/tests/visual/button/button_disabled_true.html @@ -5,7 +5,7 @@ Button Visual Test : Button disabled true - + diff --git a/tests/visual/button/button_performance.html b/tests/visual/button/button_performance.html index 40d53d77437..439e2c1ae95 100644 --- a/tests/visual/button/button_performance.html +++ b/tests/visual/button/button_performance.html @@ -9,7 +9,7 @@ #toolbar { margin-top: 2em; padding:0.2em; } #ops1, #ops2, #format, #mode { margin-right: 1em } - + diff --git a/tests/visual/button/button_ticket_5254.html b/tests/visual/button/button_ticket_5254.html index ccd237f312a..14d27698ad8 100644 --- a/tests/visual/button/button_ticket_5254.html +++ b/tests/visual/button/button_ticket_5254.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5254 - + diff --git a/tests/visual/button/button_ticket_5261.html b/tests/visual/button/button_ticket_5261.html index ad92c7aa9e7..0024393ee2b 100644 --- a/tests/visual/button/button_ticket_5261.html +++ b/tests/visual/button/button_ticket_5261.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5261 - + diff --git a/tests/visual/button/button_ticket_5278.html b/tests/visual/button/button_ticket_5278.html index ac2c1cff0a0..477a0b398b7 100644 --- a/tests/visual/button/button_ticket_5278.html +++ b/tests/visual/button/button_ticket_5278.html @@ -5,7 +5,7 @@ Button Visual Test : Button ticket #5278 - + diff --git a/tests/visual/compound/accordion_dialog.html b/tests/visual/compound/accordion_dialog.html index e11a35098f8..7b3b227edb9 100644 --- a/tests/visual/compound/accordion_dialog.html +++ b/tests/visual/compound/accordion_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Dialog - + diff --git a/tests/visual/compound/accordion_tabs.html b/tests/visual/compound/accordion_tabs.html index f356179c9db..e98edaf7c53 100644 --- a/tests/visual/compound/accordion_tabs.html +++ b/tests/visual/compound/accordion_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Tabs - + diff --git a/tests/visual/compound/datepicker_dialog.html b/tests/visual/compound/datepicker_dialog.html index 1762e610895..0ef3f9bbc9d 100644 --- a/tests/visual/compound/datepicker_dialog.html +++ b/tests/visual/compound/datepicker_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : Datepicker in Dialog - + diff --git a/tests/visual/compound/draggable_accordion.html b/tests/visual/compound/draggable_accordion.html index 634ffbe2dc6..396d0e29ce9 100644 --- a/tests/visual/compound/draggable_accordion.html +++ b/tests/visual/compound/draggable_accordion.html @@ -5,7 +5,7 @@ Compound Visual Test : Draggable in Accordion - + diff --git a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html index 3f211b04640..a1199c8261a 100644 --- a/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html +++ b/tests/visual/compound/draggable_accordion_accordion_tabs_draggable.html @@ -5,7 +5,7 @@ Compound Visual Test : Draggable in Accordion - + diff --git a/tests/visual/compound/sortable_accordion_sortable_tabs.html b/tests/visual/compound/sortable_accordion_sortable_tabs.html index c055016b628..02a6c0dec29 100644 --- a/tests/visual/compound/sortable_accordion_sortable_tabs.html +++ b/tests/visual/compound/sortable_accordion_sortable_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Accordion in Tabs - + diff --git a/tests/visual/compound/tabs_tabs.html b/tests/visual/compound/tabs_tabs.html index 7398bef3ae1..12515a4c5b3 100644 --- a/tests/visual/compound/tabs_tabs.html +++ b/tests/visual/compound/tabs_tabs.html @@ -5,7 +5,7 @@ Compound Visual Test : Tabs in Tabs - + diff --git a/tests/visual/compound/tabs_tooltips.html b/tests/visual/compound/tabs_tooltips.html index d8d132a30cd..38b85e58b7e 100644 --- a/tests/visual/compound/tabs_tooltips.html +++ b/tests/visual/compound/tabs_tooltips.html @@ -5,7 +5,7 @@ Compound Visual Test : Tabs in Tabs - + diff --git a/tests/visual/compound/widgets_in_dialog.html b/tests/visual/compound/widgets_in_dialog.html index 999b67b0f7f..b711efa9c1b 100644 --- a/tests/visual/compound/widgets_in_dialog.html +++ b/tests/visual/compound/widgets_in_dialog.html @@ -5,7 +5,7 @@ Compound Visual Test : All Widgets in Dialog - + diff --git a/tests/visual/dialog/dialog_on_page_with_large_dom.html b/tests/visual/dialog/dialog_on_page_with_large_dom.html index 2a93071949a..c7c1056968f 100644 --- a/tests/visual/dialog/dialog_on_page_with_large_dom.html +++ b/tests/visual/dialog/dialog_on_page_with_large_dom.html @@ -5,7 +5,7 @@ Dialog Visual Test : Modal Dialog in Large DOM - + diff --git a/tests/visual/effects/effects.all.html b/tests/visual/effects/effects.all.html index 838e17a3c10..ddc6654376a 100644 --- a/tests/visual/effects/effects.all.html +++ b/tests/visual/effects/effects.all.html @@ -4,7 +4,7 @@ jQuery UI Effects Test Suite - + diff --git a/tests/visual/effects/effects.scale.html b/tests/visual/effects/effects.scale.html index 2d35cee18b1..845625e2e1e 100644 --- a/tests/visual/effects/effects.scale.html +++ b/tests/visual/effects/effects.scale.html @@ -4,7 +4,7 @@ jQuery UI Effects Test Suite - + diff --git a/tests/visual/menu/drilldown.html b/tests/visual/menu/drilldown.html index 838583e88d9..a2ae9e88ff4 100644 --- a/tests/visual/menu/drilldown.html +++ b/tests/visual/menu/drilldown.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/menu/menu.html b/tests/visual/menu/menu.html index 80062a42348..50837f43e19 100644 --- a/tests/visual/menu/menu.html +++ b/tests/visual/menu/menu.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/menu/tablemenu.html b/tests/visual/menu/tablemenu.html index be1d0646041..bce64bfb510 100644 --- a/tests/visual/menu/tablemenu.html +++ b/tests/visual/menu/tablemenu.html @@ -4,7 +4,7 @@ Menu Visual Test: Default - + diff --git a/tests/visual/position/position.html b/tests/visual/position/position.html index e28a6ae692f..9d29abe2847 100644 --- a/tests/visual/position/position.html +++ b/tests/visual/position/position.html @@ -5,7 +5,7 @@ Position Visual Test: Default - + diff --git a/tests/visual/position/position_fit.html b/tests/visual/position/position_fit.html index 73a683dcedf..78751d3efd9 100644 --- a/tests/visual/position/position_fit.html +++ b/tests/visual/position/position_fit.html @@ -5,7 +5,7 @@ Position Visual Test: Fit - + diff --git a/tests/visual/position/position_flip.html b/tests/visual/position/position_flip.html index 766576fde40..7b26f6a9a51 100644 --- a/tests/visual/position/position_flip.html +++ b/tests/visual/position/position_flip.html @@ -5,7 +5,7 @@ Position Visual Test: Flip - + diff --git a/tests/visual/position/position_flipfit.html b/tests/visual/position/position_flipfit.html index edb1adecfd8..b5cf82946b2 100644 --- a/tests/visual/position/position_flipfit.html +++ b/tests/visual/position/position_flipfit.html @@ -5,7 +5,7 @@ Position Visual Test: FlipFit - + diff --git a/tests/visual/position/position_margin.html b/tests/visual/position/position_margin.html index 1e6608d9159..52b80083749 100644 --- a/tests/visual/position/position_margin.html +++ b/tests/visual/position/position_margin.html @@ -5,7 +5,7 @@ Position Visual Test: Default - + diff --git a/tests/visual/position/position_within.html b/tests/visual/position/position_within.html index f348c5e8df3..156c82e5dc8 100644 --- a/tests/visual/position/position_within.html +++ b/tests/visual/position/position_within.html @@ -7,7 +7,7 @@ - + diff --git a/tests/visual/theme.html b/tests/visual/theme.html index d10f2444f35..131cc41d709 100644 --- a/tests/visual/theme.html +++ b/tests/visual/theme.html @@ -4,7 +4,7 @@ jQuery UI Example Page - + diff --git a/tests/visual/tooltip/animations.html b/tests/visual/tooltip/animations.html index b1ffc891466..993fbbd859a 100644 --- a/tests/visual/tooltip/animations.html +++ b/tests/visual/tooltip/animations.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + diff --git a/tests/visual/tooltip/callout.html b/tests/visual/tooltip/callout.html index 3a498b2a655..79d8d32bfa6 100644 --- a/tests/visual/tooltip/callout.html +++ b/tests/visual/tooltip/callout.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + diff --git a/tests/visual/tooltip/tooltip.html b/tests/visual/tooltip/tooltip.html index 5eb1ab0a784..b282a73b7b4 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + From 2445e20a856192179590c0d08e5d73479df1e52d Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 23 Nov 2011 13:39:45 -0500 Subject: [PATCH 54/63] Autocomplete: Making sure we do not show search menu after a blur. Fixed #7423 - Tab out of autocomplete with remote source can leave menu showing. --- .../unit/autocomplete/autocomplete_events.js | 19 +++++++++++++++++++ ui/jquery.ui.autocomplete.js | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index 286d902f1f8..d6a008ea2cb 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -157,6 +157,25 @@ asyncTest( "cancel select", function() { }, 50 ); }); +asyncTest( "blur during remote search", function() { + expect( 1 ); + var ac = $( "#autocomplete" ).autocomplete({ + delay: 0, + source: function( request, response ) { + ok( true, "trigger request" ); + ac.simulate( "blur" ); + setTimeout(function() { + response([ "result" ]); + start(); + }, 100 ); + }, + open: function() { + ok( false, "opened after a blur" ); + } + }); + ac.val( "ro" ).keydown(); +}); + /* TODO previous fix broke more than it fixed, disabling this for now - messed up regular menu select event test("blur without selection", function() { expect(1); diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index 9871b52d773..dbda2058ed8 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -184,6 +184,7 @@ $.widget( "ui.autocomplete", { } clearTimeout( self.searching ); + self.cancelSearch = true; // clicks on the menu (or a button to trigger a search) will cause a blur event self.closing = setTimeout(function() { self.close( event ); @@ -373,6 +374,7 @@ $.widget( "ui.autocomplete", { _search: function( value ) { this.pending++; this.element.addClass( "ui-autocomplete-loading" ); + this.cancelSearch = false; this.source( { term: value }, this.response ); }, @@ -382,7 +384,7 @@ $.widget( "ui.autocomplete", { content = this._normalize( content ); } this._trigger( "response", null, { content: content } ); - if ( !this.options.disabled && content && content.length ) { + if ( !this.options.disabled && content && content.length && !this.cancelSearch ) { this._suggest( content ); this._trigger( "open" ); } else { From 2b9b2f28ecd8b631fede6ca690bd551ddc72e254 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Wed, 23 Nov 2011 14:26:52 -0500 Subject: [PATCH 55/63] Autocomplete: Removed commented out test. --- tests/unit/autocomplete/autocomplete_events.js | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index d6a008ea2cb..7b51ec4c08c 100644 --- a/tests/unit/autocomplete/autocomplete_events.js +++ b/tests/unit/autocomplete/autocomplete_events.js @@ -176,22 +176,4 @@ asyncTest( "blur during remote search", function() { ac.val( "ro" ).keydown(); }); -/* TODO previous fix broke more than it fixed, disabling this for now - messed up regular menu select event -test("blur without selection", function() { - expect(1); - var ac = $("#autocomplete").autocomplete({ - delay: 0, - source: data - }); - stop(); - ac.val("j").keydown(); - setTimeout(function() { - $( ".ui-menu-item" ).first().simulate("mouseover"); - ac.simulate("keydown", { keyCode: $.ui.keyCode.TAB }); - deepEqual( ac.val(), "j" ); - start(); - }, 50); -}); -*/ - }( jQuery ) ); From 74a3f2ce0897ce8bdcac2acc997e68e3e8603121 Mon Sep 17 00:00:00 2001 From: kborchers Date: Wed, 23 Nov 2011 22:37:55 -0600 Subject: [PATCH 56/63] Menu: Move mousedown handler into _bind and fix focusing of the Menu after click. Fixes focus issues with Selectmenu and Autocomplete. --- ui/jquery.ui.menu.js | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index bf36a77fe7a..4fe859f4eac 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -40,16 +40,6 @@ $.widget( "ui.menu", { id: this.menuId, role: "menu" }) - // Prevent focus from sticking to links inside menu after clicking - // them (focus should always stay on UL during navigation). - // If the link is clicked, redirect focus to the menu. - // TODO move to _bind below - .bind( "mousedown.menu", function( event ) { - if ( $( event.target).is( "a" ) ) { - event.preventDefault(); - $( this ).focus( 1 ); - } - }) // need to catch all clicks on disabled menu // not possible through _bind .bind( "click.menu", $.proxy( function( event ) { @@ -58,6 +48,11 @@ $.widget( "ui.menu", { } }, this)); this._bind({ + // Prevent focus from sticking to links inside menu after clicking + // them (focus should always stay on UL during navigation). + "mousedown .ui-menu-item > a": function( event ) { + event.preventDefault(); + }, "click .ui-menu-item:has(a)": function( event ) { event.stopImmediatePropagation(); var target = $( event.currentTarget ); @@ -66,6 +61,8 @@ $.widget( "ui.menu", { this.focus( event, target ); } this.select( event ); + // Redirect focus to the menu. + this.element.focus(); }, "mouseover .ui-menu-item": function( event ) { event.stopImmediatePropagation(); From 06f6fa8524a905ec8027b8ba756eb199f2591336 Mon Sep 17 00:00:00 2001 From: meh-cfl Date: Mon, 28 Nov 2011 16:33:23 -0500 Subject: [PATCH 57/63] Autocomplete: Don't invoke a search from arrow keys when the element can have multi-line text. Fixes #7639 - Key up/key down in textarea's should optionally not toggle auto-complete. --- tests/unit/autocomplete/autocomplete_core.js | 86 ++++++++++++++++++++ ui/jquery.ui.autocomplete.js | 26 +++--- 2 files changed, 100 insertions(+), 12 deletions(-) diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js index 3f92aa01f43..d98f56abf6f 100644 --- a/tests/unit/autocomplete/autocomplete_core.js +++ b/tests/unit/autocomplete/autocomplete_core.js @@ -80,4 +80,90 @@ test( "allow form submit on enter when menu is not active", function() { ok( !event.isDefaultPrevented(), "default action is prevented" ); }); +(function() { + test( "up arrow invokes search - input", function() { + arrowsInvokeSearch( "#autocomplete", true, true ); + }); + + test( "down arrow invokes search - input", function() { + arrowsInvokeSearch( "#autocomplete", false, true ); + }); + + test( "up arrow invokes search - textarea", function() { + arrowsInvokeSearch( "#autocomplete-textarea", true, false ); + }); + + test( "down arrow invokes search - textarea", function() { + arrowsInvokeSearch( "#autocomplete-textarea", false, false ); + }); + + test( "up arrow invokes search - contenteditable", function() { + arrowsInvokeSearch( "#autocomplete-contenteditable", true, false ); + }); + + test( "down arrow invokes search - contenteditable", function() { + arrowsInvokeSearch( "#autocomplete-contenteditable", false, false ); + }); + + test( "up arrow moves focus - input", function() { + arrowsMoveFocus( "#autocomplete", true ); + }); + + test( "down arrow moves focus - input", function() { + arrowsMoveFocus( "#autocomplete", false ); + }); + + test( "up arrow moves focus - textarea", function() { + arrowsMoveFocus( "#autocomplete-textarea", true ); + }); + + test( "down arrow moves focus - textarea", function() { + arrowsMoveFocus( "#autocomplete-textarea", false ); + }); + + test( "up arrow moves focus - contenteditable", function() { + arrowsMoveFocus( "#autocomplete-contenteditable", true ); + }); + + test( "down arrow moves focus - contenteditable", function() { + arrowsMoveFocus( "#autocomplete-contenteditable", false ); + }); + + function arrowsInvokeSearch( id, isKeyUp, shouldMove ) { + expect( 1 ); + + var didMove = false, + element = $( id ).autocomplete({ + source: [ "a" ], + delay: 0, + minLength: 0 + }); + element.data( "autocomplete" )._move = function() { + didMove = true; + }; + element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } ); + equal( didMove, shouldMove, "respond to arrow" ); + } + + function arrowsMoveFocus( id, isKeyUp ) { + expect( 1 ); + + var didMove = false, + element = $( id ).autocomplete({ + source: [ "a" ], + delay: 0, + minLength: 0 + }); + element.data( "autocomplete" )._move = function() { + ok( true, "repsond to arrow" ); + }; + element.autocomplete( "search" ); + element.simulate( "keydown", { keyCode: ( isKeyUp ? $.ui.keyCode.UP : $.ui.keyCode.DOWN ) } ); + } +})(); + +(function() { + +})(); + }( jQuery ) ); diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index dbda2058ed8..bd415aa2bb8 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -58,6 +58,7 @@ $.widget( "ui.autocomplete", { suppressKeyPressRepeat, suppressInput; + this.isMultiLine = this.element.is( "textarea,[contenteditable]" ); this.valueMethod = this.element[ this.element.is( "input,textarea" ) ? "val" : "text" ]; this.element @@ -92,15 +93,11 @@ $.widget( "ui.autocomplete", { break; case keyCode.UP: suppressKeyPress = true; - self._move( "previous", event ); - // prevent moving cursor to beginning of text field in some browsers - event.preventDefault(); + self._keyEvent( "previous", event ); break; case keyCode.DOWN: suppressKeyPress = true; - self._move( "next", event ); - // prevent moving cursor to end of text field in some browsers - event.preventDefault(); + self._keyEvent( "next", event ); break; case keyCode.ENTER: case keyCode.NUMPAD_ENTER: @@ -151,14 +148,10 @@ $.widget( "ui.autocomplete", { self._move( "nextPage", event ); break; case keyCode.UP: - self._move( "previous", event ); - // prevent moving cursor to beginning of text field in some browsers - event.preventDefault(); + self._keyEvent( "previous", event ); break; case keyCode.DOWN: - self._move( "next", event ); - // prevent moving cursor to end of text field in some browsers - event.preventDefault(); + self._keyEvent( "next", event ); break; } }) @@ -495,6 +488,15 @@ $.widget( "ui.autocomplete", { _value: function( value ) { return this.valueMethod.apply( this.element, arguments ); + }, + + _keyEvent: function( keyEvent, event ) { + if ( !this.isMultiLine || this.menu.element.is( ":visible" ) ) { + this._move( keyEvent, event ); + + // prevents moving cursor to beginning/end of the text field in some browsers + event.preventDefault(); + } } }); From ce0afde900fb2b55b5766a3e0e3029e24a094a75 Mon Sep 17 00:00:00 2001 From: James Khoury Date: Mon, 28 Nov 2011 16:52:10 -0500 Subject: [PATCH 58/63] Dialog: Modified the dialog._size() to use outerHeight in calculating the nonContentHeight. Fixed #7692 - dialog: dialog height bug is incorrect when .ui-dialog padding set. --- tests/unit/dialog/dialog_options.js | 13 +++++++++---- ui/jquery.ui.dialog.js | 2 +- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index eab577c6998..264c2fb6ee1 100644 --- a/tests/unit/dialog/dialog_options.js +++ b/tests/unit/dialog/dialog_options.js @@ -177,19 +177,24 @@ test("draggable", function() { }); test("height", function() { - expect(3); + expect(4); el = $('
                            ').dialog(); - equals(dlg().height(), 150, "default height"); + equals(dlg().outerHeight(), 150, "default height"); el.remove(); el = $('
                            ').dialog({ height: 237 }); - equals(dlg().height(), 237, "explicit height"); + equals(dlg().outerHeight(), 237, "explicit height"); el.remove(); el = $('
                            ').dialog(); el.dialog('option', 'height', 238); - equals(dlg().height(), 238, "explicit height set after init"); + equals(dlg().outerHeight(), 238, "explicit height set after init"); + el.remove(); + + el = $('
                            ').css("padding", "20px") + .dialog({ height: 240 }); + equals(dlg().outerHeight(), 240, "explicit height with padding"); el.remove(); }); diff --git a/ui/jquery.ui.dialog.js b/ui/jquery.ui.dialog.js index 49ef8f64b2f..3d7638667d9 100644 --- a/ui/jquery.ui.dialog.js +++ b/ui/jquery.ui.dialog.js @@ -625,7 +625,7 @@ $.widget("ui.dialog", { height: "auto", width: options.width }) - .height(); + .outerHeight(); minContentHeight = Math.max( 0, options.minHeight - nonContentHeight ); if ( options.height === "auto" ) { From 439f877516f4f1c32481f95e59380efc3fdfa454 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 28 Nov 2011 18:57:57 -0500 Subject: [PATCH 59/63] Remove whitespace at the end of the Dialog title CSS definition. --- themes/base/jquery.ui.dialog.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base/jquery.ui.dialog.css b/themes/base/jquery.ui.dialog.css index 12609ed1923..c3a1d85ea08 100644 --- a/themes/base/jquery.ui.dialog.css +++ b/themes/base/jquery.ui.dialog.css @@ -9,7 +9,7 @@ */ .ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; } .ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; } -.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } +.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; } .ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; } .ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; } .ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; } From a3a5c65d4dd9eb6be0e8a71d82c3ca86b38ed009 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Scott=20Gonz=C3=A1lez?= Date: Tue, 29 Nov 2011 15:01:04 -0500 Subject: [PATCH 60/63] Button: Apply overflow: hidden in all browsers except IE 6,7 to avoid expanding the size of the button from negative text indent. Fixes #7911 - Button: icon only button in dialog causes horizontal scrollbar in Opera. --- themes/base/jquery.ui.button.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/base/jquery.ui.button.css b/themes/base/jquery.ui.button.css index 0d11065f4de..2ae50afd111 100644 --- a/themes/base/jquery.ui.button.css +++ b/themes/base/jquery.ui.button.css @@ -7,7 +7,7 @@ * * http://docs.jquery.com/UI/Button#theming */ -.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */ +.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: hidden; *overflow: visible; } /* the overflow property removes extra width in IE */ .ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */ button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */ .ui-button-icons-only { width: 3.4em; } From afdc577e9c26d6571e934a8fef892f7fbe3619c6 Mon Sep 17 00:00:00 2001 From: kborchers Date: Wed, 30 Nov 2011 08:39:10 -0600 Subject: [PATCH 61/63] Menu: Remove the isScrolling check which nolonger seems necessary. --- ui/jquery.ui.menu.js | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 4fe859f4eac..77190189e7d 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -29,7 +29,6 @@ $.widget( "ui.menu", { }, _create: function() { this.activeMenu = this.element; - this.isScrolling = false; this.menuId = this.element.attr( "id" ) || "ui-menu-" + idIncrement++; if ( this.element.find( ".ui-icon" ).length ) { this.element.addClass( "ui-menu-icons" ); @@ -66,13 +65,10 @@ $.widget( "ui.menu", { }, "mouseover .ui-menu-item": function( event ) { event.stopImmediatePropagation(); - if ( !this.isScrolling ) { - var target = $( event.currentTarget ); - // Remove ui-state-active class from siblings of the newly focused menu item to avoid a jump caused by adjacent elements both having a class with a border - target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" ); - this.focus( event, target ); - } - this.isScrolling = false; + var target = $( event.currentTarget ); + // Remove ui-state-active class from siblings of the newly focused menu item to avoid a jump caused by adjacent elements both having a class with a border + target.siblings().children( ".ui-state-active" ).removeClass( "ui-state-active" ); + this.focus( event, target ); }, "mouseleave": "collapseAll", "mouseleave .ui-menu": "collapseAll", @@ -86,10 +82,6 @@ $.widget( "ui.menu", { this.collapseAll( event ); } }, 0); - }, - scroll: function( event ) { - // Keep track of scrolling to prevent mouseover from firing inadvertently when scrolling the menu - this.isScrolling = true; } }); From 8b9ec2b861524ca6fe8078fee2f3b6081ca381a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=CC=88rn=20Zaefferer?= Date: Thu, 1 Dec 2011 17:05:58 +0100 Subject: [PATCH 62/63] Build: Also minify i18n files. --- build/build.xml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/build.xml b/build/build.xml index 49568b3ccbb..ddaa5b86d97 100644 --- a/build/build.xml +++ b/build/build.xml @@ -123,6 +123,12 @@ + + + + + + From ce7918fc73c161ab237f052bad070e34250526be Mon Sep 17 00:00:00 2001 From: kborchers Date: Thu, 1 Dec 2011 12:39:16 -0600 Subject: [PATCH 63/63] Menu: Change items option to menus --- ui/jquery.ui.menu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/jquery.ui.menu.js b/ui/jquery.ui.menu.js index 77190189e7d..0263cff6520 100644 --- a/ui/jquery.ui.menu.js +++ b/ui/jquery.ui.menu.js @@ -20,7 +20,7 @@ $.widget( "ui.menu", { defaultElement: "
                              ", delay: 150, options: { - items: "ul", + menus: "ul", position: { my: "left top", at: "right top" @@ -250,7 +250,7 @@ $.widget( "ui.menu", { refresh: function() { // initialize nested menus - var submenus = this.element.find( this.options.items + ":not( .ui-menu )" ) + var submenus = this.element.find( this.options.menus + ":not( .ui-menu )" ) .addClass( "ui-menu ui-widget ui-widget-content ui-corner-all" ) .attr( "role", "menu" ) .hide()