used actial badges

This commit is contained in:
Spencer Alger
2013-11-13 15:59:04 -07:00
parent d7aa884477
commit 86b024b167
4 changed files with 18 additions and 10 deletions

View File

@ -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',

View File

@ -16,11 +16,11 @@ elasticsearch.js works great in node, as well as modern browsers (many thanks to
- Node: - Node:
[![Build Status](https://spenceralger.com/jenkins-badge/es/es-js_nightly)](http://build.elasticsearch.com/job/es-js_nightly/) [![Build Status](https://spenceralger.com/jenkins-badge/es/es-js_nightly)](http://build.elasticsearch.com/job/es-js_nightly)
- Browsers (see [browser builds](#browser-builds)): - Browsers (see [browser builds](#browser-builds)):
![testling results for browser clients](https://ci.testling.com/spenceralger/xhr-method-test.png) ![current browser support](https://spenceralger.com/jenkins-browser-badge/es_js)
## Install in Node ## Install in Node

View File

@ -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');
}); });

View File

@ -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));
} }