mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-27 04:20:22 +08:00
try assertType instead of NotEquals, null
This commit is contained in:
parent
0d1536c390
commit
63eb905a02
@ -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"
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user