@@ -5320,9 +5320,7 @@ describe("SourceProcessor — renderEmbeddedSource", () => {
53205320 it ( "offers every language `EMBEDDED_LANGUAGES` names, and prints each answer" , ( ) => {
53215321 const { EMBEDDED_LANGUAGES } = require ( "../lib/html/syntax" ) ;
53225322
5323- // One document reaching every offer site: an inline `<style>`, a `<script>`,
5324- // a JSON `<script>`, a `style` attribute, an `<svg>` subtree and the
5325- // document an `<iframe srcdoc>` holds.
5323+ // One document reaching every offer site, an `<iframe srcdoc>` among them.
53265324 const html =
53275325 "<style> .a { color : red } </style>" +
53285326 "<script> var a = 1 </script>" +
@@ -5331,16 +5329,13 @@ describe("SourceProcessor — renderEmbeddedSource", () => {
53315329 '<svg viewBox="0 0 2 2"> <rect/> </svg>' +
53325330 '<iframe srcdoc="<p> inner </p>"></iframe>' ;
53335331
5334- // The list is what a caller reads to say up front which languages it
5335- // handles, so every entry needs a live offer site behind it, and nothing
5336- // may arrive that the list does not name. Asserted over the whole set
5337- // rather than per site: either half drifting is what this catches.
5332+ // Every entry needs a live offer site behind it, and nothing may arrive
5333+ // that the list does not name.
53385334 expect ( [ ...new Set ( offered ( html ) . map ( ( [ type ] ) => type ) ) ] . sort ( ) ) . toEqual (
53395335 [ ...EMBEDDED_LANGUAGES ] . sort ( )
53405336 ) ;
53415337
5342- // And what the renderer answered is what the serialization carries — being
5343- // offered a body is only half of minifying it.
5338+ // Being offered a body is only half of minifying it.
53445339 expect ( minify ( html , ( source , { type } ) => `/*${ type } */` ) ) . toBe (
53455340 "<style>/*css*/</style>" +
53465341 "<script>/*javascript*/</script>" +
0 commit comments