X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=auto_tests%2Ftests%2Fresize.js;h=9a8cffe650070456d9ec0132e4f061f12f7c4e2f;hb=2ef8997fe939afdfd7c2c09c393a3073897633bd;hp=8f13806ecc81719825d067e2a647c7880e120bab;hpb=89fdcedbda6906d90e15d84285c4f6c0b8d96d28;p=dygraphs.git diff --git a/auto_tests/tests/resize.js b/auto_tests/tests/resize.js index 8f13806..9a8cffe 100644 --- a/auto_tests/tests/resize.js +++ b/auto_tests/tests/resize.js @@ -97,8 +97,8 @@ it('testHiddenDivWithResize', function() { g.resize(); var x = Math.floor(g.toDomXCoord(2)); var y = Math.floor(g.toDomYCoord(200)); - assert.equal("Unexpected grid color found at pixel: x: " + x + " y: " + y, - [0, 128, 128, 255], Util.samplePixel(g.hidden_, x, y)); + assert.deepEqual([0, 128, 128, 255], Util.samplePixel(g.hidden_, x, y), + "Unexpected grid color found at pixel: x: " + x + " y: " + y); }); });