mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +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 + ") ";
|
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",
|
this.test.assertEquals(img.src.split(',')[0], "data:" + fmt + ";base64",
|
||||||
prefix + "data-uri prefix"
|
prefix + "data-uri prefix"
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user