fix: tests for use a retina image challenge (#39133)
This commit is contained in:
committed by
GitHub
parent
c6c1a22487
commit
b73156373f
@ -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);
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user