From 15e7ae23186f4cc953a5b8efeb865a751021f087 Mon Sep 17 00:00:00 2001 From: Marcin Warpechowski Date: Tue, 12 Mar 2013 03:09:29 +0100 Subject: [PATCH] fix missing tests for Travis CI/PhantomJS by specifying a min-width for the page --- Gruntfile.js | 1 + test/jasmine/SpecRunner.html | 5 +++-- test/jasmine/css/SpecRunner.css | 8 ++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 test/jasmine/css/SpecRunner.css diff --git a/Gruntfile.js b/Gruntfile.js index fb823ac2364..a2db5763408 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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' ] diff --git a/test/jasmine/SpecRunner.html b/test/jasmine/SpecRunner.html index c8b8745874c..e6622168aaf 100644 --- a/test/jasmine/SpecRunner.html +++ b/test/jasmine/SpecRunner.html @@ -10,7 +10,7 @@ - + @@ -20,7 +20,8 @@ - + + diff --git a/test/jasmine/css/SpecRunner.css b/test/jasmine/css/SpecRunner.css new file mode 100644 index 00000000000..bc9b8eb0f7a --- /dev/null +++ b/test/jasmine/css/SpecRunner.css @@ -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; +} \ No newline at end of file