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
var casper = require('casper').create(); | |
var casper2 = require('casper').create(); | |
var roomName = 'caspersroom'; | |
var audiofile = ''; | |
casper.start('http://localhost:7001/', function() { | |
this.test.assertTitle('NoiseBox', 'NoiseBox title is ok'); | |
this.test.assertExists('form[action="/host/"]', 'The form to create a new host exists'); | |
this.fill('form[action="/host/"]', { | |
id: roomName |
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
if (typeof someVar === 'undefined') { | |
// it's not defined | |
} |
NewerOlder