Remove the jasmine vendor assets, as that is all managed through the grunt-contr…
…ib-jasmine spec runner now.
Showing
6 changed files
with
0 additions
and
210 deletions
spec/index.html
deleted
100644 → 0
1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | ||
2 | "http://www.w3.org/TR/html4/loose.dtd"> | ||
3 | <html> | ||
4 | <head> | ||
5 | <title>Rivets.js test suite</title> | ||
6 | |||
7 | <link rel="stylesheet" type="text/css" href="lib/jasmine.css"> | ||
8 | |||
9 | <script type="text/javascript" src="lib/jasmine.js"></script> | ||
10 | <script type="text/javascript" src="lib/jasmine-html.js"></script> | ||
11 | <script type="text/javascript" src="lib/jasmine-helper.js"></script> | ||
12 | |||
13 | <script type="text/javascript" src="../lib/rivets.js"></script> | ||
14 | |||
15 | <script type="text/javascript" src="matchers.js"></script> | ||
16 | <script type="text/javascript" src="mock.data.js"></script> | ||
17 | <script type="text/javascript" src="rivets/binding.js"></script> | ||
18 | <script type="text/javascript" src="rivets/binders.js"></script> | ||
19 | <script type="text/javascript" src="rivets/routines.js"></script> | ||
20 | <script type="text/javascript" src="rivets/functional.js"></script> | ||
21 | |||
22 | <script type="text/javascript"> | ||
23 | (function() { | ||
24 | var jasmineEnv = jasmine.getEnv(); | ||
25 | jasmineEnv.updateInterval = 250; | ||
26 | |||
27 | var htmlReporter = new jasmine.HtmlReporter(); | ||
28 | |||
29 | jasmineEnv.addReporter(htmlReporter); | ||
30 | |||
31 | jasmineEnv.specFilter = function(spec) { | ||
32 | return htmlReporter.specFilter(spec); | ||
33 | }; | ||
34 | |||
35 | var currentWindowOnload = window.onload; | ||
36 | |||
37 | window.onload = function() { | ||
38 | if (currentWindowOnload) { | ||
39 | currentWindowOnload(); | ||
40 | } | ||
41 | execJasmine(); | ||
42 | }; | ||
43 | |||
44 | function execJasmine() { | ||
45 | jasmineEnv.execute(); | ||
46 | } | ||
47 | |||
48 | })(); | ||
49 | </script> | ||
50 | |||
51 | </head> | ||
52 | |||
53 | <body> | ||
54 | </body> | ||
55 | </html> |
spec/lib/MIT.LICENSE
deleted
100644 → 0
1 | Copyright (c) 2008-2011 Pivotal Labs | ||
2 | |||
3 | Permission is hereby granted, free of charge, to any person obtaining | ||
4 | a copy of this software and associated documentation files (the | ||
5 | "Software"), to deal in the Software without restriction, including | ||
6 | without limitation the rights to use, copy, modify, merge, publish, | ||
7 | distribute, sublicense, and/or sell copies of the Software, and to | ||
8 | permit persons to whom the Software is furnished to do so, subject to | ||
9 | the following conditions: | ||
10 | |||
11 | The above copyright notice and this permission notice shall be | ||
12 | included in all copies or substantial portions of the Software. | ||
13 | |||
14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
spec/lib/jasmine-helper.js
deleted
100644 → 0
1 | /* | ||
2 | * Is injected into the spec runner file | ||
3 | |||
4 | * Copyright (c) 2012 Camille Reynders | ||
5 | * Copyright (c) 2012 "Cowboy" Ben Alman | ||
6 | * Licensed under the MIT license. | ||
7 | * http://benalman.com/about/license/ | ||
8 | */ | ||
9 | |||
10 | /*global jasmine:true, alert:true*/ | ||
11 | |||
12 | // Send messages to the parent phantom.js process via alert! Good times!! | ||
13 | function sendMessage(){ | ||
14 | var args = [].slice.call( arguments ); | ||
15 | alert( JSON.stringify( args ) ); | ||
16 | } | ||
17 | |||
18 | var GruntReporter = function(){ | ||
19 | this._started = this._getTime(); | ||
20 | }; | ||
21 | GruntReporter.prototype = { | ||
22 | _getTime : function(){ | ||
23 | return new Date().getTime(); | ||
24 | }, | ||
25 | /** | ||
26 | * @param {jasmine.Suite} suite | ||
27 | */ | ||
28 | _getSuitesToRoot : function( suite ){ | ||
29 | var result = []; | ||
30 | do{ | ||
31 | result.unshift( suite.description ); | ||
32 | suite = suite.parentSuite; | ||
33 | }while( suite ); | ||
34 | return result; | ||
35 | }, | ||
36 | /** | ||
37 | * @param {jasmine.Suite} suite | ||
38 | */ | ||
39 | reportRunnerResults : function( runner ){ | ||
40 | var elapsed = this._getTime() - this._started; | ||
41 | sendMessage( 'done', elapsed ); | ||
42 | }, | ||
43 | /** | ||
44 | * | ||
45 | * @param {jasmine.Spec} spec | ||
46 | */ | ||
47 | reportSpecResults : function( spec ){ | ||
48 | var results = spec.results(); | ||
49 | var suites = this._getSuitesToRoot( spec.suite ); | ||
50 | sendMessage( 'testDone', suites.join( ' ' ), spec.description, results.totalCount, results.passedCount, results.failedCount, results.skipped ); | ||
51 | } | ||
52 | }; | ||
53 | |||
54 | jasmine.getEnv().addReporter( new GruntReporter() ); |
spec/lib/jasmine-html.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
spec/lib/jasmine.css
deleted
100644 → 0
1 | body { background-color: #eeeeee; padding: 0; margin: 5px; overflow-y: scroll; } | ||
2 | |||
3 | #HTMLReporter { font-size: 11px; font-family: Monaco, "Lucida Console", monospace; line-height: 14px; color: #333333; } | ||
4 | #HTMLReporter a { text-decoration: none; } | ||
5 | #HTMLReporter a:hover { text-decoration: underline; } | ||
6 | #HTMLReporter p, #HTMLReporter h1, #HTMLReporter h2, #HTMLReporter h3, #HTMLReporter h4, #HTMLReporter h5, #HTMLReporter h6 { margin: 0; line-height: 14px; } | ||
7 | #HTMLReporter .banner, #HTMLReporter .symbolSummary, #HTMLReporter .summary, #HTMLReporter .resultMessage, #HTMLReporter .specDetail .description, #HTMLReporter .alert .bar, #HTMLReporter .stackTrace { padding-left: 9px; padding-right: 9px; } | ||
8 | #HTMLReporter #jasmine_content { position: fixed; right: 100%; } | ||
9 | #HTMLReporter .version { color: #aaaaaa; } | ||
10 | #HTMLReporter .banner { margin-top: 14px; } | ||
11 | #HTMLReporter .duration { color: #aaaaaa; float: right; } | ||
12 | #HTMLReporter .symbolSummary { overflow: hidden; *zoom: 1; margin: 14px 0; } | ||
13 | #HTMLReporter .symbolSummary li { display: block; float: left; height: 7px; width: 14px; margin-bottom: 7px; font-size: 16px; } | ||
14 | #HTMLReporter .symbolSummary li.passed { font-size: 14px; } | ||
15 | #HTMLReporter .symbolSummary li.passed:before { color: #5e7d00; content: "\02022"; } | ||
16 | #HTMLReporter .symbolSummary li.failed { line-height: 9px; } | ||
17 | #HTMLReporter .symbolSummary li.failed:before { color: #b03911; content: "x"; font-weight: bold; margin-left: -1px; } | ||
18 | #HTMLReporter .symbolSummary li.skipped { font-size: 14px; } | ||
19 | #HTMLReporter .symbolSummary li.skipped:before { color: #bababa; content: "\02022"; } | ||
20 | #HTMLReporter .symbolSummary li.pending { line-height: 11px; } | ||
21 | #HTMLReporter .symbolSummary li.pending:before { color: #aaaaaa; content: "-"; } | ||
22 | #HTMLReporter .bar { line-height: 28px; font-size: 14px; display: block; color: #eee; } | ||
23 | #HTMLReporter .runningAlert { background-color: #666666; } | ||
24 | #HTMLReporter .skippedAlert { background-color: #aaaaaa; } | ||
25 | #HTMLReporter .skippedAlert:first-child { background-color: #333333; } | ||
26 | #HTMLReporter .skippedAlert:hover { text-decoration: none; color: white; text-decoration: underline; } | ||
27 | #HTMLReporter .passingAlert { background-color: #a6b779; } | ||
28 | #HTMLReporter .passingAlert:first-child { background-color: #5e7d00; } | ||
29 | #HTMLReporter .failingAlert { background-color: #cf867e; } | ||
30 | #HTMLReporter .failingAlert:first-child { background-color: #b03911; } | ||
31 | #HTMLReporter .results { margin-top: 14px; } | ||
32 | #HTMLReporter #details { display: none; } | ||
33 | #HTMLReporter .resultsMenu, #HTMLReporter .resultsMenu a { background-color: #fff; color: #333333; } | ||
34 | #HTMLReporter.showDetails .summaryMenuItem { font-weight: normal; text-decoration: inherit; } | ||
35 | #HTMLReporter.showDetails .summaryMenuItem:hover { text-decoration: underline; } | ||
36 | #HTMLReporter.showDetails .detailsMenuItem { font-weight: bold; text-decoration: underline; } | ||
37 | #HTMLReporter.showDetails .summary { display: none; } | ||
38 | #HTMLReporter.showDetails #details { display: block; } | ||
39 | #HTMLReporter .summaryMenuItem { font-weight: bold; text-decoration: underline; } | ||
40 | #HTMLReporter .summary { margin-top: 14px; } | ||
41 | #HTMLReporter .summary .suite .suite, #HTMLReporter .summary .specSummary { margin-left: 14px; } | ||
42 | #HTMLReporter .summary .specSummary.passed a { color: #5e7d00; } | ||
43 | #HTMLReporter .summary .specSummary.failed a { color: #b03911; } | ||
44 | #HTMLReporter .description + .suite { margin-top: 0; } | ||
45 | #HTMLReporter .suite { margin-top: 14px; } | ||
46 | #HTMLReporter .suite a { color: #333333; } | ||
47 | #HTMLReporter #details .specDetail { margin-bottom: 28px; } | ||
48 | #HTMLReporter #details .specDetail .description { display: block; color: white; background-color: #b03911; } | ||
49 | #HTMLReporter .resultMessage { padding-top: 14px; color: #333333; } | ||
50 | #HTMLReporter .resultMessage span.result { display: block; } | ||
51 | #HTMLReporter .stackTrace { margin: 5px 0 0 0; max-height: 224px; overflow: auto; line-height: 18px; color: #666666; border: 1px solid #ddd; background: white; white-space: pre; } | ||
52 | |||
53 | #TrivialReporter { padding: 8px 13px; position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-y: scroll; background-color: white; font-family: "Helvetica Neue Light", "Lucida Grande", "Calibri", "Arial", sans-serif; /*.resultMessage {*/ /*white-space: pre;*/ /*}*/ } | ||
54 | #TrivialReporter a:visited, #TrivialReporter a { color: #303; } | ||
55 | #TrivialReporter a:hover, #TrivialReporter a:active { color: blue; } | ||
56 | #TrivialReporter .run_spec { float: right; padding-right: 5px; font-size: .8em; text-decoration: none; } | ||
57 | #TrivialReporter .banner { color: #303; background-color: #fef; padding: 5px; } | ||
58 | #TrivialReporter .logo { float: left; font-size: 1.1em; padding-left: 5px; } | ||
59 | #TrivialReporter .logo .version { font-size: .6em; padding-left: 1em; } | ||
60 | #TrivialReporter .runner.running { background-color: yellow; } | ||
61 | #TrivialReporter .options { text-align: right; font-size: .8em; } | ||
62 | #TrivialReporter .suite { border: 1px outset gray; margin: 5px 0; padding-left: 1em; } | ||
63 | #TrivialReporter .suite .suite { margin: 5px; } | ||
64 | #TrivialReporter .suite.passed { background-color: #dfd; } | ||
65 | #TrivialReporter .suite.failed { background-color: #fdd; } | ||
66 | #TrivialReporter .spec { margin: 5px; padding-left: 1em; clear: both; } | ||
67 | #TrivialReporter .spec.failed, #TrivialReporter .spec.passed, #TrivialReporter .spec.skipped { padding-bottom: 5px; border: 1px solid gray; } | ||
68 | #TrivialReporter .spec.failed { background-color: #fbb; border-color: red; } | ||
69 | #TrivialReporter .spec.passed { background-color: #bfb; border-color: green; } | ||
70 | #TrivialReporter .spec.skipped { background-color: #bbb; } | ||
71 | #TrivialReporter .messages { border-left: 1px dashed gray; padding-left: 1em; padding-right: 1em; } | ||
72 | #TrivialReporter .passed { background-color: #cfc; display: none; } | ||
73 | #TrivialReporter .failed { background-color: #fbb; } | ||
74 | #TrivialReporter .skipped { color: #777; background-color: #eee; display: none; } | ||
75 | #TrivialReporter .resultMessage span.result { display: block; line-height: 2em; color: black; } | ||
76 | #TrivialReporter .resultMessage .mismatch { color: black; } | ||
77 | #TrivialReporter .stackTrace { white-space: pre; font-size: .8em; margin-left: 10px; max-height: 5em; overflow: auto; border: 1px inset red; padding: 1em; background: #eef; } | ||
78 | #TrivialReporter .finished-at { padding-left: 1em; font-size: .6em; } | ||
79 | #TrivialReporter.show-passed .passed, #TrivialReporter.show-skipped .skipped { display: block; } | ||
80 | #TrivialReporter #jasmine_content { position: fixed; right: 100%; } | ||
81 | #TrivialReporter .runner { border: 1px solid gray; display: block; margin: 5px 0; padding: 2px 0 2px 10px; } |
spec/lib/jasmine.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
-
Please register or sign in to post a comment