完善 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:
前端小武
2017-09-16 12:38:33 -05:00
committed by GitHub
parent 2f13ad3055
commit 34a30c1b25
6 changed files with 1479 additions and 151 deletions

View File

@@ -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();
});