double test timeout for test pass in old machine

This commit is contained in:
1111hui 2016-10-10 16:41:57 +08:00
parent e1883816c9
commit 49d678e9a2

View file

@ -294,7 +294,7 @@ o.spec("route", function() {
}) })
o("changing `vnode.key` in `render` resets the component", function(done, timeout){ o("changing `vnode.key` in `render` resets the component", function(done, timeout){
timeout(FRAME_BUDGET * 3) timeout(FRAME_BUDGET * 6)
var oninit = o.spy() var oninit = o.spy()
var Component = { var Component = {
@ -546,17 +546,17 @@ o.spec("route", function() {
o(route.get()).equals("/") o(route.get()).equals("/")
route.set("/2") route.set("/2")
setTimeout(function(){ setTimeout(function(){
o(route.get()).equals("/") o(route.get()).equals("/")
done() done()
}, FRAME_BUDGET) }, FRAME_BUDGET)
}) })
o("routing with RouteResolver works more than once", function(done, timeout) { o("routing with RouteResolver works more than once", function(done, timeout) {
timeout(100) timeout(200)
$window.location.href = prefix + "/a" $window.location.href = prefix + "/a"
route(root, '/a', { route(root, '/a', {
@ -584,9 +584,9 @@ o.spec("route", function() {
}, FRAME_BUDGET) }, FRAME_BUDGET)
}, FRAME_BUDGET) }, FRAME_BUDGET)
}) })
o("calling route.set invalidates pending onmatch resolution", function(done, timeout) { o("calling route.set invalidates pending onmatch resolution", function(done, timeout) {
timeout(100) timeout(200)
var resolved var resolved
$window.location.href = prefix + "/a" $window.location.href = prefix + "/a"