used actial badges
This commit is contained in:
14
Gruntfile.js
14
Gruntfile.js
@ -231,13 +231,21 @@ module.exports = function (grunt) {
|
|||||||
|
|
||||||
// creates browser_tests:{{browser}} tasks, for the browsers listed directly above
|
// creates browser_tests:{{browser}} tasks, for the browsers listed directly above
|
||||||
Object.keys(browsers).forEach(function (browser) {
|
Object.keys(browsers).forEach(function (browser) {
|
||||||
grunt.config.set('open_browser_tests.' + browser, {
|
|
||||||
// on other platforms, grunt-open expects appname to be the name of the executale...
|
// on other platforms, grunt-open expects appname to be the name of the executale...
|
||||||
appName: browsers[browser][process.platform === 'darwin' || process.platform === 'win32'
|
var appName = browsers[browser][process.platform === 'darwin' || process.platform === 'win32'
|
||||||
? 'appName'
|
? 'appName'
|
||||||
: 'executale'
|
: 'executale'
|
||||||
]
|
];
|
||||||
|
|
||||||
|
if (!appName) {
|
||||||
|
// this browser doesn't run on this arch
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
grunt.config.set('open_browser_tests.' + browser, {
|
||||||
|
appName: appName
|
||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('browser_tests:' + browser, [
|
grunt.registerTask('browser_tests:' + browser, [
|
||||||
'generate',
|
'generate',
|
||||||
'build',
|
'build',
|
||||||
|
|||||||
@ -16,11 +16,11 @@ elasticsearch.js works great in node, as well as modern browsers (many thanks to
|
|||||||
|
|
||||||
- Node:
|
- Node:
|
||||||
|
|
||||||
[](http://build.elasticsearch.com/job/es-js_nightly/)
|
[](http://build.elasticsearch.com/job/es-js_nightly)
|
||||||
|
|
||||||
- Browsers (see [browser builds](#browser-builds)):
|
- Browsers (see [browser builds](#browser-builds)):
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
## Install in Node
|
## Install in Node
|
||||||
|
|||||||
@ -103,5 +103,5 @@ Console.prototype.onTrace = _.handler(function (method, url, body, responseBody,
|
|||||||
message += ' -d "' + body.replace(/"/g, '\\"') + '"';
|
message += ' -d "' + body.replace(/"/g, '\\"') + '"';
|
||||||
}
|
}
|
||||||
message += '\n<- ' + responseStatus + '\n' + responseBody;
|
message += '\n<- ' + responseStatus + '\n' + responseBody;
|
||||||
console.log('TRACE:\n' + message + '\n\n');
|
console.log('TRACE:\n' + message + '\n');
|
||||||
});
|
});
|
||||||
|
|||||||
@ -189,14 +189,14 @@
|
|||||||
return {
|
return {
|
||||||
log: function () {
|
log: function () {
|
||||||
if (stack[0]) {
|
if (stack[0]) {
|
||||||
stack[0].stdout += argsToString(arguments) + '\n';
|
stack[0].stdout += argsToString(arguments) + '\n\n';
|
||||||
} else {
|
} else {
|
||||||
origLog(argsToString(arguments));
|
origLog(argsToString(arguments));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function () {
|
error: function () {
|
||||||
if (stack[0]) {
|
if (stack[0]) {
|
||||||
stack[0].stderr += argsToString(arguments) + '\n';
|
stack[0].stderr += argsToString(arguments) + '\n\n';
|
||||||
} else {
|
} else {
|
||||||
origErr(argsToString(arguments));
|
origErr(argsToString(arguments));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user