diff --git a/client/karma.js b/client/karma.js index ec0db417e..efc48dc30 100644 --- a/client/karma.js +++ b/client/karma.js @@ -131,7 +131,7 @@ function Karma (socket, iframe, opener, navigator, location, document) { } this.onbeforeunload = function () { - if (!karmaNavigating) { + if (karmaNavigating) { // TODO(vojta): show what test (with explanation about jasmine.UPDATE_INTERVAL) self.error('Some of your tests did a full page reload!') } diff --git a/static/karma.js b/static/karma.js index bc3a2bbb6..709610af4 100644 --- a/static/karma.js +++ b/static/karma.js @@ -141,7 +141,7 @@ function Karma (socket, iframe, opener, navigator, location, document) { } this.onbeforeunload = function () { - if (!karmaNavigating) { + if (karmaNavigating) { // TODO(vojta): show what test (with explanation about jasmine.UPDATE_INTERVAL) self.error('Some of your tests did a full page reload!') }