fix: tests for use a retina image challenge (#39133)

This commit is contained in:
Kristofer Koishigawa
2020-08-30 12:09:43 +09:00
committed by GitHub
parent c6c1a22487
commit b73156373f

View File

@ -34,9 +34,9 @@ Set the <code>width</code> and <code>height</code> of the <code>img</code> tag t
```yml ```yml
tests: tests:
- text: Your <code>img</code> tag should have a <code>width</code> of 100 pixels. - text: Your <code>img</code> tag should have a <code>width</code> of 100 pixels.
testString: assert($('img').css('width') == '100px'); testString: assert(document.querySelector('img').width === 100);
- text: Your <code>img</code> tag should have a <code>height</code> of 100 pixels. - text: Your <code>img</code> tag should have a <code>height</code> of 100 pixels.
testString: assert($('img').css('height') == '100px'); testString: assert(document.querySelector('img').height === 100);
``` ```