Move phantomas_custom to the phantomas tool directory
This commit is contained in:
+1
-1
@@ -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');
|
||||
|
||||
+1
-1
@@ -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) {
|
||||
+1
-1
@@ -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) {
|
||||
+1
-1
@@ -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,5 +1,5 @@
|
||||
var should = require('chai').should();
|
||||
var phantomasWrapper = require('../../lib/tools/phantomasWrapper');
|
||||
var phantomasWrapper = require('../../lib/tools/phantomas/phantomasWrapper');
|
||||
|
||||
describe('phantomasWrapper', function() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user