Serverside testing (not nodejs)

瀏覽次數:13 次
跳到第一則未讀訊息

m...@dbc.dk

未讀,
2016年10月25日 凌晨1:10:522016/10/25
收件者:Jasmine
Hello...

I've had to do unittesting in Java Nashorn of business logic. Since
there's no concept of asynchronous in our JavaScript wrapper, hence no
setTimeout, I modified lib/jasmine-core/jasmine.js to accept a world
without setTimeout (patch attached).

Basically this tests for existence of setTimeout, and if no such thing,
calls immediately when making the clearStack() function. And uses same
type of test to filter out calls to attemptAsync().

Yours

jasmine.js.patch
回覆所有人
回覆作者
轉寄
0 則新訊息