Skip to content

Commit

Permalink
fix missing tests for Travis CI/PhantomJS by specifying a min-width f…
Browse files Browse the repository at this point in the history
…or the page
  • Loading branch information
warpech committed Mar 12, 2013
1 parent fe23bed commit 15e7ae2
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ module.exports = function (grunt) {
'test/jasmine/spec/*/*Spec.js'
],
styles: [
'test/jasmine/css/SpecRunner.css',
'jquery.handsontable.css',
'lib/jQuery-contextMenu/jquery.contextMenu.css'
]
Expand Down
5 changes: 3 additions & 2 deletions test/jasmine/SpecRunner.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<script type="text/javascript" src="lib/jasmine/jasmine-html.js"></script>
<script type="text/javascript" src="lib/jasmine-jquery.js"></script>

<!-- include spec files here... -->
<!-- include source files here... -->
<script type="text/javascript" src="../../lib/jquery.min.js"></script>
<script type="text/javascript" src="../../jquery.handsontable.js"></script>
<script type="text/javascript" src="../../lib/bootstrap-typeahead.js"></script>
Expand All @@ -20,7 +20,8 @@
<link rel="stylesheet" media="screen" href="../../lib/jQuery-contextMenu/jquery.contextMenu.css">
<link rel="stylesheet" media="screen" href="../../jquery.handsontable.css">

<!-- include source files here... -->
<!-- include spec files here... -->
<link rel="stylesheet" media="screen" href="css/SpecRunner.css">
<script type="text/javascript" src="spec/SpecHelper.js"></script>
<script type="text/javascript" src="spec/Core_initSpec.js"></script>
<script type="text/javascript" src="spec/Core_destroySpec.js"></script>
Expand Down
8 changes: 8 additions & 0 deletions test/jasmine/css/SpecRunner.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* Currently, the test suite is designed to be run with the minimum screen width of 600px
* This stylesheet makes sure that this condition is met when using PhantomJS
*/

html {
min-width: 600px;
}

0 comments on commit 15e7ae2

Please sign in to comment.