From 49d678e9a2c5dd848f5e7fcc26e737594296fb4c Mon Sep 17 00:00:00 2001 From: 1111hui <26634873@qq.com> Date: Mon, 10 Oct 2016 16:41:57 +0800 Subject: [PATCH] double test timeout for test pass in old machine --- api/tests/test-router.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/api/tests/test-router.js b/api/tests/test-router.js index 39d5d61f..721d6b28 100644 --- a/api/tests/test-router.js +++ b/api/tests/test-router.js @@ -294,7 +294,7 @@ o.spec("route", function() { }) 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 Component = { @@ -546,17 +546,17 @@ o.spec("route", function() { o(route.get()).equals("/") - + route.set("/2") setTimeout(function(){ o(route.get()).equals("/") - done() + done() }, FRAME_BUDGET) }) - + o("routing with RouteResolver works more than once", function(done, timeout) { - timeout(100) + timeout(200) $window.location.href = prefix + "/a" route(root, '/a', { @@ -584,9 +584,9 @@ o.spec("route", function() { }, FRAME_BUDGET) }, FRAME_BUDGET) }) - + o("calling route.set invalidates pending onmatch resolution", function(done, timeout) { - timeout(100) + timeout(200) var resolved $window.location.href = prefix + "/a"