Created distinction between last two tests and tweaked assertion test

pull/18182/head
boyinstruggle 2017-02-27 21:37:30 +08:00
parent 31cb7279a4
commit 3f9b0e38f6
1 changed files with 1 additions and 1 deletions

View File

@ -2967,7 +2967,7 @@
"assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your <code>h1</code> element should have the class <code>pink-text</code>.');",
"assert($(\"h1\").hasClass(\"blue-text\"), 'message: Your <code>h1</code> element should have the class <code>blue-text</code>.');",
"assert($(\"h1\").attr(\"id\") === \"orange-text\", 'message: Your <code>h1</code> element should have the id of <code>orange-text</code>.');",
"assert(code.match(/<h1[\\s\\S]*\\s+style\\s*=\\s*(?:\\'|\")\\s*(?:[\\s\\S]*;+)*\\s*color\\s*:\\s*white\\s*(?:;+[\\s\\S]*;*)*(?:\\'|\")+/gi), 'message: Give your <code>h1</code> element the inline style of <code>color&#58; white</code>.');",
"assert(document.querySelector('h1[style]'), 'message: Give your <code>h1</code> element an inline style.');",
"assert($(\"h1\").css(\"color\") === \"rgb(255, 255, 255)\", 'message: Your <code>h1</code> element should be white.');"
],
"type": "waypoint",