File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,8 @@ it("should resolve an inlined chunk through the chunk hash when no content hash
66 . readFileSync ( path . resolve ( __dirname , "main.html" ) )
77 . toString ( "utf-8" ) ;
88 // Every sentinel resolved: none is left in the emitted page.
9- expect ( html ) . not . toMatch ( / _ _ W E B P A C K _ H T M L _ I N L I N E _ _ / ) ;
10- expect ( html ) . toMatch ( / < s t y l e > [ \s \S ] * c o l o r : ? r e d / ) ;
11- expect ( html ) . toMatch ( / < s c r i p t > / ) ;
9+ expect ( html ) . not . toContain ( "__WEBPACK_HTML_INLINE__" ) ;
10+ expect ( html ) . toContain ( "<style>" ) ;
11+ expect ( html ) . toContain ( "body { color: red; }" ) ;
12+ expect ( html ) . toContain ( "<script>" ) ;
1213} ) ;
Original file line number Diff line number Diff line change 33exports [` ConfigCacheTestCases html parser-foster-parenting parser-foster-parenting should compile 1` ] = `
44"<!doctype html><html ><body >
55 <b >before</b ><b >after</b >tail<table ><tr ><td >cell</table >
6- <b >< p >block< /b >text <table ></table >
6+ one <b >two< /b >three <table >< tr >< td >x </table >
77
88
99</body ></html >"
Original file line number Diff line number Diff line change 33exports [` ConfigTestCases html parser-foster-parenting parser-foster-parenting should compile 1` ] = `
44"<!doctype html><html ><body >
55 <b >before</b ><b >after</b >tail<table ><tr ><td >cell</table >
6- <b >< p >block< /b >text <table ></table >
6+ one <b >two< /b >three <table >< tr >< td >x </table >
77
88
99</body ></html >"
Original file line number Diff line number Diff line change 22< html >
33< body >
44 < table > < b > before< tr > < td > cell</ td > </ tr > after</ b > tail</ table >
5- < table > < b > < p > block </ p > </ b > text </ table >
5+ < table > one < b > two </ b > three < tr > < td > x </ td > </ tr > </ table >
66</ body >
77</ html >
You can’t perform that action at this time.
0 commit comments