Skip to content
Browse files

Restrict this test to IE8 and below until we expose respond.ajax when…

… MQ are supported.
  • Loading branch information...
1 parent 0c91173 commit b5035a8e93a97a7d12e5454aa42c607403b8d905 @zachleat zachleat committed
Showing with 11 additions and 8 deletions.
  1. +11 −8 test/unit/tests.js
View
19 test/unit/tests.js
@@ -154,15 +154,18 @@ window.onload = function(){
}, 900);
});
- asyncTest( 'Test keyframe animation inside of media query', function() {
- queueRequest( function() {
- respond.ajax( getNormalizedUrl( 'test-with-keyframe.css' ),
- function( data ) {
- ok( data.replace( respond.regex.keyframes ).match( respond.regex.media ), 'A keyframe animation doesn\'t bust the media regex.' );
- start();
- });
+ // This test will only run on IE8 since the respond ajax stuff isn’t exposed yet
+ if( ie <= 8 ) {
+ asyncTest( 'Test keyframe animation inside of media query', function() {
+ queueRequest( function() {
+ respond.ajax( getNormalizedUrl( 'test-with-keyframe.css' ),
+ function( data ) {
+ ok( data.replace( respond.regex.keyframes ).match( /@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi ), 'A keyframe animation doesn\'t bust the media regex.' );
+ start();
+ });
+ });
});
- });
+ }
}
};

0 comments on commit b5035a8

Please sign in to comment.
Something went wrong with that request. Please try again.