Skip to content

Commit

Permalink
remove @font-face tests from test suite as it is no longer ASYNC and …
Browse files Browse the repository at this point in the history
…has reducd api footprint.
  • Loading branch information
paulirish committed Jan 17, 2011
1 parent dd24aec commit 3bed792
Showing 1 changed file with 1 addition and 25 deletions.
26 changes: 1 addition & 25 deletions test/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,31 +241,7 @@ test('Modernizr.audio and Modernizr.video',function(){
}


})

asyncTest('async @font-face test',4,function(){

// we do this to verify our callback indeed will run.
start();
ok(Modernizr._fontfaceready,'passing a method to Modernizr._fontfaceready')
stop();

Modernizr._fontfaceready(function(bool){

ok(bool === true || bool === false,'passed argument is a boolean');
equals(bool,Modernizr.fontface,'Modernizr prop matches passed arg');

var expectedclass = (Modernizr.fontface ? '' : 'no-') + 'fontface';

ok(document.documentElement.className.indexOf(' '+expectedclass) >= 0,
'correct class added to documentElement');


start();
});


})
});


test('Modernizr results match expected values',function(){
Expand Down

0 comments on commit 3bed792

Please sign in to comment.