/
githubmirror
/
webpack
Обзор
Документация
Войти
/
githubmirror
/
webpack
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
test/configCases/html/iframe-srcdoc/__snapshots__/ConfigCacheTest.snap
24 строки
2 KB
Sebastian Beltran
feat(html): implement asset URL rewriting for <iframe srcdoc> in HTML (#21226)
23 июн 2026, 23:33
Не верифицирован
23 июн 2026, 23:33
164a6ff
Код
Авторство
О чём код?
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing exports[`ConfigCacheTestCases html iframe-srcdoc exported tests should rewrite asset URLs inside <iframe srcdoc> 1`] = ` "<!DOCTYPE html> <html> <head><title>iframe srcdoc</title></head> <body> <iframe srcdoc=\\"<img src="handled-pixel.png" alt="a'b&c">\\"></iframe> <iframe srcdoc=\\"<p>hello <b>world</b></p>\\"></iframe> <iframe srcdoc=\\"<article><h1>Heading</h1><p>Formatting only, no assets & nothing to rewrite.</p></article>\\"></iframe> <iframe srcdoc=\\"<img src="handled-pixel.png"><img src="handled-other.png">\\"></iframe> <iframe srcdoc=\\"<img src="handled-pixel.png">\\"></iframe> <iframe srcdoc=\\"<div style="background: url(handled-pixel.png)">styled</div>\\"></iframe> <iframe srcdoc='<img src="handled-pixel.png">'></iframe> <iframe srcdoc=\\"<link rel="icon" href="handled-pixel.png">\\"></iframe> <iframe srcdoc=\\"<img src="handled-pixel.png"><img src="data:,"><img src="data:,">\\"></iframe> <iframe srcdoc=\\"<iframe srcdoc="<img src=&quot;handled-pixel.png&quot;>">\\"></iframe> <iframe srcdoc=\\"<!DOCTYPE html><html><head><link rel="icon" href="handled-pixel.png"></head><body><img src="handled-other.png"></body></html>\\"></iframe> <iframe srcdoc=\\"<!-- lead --> <!DOCTYPE html> <!-- mid --> <html><body><img src="handled-pixel.png"></body></html> <!-- trail -->\\"></iframe> <iframe srcdoc=\\"no assets here\\"></iframe> </body> </html> " `;