From f4843baa0e7ffdb884e9c7b5e4a0b4c6974a59d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20M=C3=A9tais?= Date: Mon, 21 Dec 2015 16:08:34 +0100 Subject: [PATCH] Fixed a bug that prevented Phantomas to end the test and made it wait for the timeout --- .../phantomas/custom_modules/modules/jQYLT/jQYLT.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js b/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js index c29b85a..032f21e 100644 --- a/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js +++ b/lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js @@ -141,7 +141,6 @@ exports.module = function(phantomas) { phantomas.once('init', function() { phantomas.evaluate(function(jQueryFunctions, jQueryTraversalFunctions) { (function(phantomas) { - var jQuery; var oldJQuery; phantomas.spyGlobalVar('jQuery', function(jQuery) { @@ -371,14 +370,6 @@ exports.module = function(phantomas) { }); - // store the last resource that was received - // try to report where given jQuery version was loaded from - phantomas.on('recv', function(entry) { - if (entry.isJS) { - lastUrl = entry.url; - } - }); - phantomas.on('jQueryLoaded', function(version) { phantomas.log('jQuery: loaded v' + version); phantomas.setMetric('jQueryVersion', version); @@ -386,7 +377,5 @@ exports.module = function(phantomas) { // report multiple jQuery "instances" (issue #435) phantomas.incrMetric('jQueryVersionsLoaded'); phantomas.addOffender('jQueryVersionsLoaded', 'v%s', version); - - phantomas.log('jQuery: v%s (probably loaded from <%s>)', version, lastUrl); }); };