From 8b79a56135efb1a4917e06e504b8ae1bc24722c9 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Fri, 29 May 2015 11:04:27 -0700 Subject: [PATCH] improvements to early html challenges --- seed_data/challenges/basic-html5-and-css.json | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index db2b54ac5c..9549a6f4a8 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -16,7 +16,7 @@ "To enable the \"Go to my next challenge\" button on this exercise, change your h1 tag's text to say \"Hello World\" instead of \"Hello\"." ], "tests": [ - "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')" + "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')" ], "challengeSeed": [ "

Hello

" @@ -45,9 +45,9 @@ ], "tests": [ "assert(($('h2').length > 0), 'Create an h2 element.')", - "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.');", - "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')", - "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')" + "assert(new RegExp('', 'gi').test(editor), 'Be sure to complete your h2 element with a closing tag.')", + "assert.isTrue((/cat(\\s)?photo(\\s)?app/gi).test($('h2').text()), 'Your h2 element should have the text \"CatPhotoApp\"')", + "assert.isTrue((/hello(\\s)+world/gi).test($('h1').text()), 'Your h1 element should have the text \"Hello World\"')" ], "challengeSeed": [ "

Hello World

" @@ -74,9 +74,9 @@ "You can create a paragraph element like so: <p>I'm a p tag!</p>" ], "tests": [ - "assert(($('p').length > 0), 'Create a paragraph element.')", - "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your paragraph element should have the text \"Hello Paragraph\"')", - "assert(new RegExp('

', 'gi').test(editor), 'Be sure to complete your paragraph element with a closing tag.');" + "assert(($('p').length > 0), 'Create a p element.')", + "assert.isTrue((/hello(\\s)+paragraph/gi).test($('p').text()), 'Your p element should have the text \"Hello Paragraph\"')", + "assert(new RegExp('

', 'gi').test(editor), 'Be sure to complete your p element with a closing tag.')" ], "challengeSeed": [ "

Hello World

", @@ -105,7 +105,7 @@ "You'll encounter other self-closing element tags soon." ], "tests": [ - "assert(($('br').length > 0), 'You should have a br element between your h2 and paragraph elements.')" + "assert(($('br').length > 0), 'Add a br element between your h2 and p elements.')" ], "challengeSeed": [ "

Hello World

", @@ -135,9 +135,10 @@ "You can start a comment with <!-- and end a comment with -->." ], "tests": [ - "assert($('h1').length > 0, 'The h1 element should not be commented. It should be visible in the browser.')", - "assert($('h2').length > 0, 'The h2 element should not be commented. It should be visible in the browser.')", - "assert($('p').length > 0, 'The paragraph element should not be commented. It should be visible in the browser.')" + "assert($('h1').length > 0, 'Your h1 element should not be commented. It should be visible in the browser.')", + "assert($('h2').length > 0, 'Your h2 element should not be commented. It should be visible in the browser.')", + "assert($('p').length > 0, 'Your p element should not be commented. It should be visible in the browser.')", + "assert(!new RegExp('-->', 'gi').test(editor), 'Be sure to delete the --> that ends the comment.')" ], "challengeSeed": [ "