Merge pull request #15061 from texas2010/fix/move-example-out-of-test

move example out of test
pull/15128/head
Eric Leung 2017-05-29 18:55:25 -07:00 committed by GitHub
commit 802f9b2ddb
1 changed files with 3 additions and 1 deletions

View File

@ -3461,6 +3461,8 @@
"<code>rgb(255, 255, 255)</code>",
"Instead of using six hexadecimal digits like you do with hex code, with <code>RGB</code> you specify the brightness of each color with a number between 0 and 255.",
"If you do the math, the two digits for one color equal 16 times 16, which gives us 256 total values. So <code>RGB</code>, which starts counting from zero, has the exact same number of possible values as hex code.",
"Here's an example of how you'd change the body background to orange using its RGB code.",
"<blockquote>body {<br> background-color: rgb(255, 165, 0);<br>}</blockquote>",
"<hr>",
"Let's replace the hex code in our <code>body</code> element's background color with the RGB value for black: <code>rgb(0, 0, 0)</code>"
],
@ -3473,7 +3475,7 @@
],
"tests": [
"assert($(\"body\").css(\"background-color\") === \"rgb(0, 0, 0)\", 'message: Your <code>body</code> element should have a black background.');",
"assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use <code>rgb</code> to give your <code>body</code> element a color of black. For example <code>body { background-color&#58; rgb&#40;255&#44; 165&#44; 0&#41;; }</code>');"
"assert(code.match(/rgb\\s*\\(\\s*0\\s*,\\s*0\\s*,\\s*0\\s*\\)/ig), 'message: Use <code>rgb</code> to give your <code>body</code> element a color of black.');"
],
"type": "waypoint",
"challengeType": 0,