3. Simple Article , Exercises: HTML Structure
The 'Simple Article' is not so simple!
http://pastebin.com/BNiaX5XN - html
http://pastebin.com/Ppst5Jwj - css
3 грешки ми дава:
1). expect($("body > article").css('background')).to.equal('rgb(250, 250, 250)', "Incorrect background color for article");
expect($("body > article").css('width')).to.equal('600px', "Incorrect article width");
2).expect($("body > article > img").css('border-width')).to.equal('5px', "Incorrect border-width");
expect($("body > article > img").css('border-style')).to.equal('dotted', "Incorrect border-style");
3).expect($("body > article p").css('font-size')).to.equal('14px', "Incorrect font-size in Paragraph");
expect($("body > article p").css('text-align')).to.equal('justify', "Incorrect text-align property");
Благодаря предварително!
Това е решението, да ;)