Skip to content

Commit

Permalink
Adding Speed Index as an output parameter on the graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
miglesiasEB committed Nov 25, 2014
1 parent 3a16e37 commit a2bcc2e
Showing 1 changed file with 20 additions and 18 deletions.
38 changes: 20 additions & 18 deletions build/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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) {
Expand Down Expand Up @@ -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.
*
Expand Down Expand Up @@ -3621,7 +3621,7 @@ function enableDebug () {
console.log(msg)
}
}

/**
* warnings, traces by default
* can be suppressed by `silent` option.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -5117,7 +5117,7 @@ function watchMutation (method) {
inserted = args.slice(2)
removed = result
}

// link & unlink
linkArrayElements(this, inserted)
unlinkArrayElements(this, removed)
Expand All @@ -5132,7 +5132,7 @@ function watchMutation (method) {
})

return result

}, !hasProto)
}

Expand Down Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -6163,7 +6163,7 @@ module.exports = {
Observer.shouldGet = false
utils.log('\ndone.')
}

}
});

Expand Down Expand Up @@ -6508,7 +6508,7 @@ function applyTransitionClass (el, stage, changeState, hasAnimation) {
changeState()
}
return codes.CSS_L

}

}
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -6819,7 +6819,7 @@ module.exports = {
this.childVM.$before(this.ref)
}
}

},

unbind: function () {
Expand Down Expand Up @@ -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
Expand All @@ -27360,7 +27360,7 @@ module.exports = function(arr, fn, initial){
while (idx < len) {
curr = fn.call(null, curr, arr[idx], ++idx, arr);
}

return curr;
};
});
Expand Down Expand Up @@ -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',
Expand All @@ -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'
}
Expand Down Expand Up @@ -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();
}
Expand Down

0 comments on commit a2bcc2e

Please sign in to comment.