Sha256: 27f48511cddca92ee7e57ad0cfdb407d3779f0e11b07c8d46c753f3454b3db3f

Contents?: true

Size: 1.36 KB

Versions: 31

Compression:

Stored size: 1.36 KB

Contents

/* */ 
"format cjs";
(function($){
	
module("progress bar");

asyncTest("progress", function(){
	QUnit.reset();
	var progress = $('progress').eq(0);
	
	equals(progress.prop('position'), -1, "progress position");
	equals(progress.prop('max'), 1, "progress max");
	
	progress.prop('value', '0.5');
	strictEqual(progress.prop('position'), 0.5, "progress position");
	strictEqual(progress.prop('value'), 0.5, "progress prop value");
	strictEqual(progress.val(), 0.5, "progress val");
	if($.fn.finish) {
		strictEqual(progress.attr('value'), "0.5", "progress attr value");
	}
	progress.prop('max', '0.5');
	strictEqual(progress.prop('position'), 1, "progress position");
	strictEqual(progress.prop('value'), 0.5, "progress prop value");
	
	progress.removeAttr('value');
	equals(progress.prop('position'), -1, "progress position");
	strictEqual(progress.prop('value'), 0, "progress prop value");
	
	progress.prop('value', '1');
	strictEqual(progress.prop('position'), 1, "progress position");
	strictEqual(progress.prop('value'), 0.5, "progress prop value");
	
	
	
//	progress.attr('value', 'dsadsa');
//	strictEqual(progress.prop('position'), -1, "progress position");
//	strictEqual(progress.prop('value'), 0, "progress prop value");
//	if($.fn.finish){
//		strictEqual(progress.attr('value'), "dsadsa", "progress attr value");
//	}
	
	
	$.webshims.ready('forms-ext DOM', start);
});

})(jQuery);

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
sequenceserver-3.1.3 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-3.1.2 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-3.1.1 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-3.1.0 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-3.0.1 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-3.0 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.2.0 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.1.0 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc8 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc7 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc6 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc5 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc4 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc3 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc2 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.rc1 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.beta4 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.beta3 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js
sequenceserver-2.0.0.beta1 public/vendor/npm/webshim@1.15.8/tests/unit/progress.js