Permalink
Browse files

adding mocha tests

  • Loading branch information...
garris committed Jul 29, 2014
1 parent 1f2747f commit 33942805c911ca3b552eff64afbd117d2ee370a7
View
@@ -14,7 +14,7 @@ results
npm-debug.log
.DS_Store
*.DS_Store
*.sublime-project
*.sublime-workspace
.svn
View
@@ -0,0 +1,71 @@
<!DOCTYPE html>
<html>
<head>
<title>TremulaJS</title>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="test/css/style.css" media="screen" type="text/css" />
<link rel="stylesheet" href="node_modules/mocha/mocha.css" />
<link rel="stylesheet" href="src/Tremula.css">
<style type="text/css">
.debug{
position: absolute;
bottom:0;
right:0;
width:300px;
height: 300px;
overflow: scroll;
padding: 10px;
background-color: rgba(255,255,255,.9);
z-index: 10;
}
#mocha{
position: absolute;
bottom: 0;
left: 0;
width: 500px;
height: 400px;
overflow: scroll;
padding-right: 10px;
margin:0px;
background-color: rgba(255,255,255,.9);
z-index: 10;
}
#mocha-stats{position:absolute;}
#mocha .test pre{font-size: 9px}
</style>
<script src="libs/jquery-min.js"></script>
<script src="libs/hammer.js"></script>
<script src="libs/jsBezier-0.6.js"></script>
<script src="node_modules/mocha/mocha.js" type="text/javascript"></script>
<script src="node_modules/chai/chai.js" type="text/javascript"></script>
<!--<script src="node_modules/expect.js/index.js" type="text/javascript"></script>-->
<script src="test/js/index.js" style=""></script>
<script data-main="src/Tremula" src="libs/require.js"></script>
<script src="test/test.js" style=""></script>
</head>
<body>
<div id="mocha"></div>
<div class="pageLayoutContainer">
<a class="plug" href="https://github.com/garris/TremulaJS" target="_blank">TremulaJS on Github</a>
<pre class="debug">DEBUG</pre>
<div class="tremulaContainer"></div>
<h1><a href="https://github.com/garris/TremulaJS" target="_blank">TremulaJS</a></h1>
<span class="cta">Swipe, Scroll, Click &amp; Drag</span>
</div>
<div class="pageFold">
<img src="test/deal-with-it-cat11.jpeg"/>
</div>
</body>
</html>
View
@@ -0,0 +1,5 @@
A Pen created at CodePen.io. You can find this one at http://codepen.io/garris/pen/Lcrbl.
TremulaJS is a responsive Javascript content carousel/slider with Bézier-based momentum & physics effects for mouse, trackpad and touch devices.
This Pen allows you to experiment using different config file settings.
View
@@ -0,0 +1,88 @@
@import url(http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
body{
font-family: 'Yanone Kaffeesatz', sans-serif;
background-color: #ddd;
}
*{
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
a{color:inherit;text-decoration:none;}
.pageLayoutContainer>h1{
color: rgba(0, 0, 0, 0.19);
z-index: 0;
position: absolute;
right: 20px;
bottom: 0;
font-size: 40px;
line-height:50px;
padding: 0;
margin: 0;
text-shadow: 0px 1px 1px rgba(255,255,255,1);
display:inline-block;
}
.plug{padding:15px 20px;position:absolute;}
.cta{
font-size:25px;
color:#666;
padding: 0;
margin: 0;
position: absolute;
left: 20px;
bottom: 0;
line-height:40px;
}
/* === Tremula Styles === */
/* Note: any gridBox border added must be compensated for by adding negative margin */
.gridBox{
border:#fff 10px solid;
margin: -10px 0 0 -10px;
}
/* .tremulaContainer must have actual dimentionality (set H&W) */
.tremulaContainer{
height:60%;
height:calc(100% - 120px);
width:90%;
position:relative;
top:20px;
left:0;
z-index: 1;
margin:25px auto;
border: black solid 1px;
}
.pageLayoutContainer{
height:100%;
width:100%;
position:absolute;
top:0;
left:0;
margin:0;
border: black solid 1px;
}
.pageFold{
height: 2000px;
width: 100%;
text-align: center;
position: absolute;
top:100%;
background-color: #bbb;
}
.pageFold img{
top:300px;
position: relative;
}
View
Binary file not shown.
View
@@ -0,0 +1,23 @@
[
{"id":"14747534026","owner":"124853867@N05","secret":"6c24b33364","server":"2934","farm":3,"title":"Útá Granda","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2934/14747534026_6c24b33364_n.jpg","height_n":213,"width_n":"320"},
{"id":"14770545665","owner":"124853867@N05","secret":"8c50c86cd6","server":"2915","farm":3,"title":"Húsasund í Skipholti","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2915/14770545665_8c50c86cd6_n.jpg","height_n":213,"width_n":"320"},
{"id":"14583895389","owner":"124853867@N05","secret":"519160b41f","server":"3843","farm":4,"title":"Útá Granda","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3843/14583895389_519160b41f_n.jpg","height_n":213,"width_n":"320"},
{"id":"14770557605","owner":"77358520@N00","secret":"87c851194c","server":"5591","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5591/14770557605_87c851194c_n.jpg","height_n":"320","width_n":212},
{"id":"14770224262","owner":"77358520@N00","secret":"398cbf9839","server":"3858","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3858/14770224262_398cbf9839_n.jpg","height_n":"320","width_n":240},
{"id":"14768250614","owner":"77358520@N00","secret":"dfa428e6ec","server":"3862","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3862/14768250614_dfa428e6ec_n.jpg","height_n":212,"width_n":"320"},
{"id":"14583908169","owner":"77358520@N00","secret":"a43f6cdb33","server":"3898","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3898/14583908169_a43f6cdb33_n.jpg","height_n":240,"width_n":"320"},
{"id":"14768191134","owner":"77358520@N00","secret":"94706651a0","server":"3851","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3851/14768191134_94706651a0_n.jpg","height_n":"320","width_n":240},
{"id":"14790421693","owner":"77358520@N00","secret":"457ce1a350","server":"5583","farm":6,"title":"Paris, Mister Pee","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5583/14790421693_457ce1a350_n.jpg","height_n":240,"width_n":"320"},
{"id":"14747547636","owner":"77358520@N00","secret":"414ca3f08a","server":"2904","farm":3,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2904/14747547636_414ca3f08a_n.jpg","height_n":"320","width_n":240}
]
View
@@ -0,0 +1,53 @@
[
{"id":"14768598544","owner":"50969511@N02","secret":"efcb913eea","server":"5555","farm":6,"title":"Exterminate","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5555/14768598544_efcb913eea_n.jpg","height_n":207,"width_n":"320"},
{"id":"14584169559","owner":"36033492@N00","secret":"0e18d1961a","server":"5584","farm":6,"title":"Créer c'est se souvenir","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5584/14584169559_0e18d1961a_n.jpg","height_n":320,"width_n":"320"},
{"id":"14770815985","owner":"36033492@N00","secret":"dee246ef72","server":"3851","farm":4,"title":"Dive","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3851/14770815985_dee246ef72_n.jpg","height_n":320,"width_n":"320"},
{"id":"14584168199","owner":"36033492@N00","secret":"1d0063f6d5","server":"3917","farm":4,"title":"Dodgy","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3917/14584168199_1d0063f6d5_n.jpg","height_n":"320","width_n":240},
{"id":"14583990299","owner":"13700208@N03","secret":"d81eed76d1","server":"3918","farm":4,"title":"One Brick Wonders","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3918/14583990299_d81eed76d1_n.jpg","height_n":"320","width_n":180},
{"id":"14790421693","owner":"77358520@N00","secret":"457ce1a350","server":"5583","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5583/14790421693_457ce1a350_n.jpg","height_n":240,"width_n":"320"},
{"id":"14770544415","owner":"124853867@N05","secret":"9d13db9300","server":"5561","farm":6,"title":"Útá Granda","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5561/14770544415_9d13db9300_n.jpg","height_n":213,"width_n":"320"},
{"id":"14768191134","owner":"77358520@N00","secret":"94706651a0","server":"3851","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3851/14768191134_94706651a0_n.jpg","height_n":"320","width_n":240},
{"id":"14747547636","owner":"77358520@N00","secret":"414ca3f08a","server":"2904","farm":3,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2904/14747547636_414ca3f08a_n.jpg","height_n":"320","width_n":240},
{"id":"14583908169","owner":"77358520@N00","secret":"a43f6cdb33","server":"3898","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3898/14583908169_a43f6cdb33_n.jpg","height_n":240,"width_n":"320"},
{"id":"14790421263","owner":"77358520@N00","secret":"8255c4e392","server":"3862","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3862/14790421263_8255c4e392_n.jpg","height_n":"320","width_n":240},
{"id":"14583847250","owner":"77358520@N00","secret":"21c5ca9b0a","server":"3871","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3871/14583847250_21c5ca9b0a_n.jpg","height_n":"320","width_n":240},
{"id":"14790421663","owner":"77358520@N00","secret":"14b92767de","server":"3906","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3906/14790421663_14b92767de_n.jpg","height_n":240,"width_n":"320"},
{"id":"14768250614","owner":"77358520@N00","secret":"dfa428e6ec","server":"3862","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3862/14768250614_dfa428e6ec_n.jpg","height_n":212,"width_n":"320"},
{"id":"14770224262","owner":"77358520@N00","secret":"398cbf9839","server":"3858","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3858/14770224262_398cbf9839_n.jpg","height_n":"320","width_n":240},
{"id":"14747534026","owner":"124853867@N05","secret":"6c24b33364","server":"2934","farm":3,"title":"Útá Granda","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2934/14747534026_6c24b33364_n.jpg","height_n":213,"width_n":"320"},
{"id":"14583847390","owner":"77358520@N00","secret":"254770d79c","server":"5573","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5573/14583847390_254770d79c_n.jpg","height_n":240,"width_n":"320"},
{"id":"14767369771","owner":"124853867@N05","secret":"7550fdf99d","server":"3865","farm":4,"title":"20140720_0066","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3865/14767369771_7550fdf99d_n.jpg","height_n":213,"width_n":"320"},
{"id":"14747548096","owner":"77358520@N00","secret":"4540ccc136","server":"3882","farm":4,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3882/14747548096_4540ccc136_n.jpg","height_n":"320","width_n":240},
{"id":"14583908079","owner":"77358520@N00","secret":"eae29d0709","server":"5562","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5562/14583908079_eae29d0709_n.jpg","height_n":"320","width_n":240},
{"id":"14583895389","owner":"124853867@N05","secret":"519160b41f","server":"3843","farm":4,"title":"Útá Granda","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm4.staticflickr.com/3843/14583895389_519160b41f_n.jpg","height_n":213,"width_n":"320"},
{"id":"14770557605","owner":"77358520@N00","secret":"87c851194c","server":"5591","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5591/14770557605_87c851194c_n.jpg","height_n":"320","width_n":212},
{"id":"14747536246","owner":"124853867@N05","secret":"a9cbbb0ae9","server":"5593","farm":6,"title":"20140421_0021","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5593/14747536246_a9cbbb0ae9_n.jpg","height_n":213,"width_n":"320"},
{"id":"14770545665","owner":"124853867@N05","secret":"8c50c86cd6","server":"2915","farm":3,"title":"Húsasund í Skipholti","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm3.staticflickr.com/2915/14770545665_8c50c86cd6_n.jpg","height_n":213,"width_n":"320"},
{"id":"14583908209","owner":"77358520@N00","secret":"9352c23ab4","server":"5561","farm":6,"title":"Paris","ispublic":1,"isfriend":0,"isfamily":0,"url_n":"https://farm6.staticflickr.com/5561/14583908209_9352c23ab4_n.jpg","height_n":240,"width_n":"320"}
]
Oops, something went wrong.

0 comments on commit 3394280

Please sign in to comment.