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