try assertType instead of NotEquals, null

This commit is contained in:
MinRK 2014-01-27 15:06:36 -08:00
parent 0d1536c390
commit 63eb905a02

View File

@ -45,7 +45,7 @@ casper.notebook_test(function () {
};
});
var prefix = "Image('" + fmt + "', retina=" + retina + ") ";
this.test.assertNotEquals(img, null, prefix + "img was displayed");
this.test.assertType(img, "object", prefix + "img was displayed");
this.test.assertEquals(img.src.split(',')[0], "data:" + fmt + ";base64",
prefix + "data-uri prefix"
);