Index: trunk/extensions/WebFonts/tests/qunit/ext.webfonts.tests.js |
— | — | @@ -3,9 +3,10 @@ |
4 | 4 | test( '-- Initial check', function() { |
5 | 5 | expect(1); |
6 | 6 | |
7 | | - |
8 | 7 | if ( !mw.webfonts.isBrowserSupported ) { |
9 | | - ok( mw.webfonts === undefined, 'mw.webfonts is not defined because we are running in a blacklisted browser' ); |
| 8 | + // TODO: need a better way to test this |
| 9 | + ok( mw.webfonts, 'The WebFonts extension is not supposed to run in a blacklisted browser - ' |
| 10 | + + navigator.appName + ' ' + navigator.userAgent ); |
10 | 11 | } else { |
11 | 12 | ok( mw.webfonts, 'mw.webfonts is defined and the browser is supported' ); |
12 | 13 | } |