Sha256: e91b0709022a7395d93238202860353fc3d8373cdbd96a0a2af8dc9d943e3593

Contents?: true

Size: 1.04 KB

Versions: 31

Compression:

Stored size: 1.04 KB

Contents

/* */ 
"format cjs";
(function($){
	

module("canvas + dynamic canvas");
asyncTest("canvas + dynamic canvas", function(){
	$('#outside-test canvas').data('canvasnotchanged', true);
	
	ok('strokeStyle' in $('#outside-test canvas').getContext('2d'), 'webshim canvas is applied');
	ok('strokeStyle' in $('#outside-test canvas')[0].getContext('2d'), '[ex]canvas is applied');
	ok($('#outside-test canvas').data('canvasnotchanged'), 'data on canvas was not changed');
	
	$('#outside-test').htmlPolyfill('<canvas></canvas>');
	$('#outside-test canvas').data('canvasnotchanged', true);
	ok(('getContext' in $('#outside-test canvas')[0]), 'excanvas is applied');
	ok('strokeStyle' in $('#outside-test canvas').getContext('2d'), 'webshim canvas is dynamically applied');
	ok('strokeStyle' in $('#outside-test canvas')[0].getContext('2d'), '[ex]canvas is dynamically applied');
	ok($('#outside-test canvas').data('canvasnotchanged'), 'data on canvas was not changed');
	
	$('#outside-test').remove();
	
	$.webshims.ready('DOM canvas', function(){
		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/canvas.js
sequenceserver-3.1.2 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-3.1.1 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-3.1.0 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-3.0.1 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-3.0 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.2.0 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.1.0 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc8 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc7 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc6 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc5 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc4 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc3 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc2 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.rc1 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.beta4 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.beta3 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js
sequenceserver-2.0.0.beta1 public/vendor/npm/webshim@1.15.8/tests/unit/canvas.js