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