From 86356659b34179f13dce43eebf7c65d9745c11da Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Tue, 30 Jun 2015 02:52:21 +0200 Subject: [PATCH 1/7] 'Font degrade'-test now check order of font-familiy. Fixes #1151 --- challenges/basic-html5-and-css.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/challenges/basic-html5-and-css.json b/challenges/basic-html5-and-css.json index 143e92cab5..9514c891ef 100644 --- a/challenges/basic-html5-and-css.json +++ b/challenges/basic-html5-and-css.json @@ -734,8 +734,8 @@ "Now try commenting out your call to Google Fonts, so that the \"Lobster\" font isn't available. Notice how it degrades to the \"Monospace\" font." ], "tests": [ - "assert($('h2').css('font-family').match(/lobster/i), 'Your h2 element should use the font \"Lobster\".')", - "assert($('h2').css('font-family').match(/monospace/i), 'Your h2 element should degrade to the font \"Monospace\" when \"Lobster\" is not available.')" + "assert($('h2').css('font-family').match(/^\"?lobster/i), 'Your h2 element should use the font \"Lobster\".')", + "assert($('h2').css('font-family').match(/lobster\"?,monospace/i), 'Your h2 element should degrade to the font \"Monospace\" when \"Lobster\" is not available.')" ], "challengeSeed": [ "", From 1a8087066502c19420a97efeb05db77dff585d84 Mon Sep 17 00:00:00 2001 From: LumenTeun Date: Tue, 30 Jun 2015 03:17:12 +0200 Subject: [PATCH 2/7] Slightly clarifies 'Uncomment HTML'. Regarding #1158 --- challenges/basic-html5-and-css.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/challenges/basic-html5-and-css.json b/challenges/basic-html5-and-css.json index 143e92cab5..f60fee6ed3 100644 --- a/challenges/basic-html5-and-css.json +++ b/challenges/basic-html5-and-css.json @@ -195,7 +195,7 @@ "assert($('h1').length > 0, 'Make your h1 element visible on your page by uncommenting it.')", "assert($('h2').length > 0, 'Make your h2 element visible on your page by uncommenting it.')", "assert($('p').length > 0, 'Make your p element visible on your page by uncommenting it.')", - "assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete the --> that ends the comment.')" + "assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete all trailing comment tags, i.e. -->.')" ], "challengeSeed": [ "