Sha256: 457f79998b02472478ec305d13f4087306a5a53f07e887ea5d3300bd09eadf5b

Contents?: true

Size: 285 Bytes

Versions: 5

Compression:

Stored size: 285 Bytes

Contents

QUnit.extend( QUnit, {
	pixelEqual: function(canvas, x, y, r, g, b, a, message) {
		var actual = Array.prototype.slice.apply(canvas.getContext('2d').getImageData(x, y, 1, 1).data), expected = [r, g, b, a];
		QUnit.push(QUnit.equiv(actual, expected), actual, expected, message);
	}
});

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
sprockets-browserify-0.3.0 node_modules/browserify/node_modules/url/node_modules/punycode/vendor/qunit/addons/canvas/qunit-canvas.js
cssesc-source-0.1.0 vendor/node_modules/qunitjs/addons/canvas/qunit-canvas.js
everqueen-1.1.1 lib/qunit/addons/canvas/qunit-canvas.js
everqueen-1.1.0 lib/qunit/addons/canvas/qunit-canvas.js
everqueen-1.0.1 lib/qunit/addons/canvas/qunit-canvas.js