Commit e1fb59e
committed
test(clone): stop asserting picture <source> resolution timing across engines
The regression test for #462 hardcoded the <img>'s resolved src, but
<picture> source-selection (read via currentSrc in freezeImgSrcset) runs
eagerly in WebKit and lazily in Chromium/Firefox, so the same assertion
saw two different valid values depending on engine. Assert the actual
invariant instead: no <source> survives, and the non-matching source
never leaks into the clone.1 parent 3d95744 commit e1fb59e
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
130 | 138 | | |
131 | 139 | | |
132 | 140 | | |
133 | 141 | | |
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
137 | | - | |
138 | | - | |
| 145 | + | |
| 146 | + | |
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
| |||
0 commit comments