Created
October 12, 2011 01:04
-
-
Save jxson/1279930 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// less.js, modernizer, and almost all dymanic content seems broken :( | |
var zombie = require("zombie") | |
, assert = require("assert") | |
; | |
var jxson = new zombie.Browser(); | |
var darthburrit0 = new zombie.Browser(); | |
var url = 'http://localhost:8080/simple-chat/index.html'; | |
// var url = 'http://localhost:8080/stylesheets/master.less'; | |
jxson.visit(url, function(err, browser){ | |
// if (err) throw err; | |
// console.log('args', browser); | |
browser | |
.fill('nick', 'jxson') | |
.pressButton('Join →', function(err){ | |
console.log('heyo', browser.html('.messages')); | |
}); | |
}); | |
darthburrit0.visit(url, function(err, browser){ | |
// if (err) throw err; | |
// console.log('args', browser); | |
browser | |
.fill('nick', 'darthburrit0') | |
.pressButton('Join →', function(err){ | |
setTimeout(function(){ | |
console.log('heyo', browser.html('body')); | |
}, 500) | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment