From 08fa91c6ed37f5b28b38ae73d9fbddc7913f3cf6 Mon Sep 17 00:00:00 2001 From: Quincy Larson Date: Mon, 1 Jun 2015 15:07:03 -0700 Subject: [PATCH] normalize all instructions in html5-and-css challenges --- seed_data/challenges/basic-html5-and-css.json | 212 +++++++++--------- 1 file changed, 108 insertions(+), 104 deletions(-) diff --git a/seed_data/challenges/basic-html5-and-css.json b/seed_data/challenges/basic-html5-and-css.json index 1f22850de3..088f671027 100644 --- a/seed_data/challenges/basic-html5-and-css.json +++ b/seed_data/challenges/basic-html5-and-css.json @@ -53,7 +53,7 @@ ], "tests": [ "assert(($('h2').length > 0), 'Create an h2 element.')", - "assert(editor.match(/<\\/h2>/g) && editor.match(/<\\/h2>/g).length === editor.match(/

/g).length, 'Make sureyour h2 element has a closing tag.')", + "assert(editor.match(/<\\/h2>/g) && editor.match(/<\\/h2>/g).length === editor.match(/

/g).length, 'Make sure your h2 element has 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\"')" ], @@ -84,12 +84,12 @@ "description": [ "Create a p element below your h2 element, and give it the text \"Hello Paragraph\".", "p elements are the preferred element for normal-sized paragraph text on websites. P is short for \"paragraph\".", - "You can create a p element like so: <p>I'm a p tag!</p>" + "You can create a p element like so: <p>I'm a p tag!</p>." ], "tests": [ "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(editor.match(/<\\/p>/g) && editor.match(/<\\/p>/g).length === editor.match(/

/g).length, 'Make sureyour p element has a closing tag.')" + "assert(editor.match(/<\\/p>/g) && editor.match(/<\\/p>/g).length === editor.match(/

/g).length, 'Make sure your p element has a closing tag.')" ], "challengeSeed": [ "

Hello World

", @@ -106,7 +106,7 @@ "descriptionEs": [ "Crea un elemento párrafo debajo de tu elemento h2, y dale el texto \"Hello Paragraph\". Apenas escribas la etiqueta de apertura <p>, una de nuestras pruebas pasarán (ya que ésta es HTML válido). Asegúrate de cerrar el elemento agregando la etiqueta de cierre </p>.", "Los elementos párrafo son los principales elementos para los párrafos de texto en tamaño normal en sitios web.", - "Tú puedes crear un elemento párrafo como éste: <p>I'm a p tag!</p>" + "Tú puedes crear un elemento párrafo como éste: <p>I'm a p tag!</p>." ], "namePt": "", "descriptionPt": [] @@ -202,7 +202,8 @@ "tests": [ "assert(($('h1').length === 0), 'Comment out your h1 element so that it is not visible on your page.')", "assert(($('h2').length > 0), 'Leave your h2 element uncommented so that is not visible on your page.')", - "assert(($('p').length === 0), 'Comment out your p element so that it is not visible on your page.')" + "assert(($('p').length === 0), 'Comment out your p element so that it is not visible on your page.')", + "assert(editor.match(/-->/g).length > 0, 'Be sure to close each of your comments with -->.')" ], "challengeSeed": [ "