This modification triggered a bug for a few clients on chrome, their window had a height of ~50px, i had to revert this change to get the normal behaviour (or I could add width: 'auto' in modal options for all my modals but hey, too boring ^)
but I don't know why they had this bug, I couldn't reproduce it on chrome myself
var div = document.createElement( "div" ), body = document.body;
div.style.minHeight = "100px";
$.support.minHeight = body.appendChild(div).offsetHeight >= 100;
body.removeChild(div);
// div = null; < - not really needed either just there for dev superstition
uhm you forgot to replace localhost with the correct swarm url swarm.jquery.org now all tests fail due to timeout.
I temporarily redirected lcoalhost to swarm.jquery.org to be able to run the testswarm tests
I think it would be even more useful to do throw new Error("[message]") - that way the exception will contain fileName and lineNumber properties, making debugging even easier.
A quick Firebug test seems to confirm that, but I'm actually not sure about the exact semantics of throw and Error...
You're right, thanks for sharing. One way to fix this would be to split the TestSwarm inject code into its own file, load that at the end and put the testsuite.js back in order where it belongs.
Doesn't this change cause an error when the test is run? Because the order in which the js-files are loaded matters.
When testsuite.js is loaded after the xxx_defaults.js file (e.g. sortable_defaults.js) the call to commonWidgetTests(...) fails as it is still undefined. Because it is defined in testsuite.js which previously was loaded before sortable_defaults.js.
This holds true for all unit-tests touched in this commit. droppable, sortable, selectable, resizable
I noticed this when running the tests via swarm.jquery.org where many jobs for jquery-ui tests show a black Err label instead of a green 1 test passed (disabled dummy test) sign