Adds test for class selector in Prioritize One Style Over Another

pull/18182/head
Alister N. Mada 2016-01-26 04:52:21 +07:00
parent e108861efa
commit 29d5b41b7e
1 changed files with 1 additions and 0 deletions

View File

@ -3079,6 +3079,7 @@
], ],
"tests": [ "tests": [
"assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your <code>h1</code> element should have the class <code>pink-text</code>.');", "assert($(\"h1\").hasClass(\"pink-text\"), 'message: Your <code>h1</code> element should have the class <code>pink-text</code>.');",
"assert(code.match(/\\.pink-text\\s*\\{\\s*color\\s*:\\s*pink\\s*;\\s*\\}/g), 'message: Your <code>&#60;style&#62;</code> should have a <code>pink-text</code> CSS class with its color set to pink.');",
"assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'message: Your <code>h1</code> element should be pink.');" "assert($(\"h1\").css(\"color\") === \"rgb(255, 192, 203)\", 'message: Your <code>h1</code> element should be pink.');"
], ],
"type": "waypoint", "type": "waypoint",