-};
-
-var to = {
- "show": function(elem,prop){
- jQuery(elem).hide().addClass("wide"+prop);
- return "show";
- },
- "hide": function(elem,prop){
- jQuery(elem).addClass("wide"+prop);
- return "hide";
- },
- "100": function(elem,prop){
- jQuery(elem).addClass("wide"+prop);
- return prop == "opacity" ? 1 : 100;
- },
- "50": function(elem,prop){
- return prop == "opacity" ? 0.50 : 50;
- },
- "0": function(elem,prop){
- jQuery(elem).addClass("noback");
- return 0;
- }
-};
-
-function checkOverflowDisplay(){
- var o = jQuery.css( this, "overflow" );
-
- equals(o, "visible", "Overflow should be visible: " + o);
- equals(jQuery.css( this, "display" ), "inline", "Display shouldn't be tampered with.");
-
- start();
-}
-
-test("JS Overflow and Display", function() {
- expect(2);
- stop();
- makeTest( "JS Overflow and Display" )
- .addClass("widewidth")
- .css({ overflow: "visible", display: "inline" })
- .addClass("widewidth")
- .text("Some sample text.")
- .before("text before")
- .after("text after")
- .animate({ opacity: 0.5 }, "slow", checkOverflowDisplay);
-});
-
-test("CSS Overflow and Display", function() {
- expect(2);
- stop();
- makeTest( "CSS Overflow and Display" )
- .addClass("overflow inline")
- .addClass("widewidth")
- .text("Some sample text.")
- .before("text before")
- .after("text after")
- .animate({ opacity: 0.5 }, "slow", checkOverflowDisplay);
-});
-
-jQuery.each( from, function(fn, f){
- jQuery.each( to, function(tn, t){
+}, function(fn, f){
+ jQuery.each( {
+ "show": function(elem,prop){
+ jQuery(elem).hide().addClass("wide"+prop);
+ return "show";
+ },
+ "hide": function(elem,prop){
+ jQuery(elem).addClass("wide"+prop);
+ return "hide";
+ },
+ "100": function(elem,prop){
+ jQuery(elem).addClass("wide"+prop);
+ return prop == "opacity" ? 1 : 100;
+ },
+ "50": function(elem,prop){
+ return prop == "opacity" ? 0.50 : 50;
+ },
+ "0": function(elem,prop){
+ jQuery(elem).addClass("noback");
+ return 0;
+ }
+ }, function(tn, t){