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
|
||||
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...
|
||||
appName: browsers[browser][process.platform === 'darwin' || process.platform === 'win32'
|
||||
var appName = browsers[browser][process.platform === 'darwin' || process.platform === 'win32'
|
||||
? 'appName'
|
||||
: '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, [
|
||||
'generate',
|
||||
'build',
|
||||
|
||||
@ -16,11 +16,11 @@ elasticsearch.js works great in node, as well as modern browsers (many thanks to
|
||||
|
||||
- Node:
|
||||
|
||||
[](http://build.elasticsearch.com/job/es-js_nightly/)
|
||||
[](http://build.elasticsearch.com/job/es-js_nightly)
|
||||
|
||||
- Browsers (see [browser builds](#browser-builds)):
|
||||
|
||||

|
||||

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