فهرست منبع

Fixed a bug that prevented Phantomas to end the test and made it wait for the timeout

Gaël Métais 9 سال پیش
والد
کامیت
f4843baa0e
1فایلهای تغییر یافته به همراه0 افزوده شده و 11 حذف شده
  1. 0 11
      lib/tools/phantomas/custom_modules/modules/jQYLT/jQYLT.js

+ 0 - 11
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);
     });
 };