forked from sideroad/grunt-wpt-page
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding Speed Index as an output parameter on the graphs
- Loading branch information
1 parent
3a16e37
commit a2bcc2e
Showing
1 changed file
with
20 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,11 +53,11 @@ require.helper.semVerSort = function(a, b) { | |
|
||
/** | ||
* Find and require a module which name starts with the provided name. | ||
* If multiple modules exists, the highest semver is used. | ||
* If multiple modules exists, the highest semver is used. | ||
* This function can only be used for remote dependencies. | ||
|
||
* @param {String} name - module name: `user~repo` | ||
* @param {Boolean} returnPath - returns the canonical require path if true, | ||
* @param {Boolean} returnPath - returns the canonical require path if true, | ||
* otherwise it returns the epxorted module | ||
*/ | ||
require.latest = function (name, returnPath) { | ||
|
@@ -80,7 +80,7 @@ require.latest = function (name, returnPath) { | |
semVerCandidates.push({version: version, name: moduleName}); | ||
} else { | ||
otherCandidates.push({version: version, name: moduleName}); | ||
} | ||
} | ||
} | ||
} | ||
if (semVerCandidates.concat(otherCandidates).length === 0) { | ||
|
@@ -3146,7 +3146,7 @@ function extend (options) { | |
* For options such as `data`, `vms`, `directives`, 'partials', | ||
* they should be further extended. However extending should only | ||
* be done at top level. | ||
* | ||
* | ||
* `proto` is an exception because it's handled directly on the | ||
* prototype. | ||
* | ||
|
@@ -3621,7 +3621,7 @@ function enableDebug () { | |
console.log(msg) | ||
} | ||
} | ||
|
||
/** | ||
* warnings, traces by default | ||
* can be suppressed by `silent` option. | ||
|
@@ -3718,7 +3718,7 @@ var Emitter = require('[email protected]/src/emitter.js'), | |
DepsParser = require('[email protected]/src/deps-parser.js'), | ||
ExpParser = require('[email protected]/src/exp-parser.js'), | ||
ViewModel, | ||
|
||
// cache methods | ||
slice = [].slice, | ||
extend = utils.extend, | ||
|
@@ -5117,7 +5117,7 @@ function watchMutation (method) { | |
inserted = args.slice(2) | ||
removed = result | ||
} | ||
|
||
// link & unlink | ||
linkArrayElements(this, inserted) | ||
unlinkArrayElements(this, removed) | ||
|
@@ -5132,7 +5132,7 @@ function watchMutation (method) { | |
}) | ||
|
||
return result | ||
|
||
}, !hasProto) | ||
} | ||
|
||
|
@@ -5581,7 +5581,7 @@ function Directive (name, ast, definition, compiler, el) { | |
var DirProto = Directive.prototype | ||
|
||
/** | ||
* called when a new value is set | ||
* called when a new value is set | ||
* for computed properties, this will only be called once | ||
* during initialization. | ||
*/ | ||
|
@@ -5781,7 +5781,7 @@ var KEYWORDS = | |
',arguments,let,yield' + | ||
// allow using Math in expressions | ||
',Math', | ||
|
||
KEYWORDS_RE = new RegExp(["\\b" + KEYWORDS.replace(/,/g, '\\b|\\b') + "\\b"].join('|'), 'g'), | ||
REMOVE_RE = /\/\*(?:.|\n)*?\*\/|\/\/[^\n]*\n|\/\/[^\n]*$|'[^']*'|"[^"]*"|[\s\t\n]*\.[\s\t\n]*[$\w\.]+|[\{,]\s*[\w\$_]+\s*:/g, | ||
SPLIT_RE = /[^\w$]+/g, | ||
|
@@ -6026,7 +6026,7 @@ function setDelimiters (delimiters) { | |
exports.Regex = buildInterpolationRegex() | ||
} | ||
|
||
/** | ||
/** | ||
* Parse a piece of text, return an array of tokens | ||
* token types: | ||
* 1. plain string | ||
|
@@ -6163,7 +6163,7 @@ module.exports = { | |
Observer.shouldGet = false | ||
utils.log('\ndone.') | ||
} | ||
|
||
} | ||
}); | ||
|
||
|
@@ -6508,7 +6508,7 @@ function applyTransitionClass (el, stage, changeState, hasAnimation) { | |
changeState() | ||
} | ||
return codes.CSS_L | ||
|
||
} | ||
|
||
} | ||
|
@@ -6781,7 +6781,7 @@ var utils = require('[email protected]/src/utils.js') | |
module.exports = { | ||
|
||
bind: function () { | ||
|
||
this.parent = this.el.parentNode | ||
this.ref = document.createComment('vue-if') | ||
this.Ctor = this.compiler.resolveComponent(this.el) | ||
|
@@ -6819,7 +6819,7 @@ module.exports = { | |
this.childVM.$before(this.ref) | ||
} | ||
} | ||
|
||
}, | ||
|
||
unbind: function () { | ||
|
@@ -27350,7 +27350,7 @@ require.register("[email protected]", function (exports, module) { | |
* TODO: combatible error handling? | ||
*/ | ||
|
||
module.exports = function(arr, fn, initial){ | ||
module.exports = function(arr, fn, initial){ | ||
var idx = 0; | ||
var len = arr.length; | ||
var curr = arguments.length == 3 | ||
|
@@ -27360,7 +27360,7 @@ module.exports = function(arr, fn, initial){ | |
while (idx < len) { | ||
curr = fn.call(null, curr, arr[idx], ++idx, arr); | ||
} | ||
|
||
return curr; | ||
}; | ||
}); | ||
|
@@ -28480,6 +28480,7 @@ require.register("grunt-wpt-page", function (exports, module) { | |
labels: { | ||
responseTime: { | ||
median: { | ||
SpeedIndex: 'Speed Index', | ||
domContentLoadedEventStart: 'DOM Content Ready Start', | ||
domContentLoadedEventEnd: 'DOM Content Ready End', | ||
loadTime: 'Document Complete', | ||
|
@@ -28488,6 +28489,7 @@ require.register("grunt-wpt-page", function (exports, module) { | |
fullyLoaded: 'Fully Loaded' | ||
}, | ||
average: { | ||
SpeedIndex: 'Speed Index', | ||
loadTime: 'Document Complete', | ||
fullyLoaded: 'Fully Loaded' | ||
} | ||
|
@@ -28536,7 +28538,7 @@ require.register("grunt-wpt-page", function (exports, module) { | |
return this.urls[this.url]; | ||
}, | ||
allTestIds: function(){ | ||
return _.chain(this.urls).map(function(val, key){ | ||
return _.chain(this.urls).map(function(val, key){ | ||
return val; | ||
}).flatten().value(); | ||
} | ||
|