forked from jlmakes/scrollreveal
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- based on tape and testling - does not currently work on testling-ci - this is probably testling-ci's fault - does work quite nicely locally - tape-testing/testling#68
- Loading branch information
Jeff Escalante
committed
Mar 3, 2014
1 parent
3bf1f1f
commit cc84a4a
Showing
5 changed files
with
30 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
*.lock | ||
*.DS_Store | ||
node_modules | ||
test/bundle.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Contributing | ||
------------ | ||
|
||
### Running the Tests | ||
|
||
1. Make sure [nodejs](http://nodejs.org) is installed | ||
2. Run `npm install -g browserify testling; npm i` from your command line | ||
3. Run `npm test` from your command line and check the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<div class='t1' data-scroll-reveal='enter left and move 50px over 1.33s'>test 1</div> | ||
|
||
<script src='dist/scrollReveal.js'></script> | ||
<script>new scrollReveal</script> | ||
<script src="test/bundle.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var test = require('tape'); | ||
|
||
test('basic', function(t){ | ||
var test_styles = document.querySelector('div').style; | ||
t.equal(test_styles.cssText, '-webkit-transform: translateX(0px); opacity: 1; -webkit-transition-property: all; -webkit-transition-duration: 1.33s; -webkit-transition-timing-function: ease-in-out; -webkit-transition-delay: 0s; -webkit-perspective: 1000; -webkit-backface-visibility: hidden; '); | ||
t.end(); | ||
}); |