Skip to content

Instantly share code, notes, and snippets.

@matthewp
Created April 24, 2014 18:53
Show Gist options
  • Save matthewp/11265354 to your computer and use it in GitHub Desktop.
Save matthewp/11265354 to your computer and use it in GitHub Desktop.
Sanity check
<html>
<head>
<title>Sanity check</title>
</head>
<body>
<script>
window.runLater = function() {
console.log("Calling runLater");
window.setTimeout(function() {
console.log("Waited 5ms");
}, 5);
};
</script>
</body>
</html>
var Browser = require("zombie");
var browser = new Browser({ debug: true });
browser.visit("file://" + __dirname + "/sanity.html", function() {
console.log("Loaded sanity.html");
browser.window.runLater();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment