Skip to content

Commit

Permalink
Add test.html
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroencoumans committed Jul 13, 2016
1 parent ee9582a commit 31442b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "A command line tool to generate PDF from URL, HTML or Markdown files",
"main": "index.js",
"scripts": {
"test": "standard"
"test": "standard && ./cli.js test.html test.pdf -W ready -w 10000"
},
"bin": {
"electron-pdf": "cli.js"
Expand Down
6 changes: 3 additions & 3 deletions test.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<html>
<head>
<title>NOT ready</title>
<title>loading</title>
</head>
<body>
<p id='test'>error</p>
<p id='test'>it failed :(</p>
<script>
setTimeout(function () { document.getElementById('test').innerHTML = 'success'}, 1000)
setTimeout(function () { document.getElementById('test').innerHTML = 'it works :)'}, 1000)
setTimeout(function () { document.title = 'ready' }, 2000)
</script>
</body>
Expand Down

0 comments on commit 31442b4

Please sign in to comment.