testrunner: Putting back the global variables used for ajax tests. I added many calls to delete though. The global namespace must be cleaned up before calling start() again.

This commit is contained in:
Ariel Flesler 2009-01-10 00:16:48 +00:00
parent d62875fb01
commit afb05081c0
6 changed files with 54 additions and 30 deletions

View file

@ -337,15 +337,15 @@ jQuery.each( {
});
});
jQuery.check = ['opacity','height','width','display','overflow'];
jQuery.fn.saveState = function(){
expect(jQuery.check.length);
var check = ['opacity','height','width','display','overflow'];
expect(check.length);
stop();
return this.each(function(){
var self = this;
self.save = {};
jQuery.each(jQuery.check, function(i,c){
jQuery.each(check, function(i,c){
self.save[c] = jQuery.css(self,c);
});
});