Move phantomas_custom to the phantomas tool directory

This commit is contained in:
Gaël Métais
2014-12-28 18:05:10 +01:00
parent e9505f31f7
commit dccb9bb49c
13 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
var Q = require('q');
var debug = require('debug')('ylt:runner');
var phantomasWrapper = require('./tools/phantomasWrapper');
var phantomasWrapper = require('./tools/phantomas/phantomasWrapper');
var jsExecutionTransformer = require('./tools/jsExecutionTransformer');
var rulesChecker = require('./rulesChecker');
var scoreCalculator = require('./scoreCalculator');
@@ -28,7 +28,7 @@ exports.module = function(phantomas) {
// duplicated ID (issue #392)
phantomas.setMetric('DOMidDuplicated'); // @desc number of duplicated IDs found in DOM
var Collection = require('../../../node_modules/phantomas/lib/collection'),
var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
DOMids = new Collection();
phantomas.on('domId', function(id) {
@@ -246,7 +246,7 @@ exports.module = function(phantomas) {
// count DOM queries by either ID, tag name, class name and selector query
// @see https://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#dom-document-doctype
var Collection = require('../../../node_modules/phantomas/lib/collection'),
var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
DOMqueries = new Collection();
phantomas.on('domQuery', function(type, query, fnName, context) {
@@ -298,7 +298,7 @@ exports.module = function(phantomas) {
// count Sizzle calls to detect duplicated queries
var Collection = require('../../../node_modules/phantomas/lib/collection'),
var Collection = require('../../../../../../node_modules/phantomas/lib/collection'),
sizzleCalls = new Collection(),
jQueryLoading = new Collection();
@@ -43,8 +43,8 @@ var PhantomasWrapper = function() {
'windowPerformance' // overriden
].join(','),
'include-dirs': [
'phantomas_custom/core',
'phantomas_custom/modules'
'lib/tools/phantomas/custom_modules/core',
'lib/tools/phantomas/custom_modules/modules'
].join(',')
};
+1 -1
View File
@@ -1,5 +1,5 @@
var should = require('chai').should();
var phantomasWrapper = require('../../lib/tools/phantomasWrapper');
var phantomasWrapper = require('../../lib/tools/phantomas/phantomasWrapper');
describe('phantomasWrapper', function() {