From 1d6918174664a24530a4e6a523ccc80a11c69a72 Mon Sep 17 00:00:00 2001 From: kborchers Date: Wed, 19 Oct 2011 10:18:33 -0500 Subject: Menu: Added the new trigger option to the defaults unit test --- tests/unit/menu/menu_defaults.js | 1 + 1 file changed, 1 insertion(+) (limited to 'tests') diff --git a/tests/unit/menu/menu_defaults.js b/tests/unit/menu/menu_defaults.js index 1756e4648..a559a3d8d 100644 --- a/tests/unit/menu/menu_defaults.js +++ b/tests/unit/menu/menu_defaults.js @@ -6,6 +6,7 @@ commonWidgetTests( "menu", { at: "right top" }, items: "ul", + trigger: null, // callbacks create: null -- cgit v1.2.3 From e3156ea28617e6cc30a3389ee8d3f30514b9d894 Mon Sep 17 00:00:00 2001 From: ddstreet Date: Tue, 25 Oct 2011 17:40:37 -0500 Subject: Effects Core: Do not overwrite css or class changes that aren't animated during class animation. Fixed #7106 - animateClass: css and class changes during animation are lost --- tests/unit/effects/effects.html | 10 +++ tests/unit/effects/effects_core.js | 136 +++++++++++++++++++++---------------- ui/jquery.effects.core.js | 32 ++++----- 3 files changed, 103 insertions(+), 75 deletions(-) (limited to 'tests') diff --git a/tests/unit/effects/effects.html b/tests/unit/effects/effects.html index f2c447ef7..f5dac54c7 100644 --- a/tests/unit/effects/effects.html +++ b/tests/unit/effects/effects.html @@ -75,6 +75,14 @@ height: 50px; } + .ticket7106 { + width: 50px; + height: 50px; + } + .ticket7106.animate { + width: 100px; + } + @@ -94,6 +102,8 @@
+
+
diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index 1e5da2113..e1d52bd80 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 3dc0a4e67..a47880e7f 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() -- cgit v1.2.3 From dcac8c1f29cd718c949c1b2c48681a90b0f647ed Mon Sep 17 00:00:00 2001 From: Scott González Date: Fri, 28 Oct 2011 15:58:33 -0400 Subject: 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 +++++++---- tests/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 (limited to 'tests') diff --git a/build/build.xml b/build/build.xml index aef5e5fb3..1e5ab842b 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 000000000..c8dec4881 --- /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 b3c3b59ac..ed9b1aa1d 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 3a7ad86f2..f730d8029 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 e5987350b..70d2ecfd1 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 7fcf07eec..5ec7e316a 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 e2d988806..3b1dc1fc8 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 108023372..592db53cc 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 b35ae5823..94b20a225 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 e5006bf17..5be71f460 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 149430bcf..abf94f0c7 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 f5dac54c7..06023c55d 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 014123144..76f4a7a31 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 a3a97911c..17ee20258 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 c80490f74..ee9be189d 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 b708af265..8b55f5a89 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 f1b2f1bc3..4e886d2fd 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 4d6150691..4f70e8dd4 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 3fe3b3588..60d124b7a 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 40eed6652..a20eb7109 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 321c16b4c..0c01a5f48 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 688b2642f..f2a672b2e 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 322cec163..92d9be81c 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 82070fbfd..b5e8558e5 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 7ae41f264..6f4caaa6c 100644 --- a/tests/unit/widget/widget.html +++ b/tests/unit/widget/widget.html @@ -5,8 +5,15 @@ jQuery UI Widget Test Suite - - + + -- cgit v1.2.3 From 79105eeb5649ad650073d5603d9d50759e979e99 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 31 Oct 2011 15:06:05 -0400 Subject: Tests (Simulate): Whitespace cleanup. --- tests/jquery.simulate.js | 169 +++++++++++++++++++++++++++-------------------- 1 file changed, 99 insertions(+), 70 deletions(-) (limited to 'tests') diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index bb82624d3..9713a3038 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 ); -- cgit v1.2.3 From e31adf039b4adb07b8878435beceaae1a6532d47 Mon Sep 17 00:00:00 2001 From: Scott González Date: Mon, 31 Oct 2011 17:28:00 -0400 Subject: Tests (Simulate): Added focus and blur support. --- tests/jquery.simulate.js | 49 ++++++++++++++++++++++++++ tests/unit/autocomplete/autocomplete_events.js | 8 ++--- tests/unit/tooltip/tooltip_events.js | 4 +-- 3 files changed, 54 insertions(+), 7 deletions(-) (limited to 'tests') diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index 9713a3038..c1d28f982 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 6813cfa71..dc945c286 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 963acaf59..99e1fbd79 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 ) ); -- cgit v1.2.3 From 63d1cbc7ab8b65405afe32e577fc90a0265d11cb Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 1 Nov 2011 16:26:31 -0400 Subject: Autocomplete tests: Fixed typo. --- tests/unit/autocomplete/autocomplete_events.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index dc945c286..286d902f1 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(); } -- cgit v1.2.3 From 183d6a00df531b13c638944796b5bc52ca19ecb4 Mon Sep 17 00:00:00 2001 From: Scott González Date: Tue, 1 Nov 2011 16:35:49 -0400 Subject: 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(-) (limited to 'tests') diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index c1d28f982..adc340049 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 ); } }); -- cgit v1.2.3 From 253b792887bc015088a0e4ecda7df971755bb782 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 2 Nov 2011 08:53:42 -0400 Subject: Position tests: Changed DOM structure to fix dimensions of within container. --- tests/unit/position/position.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/unit/position/position.html b/tests/unit/position/position.html index 17ee20258..115adc3e9 100644 --- a/tests/unit/position/position.html +++ b/tests/unit/position/position.html @@ -61,14 +61,14 @@ elements smaller than 10px have a line-height set on them to avoid a bug in IE6
-
-
-
-
+ +
+
+
-- cgit v1.2.3 From f76873c2d266f6d46b920877bc2c13dc758f1ff7 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 2 Nov 2011 09:35:20 -0400 Subject: 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(-) (limited to 'tests') diff --git a/tests/unit/tabs/tabs_methods.js b/tests/unit/tabs/tabs_methods.js index ec21e2de7..b62f7bb3a 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 4127ddf84..5eaab1aae 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 ); }); } -- cgit v1.2.3 From 4f9209feb020bf11c260195e7c8960a33f3a80fa Mon Sep 17 00:00:00 2001 From: kborchers Date: Wed, 2 Nov 2011 12:22:58 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/unit/effects/effects_core.js b/tests/unit/effects/effects_core.js index e1d52bd80..aca4c4694 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" ); -- cgit v1.2.3 From 95d7314bd9bd9d5ca8983d646a51ee0fb51a1149 Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 3 Nov 2011 08:45:04 -0400 Subject: 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 - .../visual/datepicker/datepicker_multi_inline.html | 113 --- .../visual/datepicker/datepicker_ticket_4071.html | 96 --- .../visual/datepicker/datepicker_ticket_4240.html | 55 -- .../visual/datepicker/datepicker_ticket_4443.html | 38 -- .../visual/datepicker/datepicker_ticket_5676.html | 30 - .../visual/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/draggable_option_iframeFix_true.html | 30 - tests/visual/droppable/droppable.css | 3 - tests/visual/droppable/droppable.html | 33 - .../droppable/droppable_option_accept_default.html | 40 -- .../droppable_option_accept_function.html | 43 -- .../droppable_option_accept_selector.html | 41 -- tests/visual/droppable/droppable_ticket_4087.html | 51 -- tests/visual/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 - ..._option_aspectRatio_preserve_maxHeight_150.html | 30 - ...e_option_aspectRatio_preserve_maxWidth_150.html | 30 - ...e_option_aspectRatio_preserve_minHeight_50.html | 30 - ...le_option_aspectRatio_preserve_minWidth_50.html | 30 - ...able_option_aspectRatio_preserve_w100xh100.html | 29 - ...zable_option_aspectRatio_preserve_w100xh50.html | 29 - ...zable_option_aspectRatio_preserve_w50xh100.html | 29 - tests/visual/resizable/resizable_ticket_3053.html | 37 - tests/visual/resizable/resizable_ticket_4199.html | 37 - tests/visual/resizable/resizable_ticket_4217.html | 46 -- tests/visual/resizable/resizable_ticket_4940.html | 32 - tests/visual/resizable/resizable_ticket_5335.html | 52 -- tests/visual/selectable/selectable.html | 40 -- .../visual/selectable/selectable_ticket_4341.html | 46 -- tests/visual/sortable/sortable.html | 40 -- tests/visual/sortable/sortable_massive_scale.html | 757 --------------------- .../sortable/sortable_option_revert_false.html | 31 - .../sortable/sortable_option_revert_true.html | 31 - tests/visual/sortable/sortable_ticket_4231.html | 78 --- tests/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 (limited to 'tests') diff --git a/tests/visual/datepicker/calendar.gif b/tests/visual/datepicker/calendar.gif deleted file mode 100644 index 8526cf5d1..000000000 Binary files a/tests/visual/datepicker/calendar.gif and /dev/null differ diff --git a/tests/visual/datepicker/datepicker.html b/tests/visual/datepicker/datepicker.html deleted file mode 100644 index cbac05145..000000000 --- a/tests/visual/datepicker/datepicker.html +++ /dev/null @@ -1,23 +0,0 @@ - - - - - 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 844d7e1e9..000000000 --- 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 0e4bd402a..000000000 --- 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 3015d47bf..000000000 --- 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 3df9df50d..000000000 --- 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 46458ebf9..000000000 --- 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 db24207b2..000000000 --- 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 d497847f4..000000000 --- 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 8ef9d4b19..000000000 --- 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 b336847da..000000000 --- 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 6cf3099fe..000000000 --- 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 f0ee5b261..000000000 --- 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 6243d9b68..000000000 --- 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 d30c41f37..000000000 --- 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 8f8689bfe..000000000 --- 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 0e485fe3f..000000000 --- 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 a9eb6d8b2..000000000 --- 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 cfe663ece..000000000 --- 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 0f4edfdd2..000000000 --- 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 8e77a0121..000000000 --- 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 9dbdcdffa..000000000 --- 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 4733d1bdf..000000000 --- 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 f3be61b1b..000000000 --- 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 54cf3ffe2..000000000 --- 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 61242c62b..000000000 Binary files a/tests/visual/resizable/images/test.png and /dev/null differ diff --git a/tests/visual/resizable/resizable.html b/tests/visual/resizable/resizable.html deleted file mode 100644 index 145268112..000000000 --- a/tests/visual/resizable/resizable.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - 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 e738ff77a..000000000 --- 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 67ab9d2c5..000000000 --- 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 954b0f343..000000000 --- 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 a7494791e..000000000 --- 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 d22821a8f..000000000 --- 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 d88c26e8f..000000000 --- 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 6bc776166..000000000 --- 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 a797b3034..000000000 --- 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 d2b7a07b5..000000000 --- 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 76ba1cda1..000000000 --- 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 45ba3c2c6..000000000 --- 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 8463e25bc..000000000 --- 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 3933fb8db..000000000 --- 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 69f9e9069..000000000 --- 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 3f9158385..000000000 --- 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 94e656dc7..000000000 --- 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 5d9611d3b..000000000 --- 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 27eb8e601..000000000 --- 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 bf2369fdc..000000000 --- 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 bddb52583..000000000 --- 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 ad8e73f31..000000000 --- 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 cfa8d735c..000000000 --- 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 9b50d4c9f..000000000 --- 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 c6bfd7b21..000000000 --- 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 -
                          ....
                          -
                          . -
                          -
                          - - - -- cgit v1.2.3 From 416101b4647e7e958ad755826583b6e2524e848d Mon Sep 17 00:00:00 2001 From: Scott González Date: Thu, 3 Nov 2011 09:01:15 -0400 Subject: Tests: Removed unnecessary visual tests for button. --- .../visual/button/button_input_type_checkbox.html | 25 ------- .../visual/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 (limited to 'tests') 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 4988c85fe..000000000 --- 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 0e1fc4a72..000000000 --- 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" - - - -
                          - - - -
                          - - - -- cgit v1.2.3 From b90d83c6c4e3f5e328d5557aa35ce9fbded6fd0f Mon Sep 17 00:00:00 2001 From: "Richard D. Worth" Date: Mon, 7 Nov 2011 15:49:20 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/jquery.simulate.js b/tests/jquery.simulate.js index adc340049..a37302c46 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 ) ) { -- cgit v1.2.3 From 50dab05784f0d9e98cbf46a975375badb484610b Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 9 Nov 2011 10:18:33 -0500 Subject: 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 +- demos/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 | 9046 ------------------- jquery-1.7.js | 9300 ++++++++++++++++++++ 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 +- tests/static/slider/slider_horizontal_range.html | 2 +- .../static/slider/slider_horizontal_range_max.html | 2 +- .../static/slider/slider_horizontal_range_min.html | 2 +- tests/static/slider/slider_vertical.html | 2 +- tests/static/slider/slider_vertical_range.html | 2 +- tests/static/slider/slider_vertical_range_max.html | 2 +- tests/static/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 +- tests/visual/compound/draggable_accordion.html | 2 +- ...aggable_accordion_accordion_tabs_draggable.html | 2 +- .../compound/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, 18817 insertions(+), 9263 deletions(-) delete mode 100644 jquery-1.6.4.js create mode 100644 jquery-1.7.js create mode 100644 tests/jquery-1.7.js (limited to 'tests') diff --git a/demos/accordion/collapsible.html b/demos/accordion/collapsible.html index d8d0f1918..85789e6c6 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 a5f3742dc..de57f28b1 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 734de8a9e..99f17df4d 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 fa68be01c..bcbf6404d 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 279f91483..ce4703117 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 7acca1704..bd19ddd4e 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 19c195b06..e349d1a94 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 9f2ff61eb..0afa3057b 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 9fbc46a19..7de7c56f5 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 0e1fc4a72..5284dc022 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 3274549b0..40d53d774 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 ba455bd89..ccd237f31 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 0913e8dce..ad92c7aa9 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 3393d9dcd..ac2c1cff0 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 2c2fb4f90..e11a35098 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 98afc32e7..f356179c9 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 8ab927838..1762e6108 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 31cec0323..634ffbe2d 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 647da0413..3f211b046 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 35bd508a4..c055016b6 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 32f19bde8..7398bef3a 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 5a48c252b..d8d132a30 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 8cd021a93..999b67b0f 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 9f5ea1cb1..2a9307194 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 28c148995..838e17a3c 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 21225e42d..2d35cee18 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 96ebacbba..838583e88 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 48c95f80b..80062a423 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 f9ae0ac59..be1d06460 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 63fbbdb5a..e28a6ae69 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 1c4530ff6..73a683dce 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 4d5e6654d..766576fde 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 c610cec25..edb1adecf 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 02e2d94ee..1e6608d91 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 e7bd86319..f348c5e8d 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 61e911b8c..d10f2444f 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 df4e6604e..b1ffc8914 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 78b886294..3a498b2a6 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 bc8cdc88c..5eb1ab0a7 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + -- cgit v1.2.3 From 31b176106fff6e25de87469644885f9a3fa98bdc Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 9 Nov 2011 11:38:16 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/unit/effects/effects_scale.js b/tests/unit/effects/effects_scale.js index a607361e6..b9bb91c2e 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" ); } }); -- cgit v1.2.3 From 924e80e576e098fd07899bc6e2d5929680d54446 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 16 Nov 2011 12:07:33 -0500 Subject: 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(-) (limited to 'tests') diff --git a/demos/spinner/currency.html b/demos/spinner/currency.html index 485ad9064..796b379a5 100644 --- a/demos/spinner/currency.html +++ b/demos/spinner/currency.html @@ -17,9 +17,7 @@ + diff --git a/demos/accordion/custom-icons.html b/demos/accordion/custom-icons.html index 2351b9bb0..e2fc9bdb1 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 99f17df4d..4afc2b129 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 bcbf6404d..3a7d81edc 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 e39fb6d52..09360d62d 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 bd19ddd4e..6f4bc2e69 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 e349d1a94..c51880b71 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 0afa3057b..a0a899344 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 7de7c56f5..38acd8b4c 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 5284dc022..ac21a5683 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 40d53d774..439e2c1ae 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 ccd237f31..14d27698a 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 ad92c7aa9..0024393ee 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 ac2c1cff0..477a0b398 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 e11a35098..7b3b227ed 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 f356179c9..e98edaf7c 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 1762e6108..0ef3f9bbc 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 634ffbe2d..396d0e29c 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 3f211b046..a1199c826 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 c055016b6..02a6c0dec 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 7398bef3a..12515a4c5 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 d8d132a30..38b85e58b 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 999b67b0f..b711efa9c 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 2a9307194..c7c105696 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 838e17a3c..ddc665437 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 2d35cee18..845625e2e 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 838583e88..a2ae9e88f 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 80062a423..50837f43e 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 be1d06460..bce64bfb5 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 e28a6ae69..9d29abe28 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 73a683dce..78751d3ef 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 766576fde..7b26f6a9a 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 edb1adecf..b5cf82946 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 1e6608d91..52b800837 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 f348c5e8d..156c82e5d 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 d10f2444f..131cc41d7 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 b1ffc8914..993fbbd85 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 3a498b2a6..79d8d32bf 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 5eb1ab0a7..b282a73b7 100644 --- a/tests/visual/tooltip/tooltip.html +++ b/tests/visual/tooltip/tooltip.html @@ -4,7 +4,7 @@ Tooltip Visual Test: Default - + -- cgit v1.2.3 From 2445e20a856192179590c0d08e5d73479df1e52d Mon Sep 17 00:00:00 2001 From: Shannon Date: Wed, 23 Nov 2011 13:39:45 -0500 Subject: 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. --- tests/unit/autocomplete/autocomplete_events.js | 19 +++++++++++++++++++ ui/jquery.ui.autocomplete.js | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index 286d902f1..d6a008ea2 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 9871b52d7..dbda2058e 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 { -- cgit v1.2.3 From 2b9b2f28ecd8b631fede6ca690bd551ddc72e254 Mon Sep 17 00:00:00 2001 From: Scott González Date: Wed, 23 Nov 2011 14:26:52 -0500 Subject: Autocomplete: Removed commented out test. --- tests/unit/autocomplete/autocomplete_events.js | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'tests') diff --git a/tests/unit/autocomplete/autocomplete_events.js b/tests/unit/autocomplete/autocomplete_events.js index d6a008ea2..7b51ec4c0 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 ) ); -- cgit v1.2.3 From 06f6fa8524a905ec8027b8ba756eb199f2591336 Mon Sep 17 00:00:00 2001 From: meh-cfl Date: Mon, 28 Nov 2011 16:33:23 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/unit/autocomplete/autocomplete_core.js b/tests/unit/autocomplete/autocomplete_core.js index 3f92aa01f..d98f56abf 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 dbda2058e..bd415aa2b 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(); + } } }); -- cgit v1.2.3 From ce0afde900fb2b55b5766a3e0e3029e24a094a75 Mon Sep 17 00:00:00 2001 From: James Khoury Date: Mon, 28 Nov 2011 16:52:10 -0500 Subject: 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(-) (limited to 'tests') diff --git a/tests/unit/dialog/dialog_options.js b/tests/unit/dialog/dialog_options.js index eab577c69..264c2fb6e 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 49ef8f64b..3d7638667 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" ) { -- cgit v1.2.3