From 30824fbce9e14f2cf7e3c84222c00b591bb3f24f Mon Sep 17 00:00:00 2001 From: liabru Date: Sun, 8 Nov 2015 15:02:24 +0000 Subject: [PATCH] add delay to jasmine boot --- test/page/lib/jasmine-2.3.4/boot.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/test/page/lib/jasmine-2.3.4/boot.js b/test/page/lib/jasmine-2.3.4/boot.js index 63fdd1f..324798c 100644 --- a/test/page/lib/jasmine-2.3.4/boot.js +++ b/test/page/lib/jasmine-2.3.4/boot.js @@ -105,11 +105,13 @@ var currentWindowOnload = window.onload; window.onload = function() { - if (currentWindowOnload) { - currentWindowOnload(); - } - htmlReporter.initialize(); - env.execute(); + setTimeout(function() { + if (currentWindowOnload) { + currentWindowOnload(); + } + htmlReporter.initialize(); + env.execute(); + }, 1000); }; /**