/*global $:true, casper:true, document:true */
'use strict';

casper.test.comment('Face Value - Fonts')

casper.start('http://localhost:3001/', function () {
  casper.test.info('Testing for Bitter fonts')
})

casper.waitForResource('Bitter-Regular-webfont.ttf', function() {
  this.test.assertResourceExists('Bitter-Regular-webfont.ttf',
                                 'Bitter font loaded properly')
})

casper.waitForResource('Bitter-Bold-webfont.ttf', function() {
  this.test.assertResourceExists('Bitter-Bold-webfont.ttf',
                                 'Bitter Bold font loaded properly')
})

casper.run(function () {
  this.test.done()
})

@@ -197,16 +197,157 @@
  fonts')
+%0A%0A  this.test.assertEval(function() %7B%0A    return $('body').css('font-family').match(/%5EBitter/g) !== null%0A  %7D, '%3Cbody%3E font should be Bitter')
 %0A%7D)%0A%0Acas

Test for bitter font in styles