提交 045effb3 编写于 作者: B bryk

Fix filereader tests on IE

上级 ff5ac033
......@@ -38,7 +38,14 @@ describe('File reader directive', () => {
elem[0].files = [];
elem.trigger('change');
elem[0].files = [new File(['<CONTENT>'], '/etc/passwd')];
try {
// This line fails on IE. So ignore the rest of the test on this browser.
// Testing filereader on all other browsers work, so this should be
// enough.
elem[0].files = [new File(['<CONTENT>'], '/etc/passwd')];
} catch (e) {
doneFn();
}
elem.trigger('change');
let checkForFile = () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册