Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gmu 里面的demo 使用了settime out 我尝试做单元测试 但是 #194

Open
qqqzhch opened this issue Mar 21, 2014 · 2 comments
Open

Comments

@qqqzhch
Copy link

qqqzhch commented Mar 21, 2014

new iScroll('S_widgets');//ps 这里为啥会在单元测试时候报错呢?
iScroll 报错
function pageend(func){
function mp(fn){
return function(){

        try{
            new iScroll('S_widgets');//ps 这里为啥会在单元测试时候报错呢?
        }
        catch(e)
        {

        }

        $(window).trigger('resize');
        fn();
    }
}
var  pagefun=mp(func);
setTimeout(pagefun, 200);

}

有谁针对页面使用 做这个的单元测试吗?
PS 正常运行时候没问题

@2betop
Copy link
Contributor

2betop commented Mar 21, 2014

你把message错误信息发错来看看!

@qqqzhch
Copy link
Author

qqqzhch commented Mar 21, 2014

Uncaught TypeError: Cannot read property 'style' of null gmu.js:4378
iScroll gmu.js:4378
ns.iScroll.iScroll gmu.js:5046
(anonymous function)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants