Skip to content
Browse files

remote testling browsers work!

  • Loading branch information...
1 parent 1788953 commit 542d68cc381517808275f42fe2b1dbd55618fec9 @substack committed Jun 28, 2012
Showing with 3 additions and 5 deletions.
  1. +1 −0 browser.js
  2. +0 −1 example/test.js
  3. +2 −4 lib/testling_visit.js
View
1 browser.js
@@ -1 +1,2 @@
+window.Buffer = require('buffer').Buffer;
module.exports = require('./browser/harness')().test;
View
1 example/test.js
@@ -2,7 +2,6 @@ var test = require('../');
test('json parse', function (t) {
t.same(JSON.parse('[1,2]'), [1,2]);
- t.ok(false);
t.log('beep boop');
t.end();
});
View
6 lib/testling_visit.js
@@ -11,13 +11,11 @@ module.exports = function (uri, opts, cb) {
var browser = b[0];
var version = opts.version || b[1];
- var uri = 'http://' + auth + '@localhost:8080/visit?'
- + 'uri=' + encodeURIComponent(uri)
+ var uri = 'http://' + auth + '@testling.com/visit?'
+ + 'uri=' + encodeURIComponent(turi)
+ '&browser=' + encodeURIComponent(browser + '/' + version)
;
- console.log(uri);
request(uri, function (err, res, body) {
console.log(body);
- // ...
});
};

0 comments on commit 542d68c

Please sign in to comment.
Something went wrong with that request. Please try again.