Permalink
Browse files

init commit.

  • Loading branch information...
poshboytl committed Jul 18, 2012
0 parents commit 5e5793f592333ff73402de43350f246ed9cde481
Showing with 12,852 additions and 0 deletions.
  1. +20 −0 LICENSE
  2. +46 −0 test/index.html
  3. +616 −0 test/lib/jasmine-html.js
  4. +81 −0 test/lib/jasmine.css
  5. +2,529 −0 test/lib/jasmine.js
  6. +9,046 −0 test/lib/jquery.js
  7. +220 −0 test/specs/timeago_spec.js
  8. +132 −0 timeago.coffee
  9. +162 −0 timeago.js
20 LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2012 Terry Tai, Dingding Ye (terry@pragmatic.ly, dingding@pragmatic.ly)
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+"Software"), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
@@ -0,0 +1,46 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Jasmine Test Runner</title>
+ <link rel="stylesheet" type="text/css" href="lib/jasmine.css">
+ <script type="text/javascript" src="lib/jasmine.js"></script>
+ <script type="text/javascript" src="lib/jasmine-html.js"></script>
+
+ <script src="lib/jquery.js" type="text/javascript" charset="utf-8"></script>
+
+ <script src="../timeago.js" type="text/javascript" charset="utf-8"></script>
+
+ <script src="specs/timeago_spec.js" type="text/javascript" charset="utf-8"></script>
+</head>
+<body>
+
+ <script type="text/javascript">
+ (function() {
+ var jasmineEnv = jasmine.getEnv();
+ jasmineEnv.updateInterval = 1000;
+
+ var htmlReporter = new jasmine.HtmlReporter();
+
+ jasmineEnv.addReporter(htmlReporter);
+
+ jasmineEnv.specFilter = function(spec) {
+ return htmlReporter.specFilter(spec);
+ };
+
+ var currentWindowOnload = window.onload;
+
+ window.onload = function() {
+ if (currentWindowOnload) {
+ currentWindowOnload();
+ }
+ execJasmine();
+ };
+
+ function execJasmine() {
+ jasmineEnv.execute();
+ }
+
+ })(); </script>
+</body>
+</html>
+
Oops, something went wrong.

0 comments on commit 5e5793f

Please sign in to comment.