mirror of
https://gitee.com/layui/layui.git
synced 2025-10-15 18:55:04 +08:00
完善 laydate 测试 (#61)
* 添加 laydate 测试 * 添加 options.format 和 options.value 叠加时的验证 * 修改必须单元测试通过后再进行浏览器测试 * 添加判断css是否加载成功 * 优化 options.elem 测试 * 完善laydate测试 * 更新事件回调测试 * 先把 options.format 注释了, 依赖 master 的修复 * 添加 mock server * 更新404地址 * 使用 show api 来显示日历 * 测试火狐浏览器 * 修复火狐报错 * add callback test case * fix firefox error * fix win var * add window.lay test case * fix firefox test error * add edga test * update `laydate.render({value})` test case * update options.dateTime test case
This commit is contained in:
@@ -194,7 +194,7 @@ describe('layui', function () {
|
||||
});
|
||||
|
||||
it('error callback', function (done) {
|
||||
layui.img('/404/404.gif', function () {}, function (e) {
|
||||
layui.img('/api/mock?statusCode=404', function () {}, function (e) {
|
||||
expect(e).to.not.undefined;
|
||||
done();
|
||||
});
|
||||
|
Reference in New Issue
Block a user