File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
test/integration/image-component/default Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -5,13 +5,7 @@ const Page = () => {
5
5
return (
6
6
< div >
7
7
< p > Hello World</ p >
8
- < Image id = "basic-image" src = "/test.jpg" width = { 400 } height = { 400 } > </ Image >
9
- < Image
10
- id = "width-height-string"
11
- src = "/test.jpg"
12
- width = "400"
13
- height = "400"
14
- > </ Image >
8
+ < Image id = "basic-image" src = "/test.jpg" width = "400" height = "400" > </ Image >
15
9
< Image id = "unsized-image" src = "/test.png" unsized > </ Image >
16
10
< p id = "stubtext" > This is the index page</ p >
17
11
</ div >
Original file line number Diff line number Diff line change @@ -36,17 +36,6 @@ function runTests() {
36
36
return 'result-correct'
37
37
} , / r e s u l t - c o r r e c t / )
38
38
39
- await check ( async ( ) => {
40
- const result = await browser . eval (
41
- `document.getElementById('width-height-string').naturalWidth`
42
- )
43
- if ( result === 0 ) {
44
- throw new Error ( 'Incorrectly loaded image' )
45
- }
46
-
47
- return 'result-correct'
48
- } , / r e s u l t - c o r r e c t / )
49
-
50
39
await check ( async ( ) => {
51
40
const result = await browser . eval (
52
41
`document.getElementById('unsized-image').naturalWidth`
You can’t perform that action at this time.
0 commit comments