Skip to content

Commit

Permalink
run test after page loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
kingdido999 committed Dec 16, 2016
1 parent 958b178 commit b58b4f4
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ Under project folder:

Now open up `index.html` and play around with it!

## Test

Open up `test.html` for browser testing.

## Methods

#### `.listen(selector | element)`
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zooming",
"version": "0.6.2",
"version": "0.6.3",
"homepage": "https://github.com/kingdido999/zooming",
"authors": [
"Desmond Ding <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zooming",
"version": "0.6.2",
"version": "0.6.3",
"description": "Image zoom that makes sense.",
"main": "src/zooming.js",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion test.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ <h4>Image zoom that makes sense.</h4>
<script>mocha.setup('bdd')</script>
<script src="test/test.js"></script>
<script>
mocha.run();
window.addEventListener("load", function(event) {
mocha.run();
})
</script>

<!-- End Document
Expand Down

0 comments on commit b58b4f4

Please sign in to comment.