1
- // TODO: run these tests for all breakpoints
2
-
3
- describe ( 'matchHeight browser tests' , function ( ) {
4
- it ( 'passes all specs in matchHeight.spec.js' , function ( done ) {
1
+ describe ( 'matchHeight webdriver' , function ( ) {
2
+ var runAllTests = function ( done , width , height ) {
5
3
browser
4
+ . setViewportSize ( { width : width , height : height } )
6
5
. url ( 'http://localhost:8000/test/page/test.html' )
7
6
. waitForExist ( '.jasmine_html-reporter' , 5000 )
8
7
. execute ( function ( ) {
@@ -16,5 +15,17 @@ describe('matchHeight browser tests', function() {
16
15
expect ( ret . value . passed ) . toBe ( ret . value . total , 'number of specs passed' ) ;
17
16
expect ( ret . value . failed ) . toBe ( 0 , 'number of specs failed' ) ;
18
17
} ) . call ( done ) ;
18
+ } ;
19
+
20
+ it ( 'passes matchHeight.spec.js at desktop breakpoint' , function ( done ) {
21
+ runAllTests ( done , 1280 , 1024 ) ;
22
+ } ) ;
23
+
24
+ it ( 'passes matchHeight.spec.js at tablet breakpoint' , function ( done ) {
25
+ runAllTests ( done , 640 , 480 ) ;
26
+ } ) ;
27
+
28
+ it ( 'passes matchHeight.spec.js at mobile breakpoint' , function ( done ) {
29
+ runAllTests ( done , 320 , 640 ) ;
19
30
} ) ;
20
31
} ) ;
0 commit comments