Skip to content

Instantly share code, notes, and snippets.

@brennen
Last active December 15, 2015 20:48
Show Gist options
  • Save brennen/5320959 to your computer and use it in GitHub Desktop.
Save brennen/5320959 to your computer and use it in GitHub Desktop.
#!/usr/bin/env phantomjs
require('./TAP.js');
var t = new Test.TAP(function (text) { console.log(text); });
t.plan(3);
var page = require('webpage').create();
page.open('https://www.sparkfun.com/', function (status) {
t.is(status, 'success', 'load sparkfun root');
var title = page.evaluate(function () { return document.title; });
t.diag("title: " + title);
phantom.exit();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment