diff options
author | Trent Richardson <trentdrichardson@gmail.com> | 2013-07-28 18:08:38 -0400 |
---|---|---|
committer | Trent Richardson <trentdrichardson@gmail.com> | 2013-07-28 18:08:38 -0400 |
commit | 51e8a3a4f8e01876c964b237adab2eebc50650e1 (patch) | |
tree | 1eb8319bf404747155983d0f9735f5389f95a42d /test | |
parent | 8a812edfa0dfaab50191ffdaa41d244d19d7f979 (diff) | |
download | jQuery-Timepicker-Addon-51e8a3a4f8e01876c964b237adab2eebc50650e1.zip jQuery-Timepicker-Addon-51e8a3a4f8e01876c964b237adab2eebc50650e1.tar.gz jQuery-Timepicker-Addon-51e8a3a4f8e01876c964b237adab2eebc50650e1.tar.bz2 |
Migrate to grunt setup
Diffstat (limited to 'test')
-rw-r--r-- | test/.jshintrc | 32 | ||||
-rw-r--r-- | test/SpecRunner.html | 52 | ||||
-rw-r--r-- | test/jquery-timepicker-addon_spec.js (renamed from test/jquery-ui-timepicker-addon_spec.js) | 0 |
3 files changed, 84 insertions, 0 deletions
diff --git a/test/.jshintrc b/test/.jshintrc new file mode 100644 index 0000000..2de0248 --- /dev/null +++ b/test/.jshintrc @@ -0,0 +1,32 @@ +{ + "curly": true, + "eqeqeq": true, + "immed": true, + "latedef": true, + "newcap": true, + "noarg": true, + "sub": true, + "undef": true, + "unused": true, + "boss": true, + "eqnull": true, + "browser": true, + "predef": [ + "jQuery", + "QUnit", + "module", + "test", + "asyncTest", + "expect", + "start", + "stop", + "ok", + "equal", + "notEqual", + "deepEqual", + "notDeepEqual", + "strictEqual", + "notStrictEqual", + "throws" + ] +}
\ No newline at end of file diff --git a/test/SpecRunner.html b/test/SpecRunner.html new file mode 100644 index 0000000..1948033 --- /dev/null +++ b/test/SpecRunner.html @@ -0,0 +1,52 @@ +<!DOCTYPE html> +<html> +<head> + <title>jquery-ui-timepicker-addon Spec Runner</title> + + <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.1.min.js"></script> + + <link rel="shortcut icon" type="image/png" href="../lib/jasmine-1.3.1/jasmine_favicon.png"> + <link rel="stylesheet" type="text/css" href="../lib/jasmine-1.3.1/jasmine.css"> + <script type="text/javascript" src="../lib/jasmine-1.3.1/jasmine.js"></script> + <script type="text/javascript" src="../lib/jasmine-1.3.1/jasmine-html.js"></script> + <script type="text/javascript" src="http://github.com/searls/jasmine-fixture/releases/1.0.5/1737/jasmine-fixture.js"></script> + + <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script> + <script type="text/javascript" src="../src/jquery-timepicker-addon.js"></script> + + <script type="text/javascript" src="jquery-timepicker-addon_spec.js"></script> + + <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> + +</head> +<body> + +</body> +</html>
\ No newline at end of file diff --git a/test/jquery-ui-timepicker-addon_spec.js b/test/jquery-timepicker-addon_spec.js index 191db63..191db63 100644 --- a/test/jquery-ui-timepicker-addon_spec.js +++ b/test/jquery-timepicker-addon_spec.js |