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 - - + +