Skip to content

Instantly share code, notes, and snippets.

/testling.js Secret

Created September 4, 2012 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6a7d8cb116fcf0f0b1ce to your computer and use it in GitHub Desktop.
Save anonymous/6a7d8cb116fcf0f0b1ce to your computer and use it in GitHub Desktop.
// @substack i tried with this:
// $ curl -u niftylettuce@gmail.com -sSNT tests/testling.js 'testling.com/?browsers=iexplore/6.0&output=log > output.json'
// and I get a response of:
// curl: (52) Empty reply from server
// # testing async.js across all the browsers
/*
curl -u xxx@xxx -sSNT testling.js 'testling.com?script=https://raw.github.com/niftylettuce/javascript-async-callback/master/async.min.js&browsers=iexplore/6.0,iexplore/7.0,iexplore/8.0,iexplore/9.0,chrome/4.0,chrome/5.0,chrome/6.0,chrome/7.0,chrome/8.0,chrome/9.0,chrome/10.0,chrome/11.0,chrome/12.0,chrome/13.0,chrome/14.0,chrome/15.0,chrome/16.0,chrome/17.0,chrome/18.0,chrome/19.0,chrome/20.0,firefox/3.0,firefox/3.5,firefox/3.6,firefox/4.0,firefox/5.0,firefox/6.0,firefox/7.0,firefox/8.0,firefox/9.0,firefox/10.0,firefox/11.0,firefox/12.0,firefox/13.0,opera/10.0,opera/10.5,opera/11.0,opera/11.5,opera/11.6,safari/5.0.5,safari/5.1,firefox/nightly,opera/next,chrome/canary&output=log > output.json'
*/
// if using 0.6.x:
// <https://github.com/substack/http-browserify/issues/11>
// `$ npm -g install npm@1.1.41`
// then:
// `$ npm install testling jsonify`
var test = require('testling')
, json = require('jsonify')
test('asynchronously load external script', function(t) {
t.log('hello')
t.end()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment