From ff58897679892f23d53f3372f40b40ccbacb7df5 Mon Sep 17 00:00:00 2001 From: John McLear Date: Thu, 27 Nov 2014 16:58:04 +0000 Subject: [PATCH] fix frontend tests --- tests/frontend/index.html | 3 +-- tests/frontend/lib/jquery.iframe.js | 5 +++-- tests/frontend/runner.js | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/frontend/index.html b/tests/frontend/index.html index ac85a1360..1bf104952 100644 --- a/tests/frontend/index.html +++ b/tests/frontend/index.html @@ -10,7 +10,7 @@
- + @@ -22,6 +22,5 @@ - diff --git a/tests/frontend/lib/jquery.iframe.js b/tests/frontend/lib/jquery.iframe.js index 3c3b7b05a..604ae1bc2 100644 --- a/tests/frontend/lib/jquery.iframe.js +++ b/tests/frontend/lib/jquery.iframe.js @@ -2,8 +2,9 @@ (function($) { $.fn.purgeFrame = function() { var deferred; + var browser = bowser; - if ($.browser.msie && parseFloat($.browser.version, 10) < 9) { + if (browser.msie && parseFloat(browser.version, 10) < 9) { deferred = purge(this); } else { this.remove(); @@ -36,4 +37,4 @@ return deferred.promise(); } -})(jQuery); \ No newline at end of file +})(jQuery); diff --git a/tests/frontend/runner.js b/tests/frontend/runner.js index 8f722125b..4801b95cb 100644 --- a/tests/frontend/runner.js +++ b/tests/frontend/runner.js @@ -162,7 +162,8 @@ $(function(){ } //allow cross iframe access - if ((!$.browser.msie) && (!($.browser.mozilla && $.browser.version.indexOf("1.8.") == 0))) { + var browser = bowser; + if ((!browser.msie) && (!(browser.mozilla && browser.version.indexOf("1.8.") == 0))) { document.domain = document.domain; // for comet }