phantom tests

This commit is contained in:
arzynik 2014-04-07 16:34:54 -07:00
parent cadbeba2b5
commit 39d86d7bd7
2 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,7 @@ before_script:
- sudo apt-get install apache2
- sudo a2enmod actions
- sudo a2enmod rewrite
- chmod -R 0777 ./*
- echo "export PATH=/home/travis/.phpenv/bin:$PATH" | sudo tee -a /etc/apache2/envvars > /dev/null
- cat travis/apache.conf | sudo tee /etc/apache2/conf.d/phpconfig > /dev/null
- cat travis/sites.conf | sed -e "s,PATH,`pwd`/www,g" | sudo tee /etc/apache2/sites-available/default > /dev/null

View File

@ -1,8 +1,12 @@
var page = require('webpage').create();
page.open('http://localhost', function(status) {
page.open('http://localhost/robots.txt', function(status) {
/*
var title = page.evaluate(function() {
return document.body.innerText;
});
console.log('>> BODY ' + title);
console.log('>> BODY >> ' + title);
*/
console.log('>> CONTENT >> ' + page.content);
phantom.exit();
});