Index: trunk/extensions/WebFonts/tests/qunit/ext.webfonts.tests.js |
— | — | @@ -4,6 +4,7 @@ |
5 | 5 | expect(1); |
6 | 6 | |
7 | 7 | ok( mw.webfonts, 'mw.webfonts is defined' ); |
| 8 | + |
8 | 9 | } ); |
9 | 10 | |
10 | 11 | test( '-- Web font application to body', function() { |
— | — | @@ -33,14 +34,14 @@ |
34 | 35 | assertTrue( $textareaElement !== [], 'The textarea test element is defined' ); |
35 | 36 | |
36 | 37 | ok( mw.webfonts.set( teluguFont ), 'Attempted to load a Telugu font for the whole page' ); |
37 | | - var fallbackFonts = 'Helvetica,Arial,sans-serif'; |
| 38 | + var fallbackFonts = 'Helvetica, Arial, sans-serif'; |
38 | 39 | deepEqual( oldConfig, mw.webfonts.oldconfig, 'Previous body css was saved properly' ); |
39 | 40 | |
40 | 41 | // Font application |
41 | | - equal( $body.css( 'font-family' ), '"' + teluguFont + '",' + fallbackFonts, 'The web font was applied to font-family of body' ); |
42 | | - equal( $inputElement.css( 'font-family' ), '"' + teluguFont + '",' + fallbackFonts, 'The web font was applied to font-family of input' ); |
43 | | - equal( $selectElement.css( 'font-family' ), '"' + teluguFont + '",' + fallbackFonts, 'The web font was applied to font-family of select' ); |
44 | | - equal( $textareaElement.css( 'font-family' ), '"' + teluguFont + '",' + fallbackFonts, 'The web font was applied to font-family of textarea' ); |
| 42 | + equal( $body.css( 'font-family' ), "'" + teluguFont + "', " + fallbackFonts, 'The web font was applied to font-family of body' ); |
| 43 | + equal( $inputElement.css( 'font-family' ), "'" + teluguFont + "', " + fallbackFonts, 'The web font was applied to font-family of input' ); |
| 44 | + equal( $selectElement.css( 'font-family' ), "'" + teluguFont + "', " + fallbackFonts, 'The web font was applied to font-family of select' ); |
| 45 | + equal( $textareaElement.css( 'font-family' ), "'" '"' + teluguFont + "', " + fallbackFonts, 'The web font was applied to font-family of textarea' ); |
45 | 46 | |
46 | 47 | // Restore <body> |
47 | 48 | $body.attr( 'lang', bodyLang ); |