Truly independent web browser
Tests/LibWeb: Shrink four slow layout tree update tests
Andreas Klinge632c0de5d96
diff --git a/Tests/LibWeb/Text/expected/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.txt b/Tests/LibWeb/Text/expected/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.txtindex 313cfdaf7ed..5ea7883cb57 100644--- a/Tests/LibWeb/Text/expected/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.txt+++ b/Tests/LibWeb/Text/expected/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.txt@@ -1,393 +1,107 @@check 0: PASS (bfl inline host between inline siblings; innerHTML cleared: before)check 1: PASS (bfl inline host between inline siblings; innerHTML cleared: after mutation)-check 2: PASS (bfl inline host between inline siblings; innerHTML set: before)-check 3: PASS (bfl inline host between inline siblings; innerHTML set: after mutation)-check 4: PASS (bfl inline host between inline siblings; textContent set: before)-check 5: PASS (bfl inline host between inline siblings; textContent set: after mutation)-check 6: PASS (bfl inline host between inline siblings; shadow root attached: before)-check 7: PASS (bfl inline host between inline siblings; shadow root attached: after mutation)-check 8: PASS (bfl inline host between inline siblings; inline child appended: before)-check 9: PASS (bfl inline host between inline siblings; inline child appended: after mutation)-check 10: PASS (bfl inline host between inline siblings; first child removed: before)-check 11: PASS (bfl inline host between inline siblings; first child removed: after mutation)check 12: PASS (bfl nested inline host; innerHTML cleared: before)check 13: PASS (bfl nested inline host; innerHTML cleared: after mutation)check 14: PASS (bfl nested inline host after a block sibling; innerHTML cleared: before)check 15: PASS (bfl nested inline host after a block sibling; innerHTML cleared: after mutation)-check 16: PASS (bfl nested inline host in a flex container; innerHTML cleared: before)-check 17: PASS (bfl nested inline host in a flex container; innerHTML cleared: after mutation)-check 18: PASS (bfl inline ancestor of a nested inline host; innerHTML set: before)-check 19: PASS (bfl inline ancestor of a nested inline host; innerHTML set: after mutation)-check 20: PASS (bfl display: contents element inside a rebuilt inline; inline child appended: before)-check 21: PASS (bfl display: contents element inside a rebuilt inline; inline child appended: after mutation)check 22: PASS (bfl added to a nested inline: before)check 23: PASS (bfl added to a nested inline: after mutation)-check 24: PASS (bfl removed from a nested inline: before)-check 25: PASS (bfl removed from a nested inline: after mutation)-check 26: PASS (bfl added to an inline between inline siblings: before)-check 27: PASS (bfl added to an inline between inline siblings: after mutation)-check 28: PASS (bfl removed from an inline between inline siblings: before)-check 29: PASS (bfl removed from an inline between inline siblings: after mutation)-check 30: PASS (afl inline host between inline siblings; innerHTML cleared: before)-check 31: PASS (afl inline host between inline siblings; innerHTML cleared: after mutation)check 32: PASS (afl inline host between inline siblings; innerHTML set: before)check 33: PASS (afl inline host between inline siblings; innerHTML set: after mutation)-check 34: PASS (afl inline host between inline siblings; textContent set: before)-check 35: PASS (afl inline host between inline siblings; textContent set: after mutation)-check 36: PASS (afl inline host between inline siblings; shadow root attached: before)-check 37: PASS (afl inline host between inline siblings; shadow root attached: after mutation)-check 38: PASS (afl inline host between inline siblings; inline child appended: before)-check 39: PASS (afl inline host between inline siblings; inline child appended: after mutation)-check 40: PASS (afl inline host between inline siblings; first child removed: before)-check 41: PASS (afl inline host between inline siblings; first child removed: after mutation)-check 42: PASS (afl nested inline host; innerHTML cleared: before)-check 43: PASS (afl nested inline host; innerHTML cleared: after mutation)-check 44: PASS (afl nested inline host after a block sibling; innerHTML cleared: before)-check 45: PASS (afl nested inline host after a block sibling; innerHTML cleared: after mutation)check 46: PASS (afl nested inline host in a flex container; innerHTML cleared: before)check 47: PASS (afl nested inline host in a flex container; innerHTML cleared: after mutation)check 48: PASS (afl inline ancestor of a nested inline host; innerHTML set: before)check 49: PASS (afl inline ancestor of a nested inline host; innerHTML set: after mutation)-check 50: PASS (afl display: contents element inside a rebuilt inline; inline child appended: before)-check 51: PASS (afl display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 52: PASS (afl added to a nested inline: before)-check 53: PASS (afl added to a nested inline: after mutation)check 54: PASS (afl removed from a nested inline: before)check 55: PASS (afl removed from a nested inline: after mutation)-check 56: PASS (afl added to an inline between inline siblings: before)-check 57: PASS (afl added to an inline between inline siblings: after mutation)-check 58: PASS (afl removed from an inline between inline siblings: before)-check 59: PASS (afl removed from an inline between inline siblings: after mutation)-check 60: PASS (babs inline host between inline siblings; innerHTML cleared: before)-check 61: PASS (babs inline host between inline siblings; innerHTML cleared: after mutation)-check 62: PASS (babs inline host between inline siblings; innerHTML set: before)-check 63: PASS (babs inline host between inline siblings; innerHTML set: after mutation)check 64: PASS (babs inline host between inline siblings; textContent set: before)check 65: PASS (babs inline host between inline siblings; textContent set: after mutation)-check 66: PASS (babs inline host between inline siblings; shadow root attached: before)-check 67: PASS (babs inline host between inline siblings; shadow root attached: after mutation)-check 68: PASS (babs inline host between inline siblings; inline child appended: before)-check 69: PASS (babs inline host between inline siblings; inline child appended: after mutation)-check 70: PASS (babs inline host between inline siblings; first child removed: before)-check 71: PASS (babs inline host between inline siblings; first child removed: after mutation)check 72: PASS (babs nested inline host; innerHTML cleared: before)check 73: PASS (babs nested inline host; innerHTML cleared: after mutation)-check 74: PASS (babs nested inline host after a block sibling; innerHTML cleared: before)-check 75: PASS (babs nested inline host after a block sibling; innerHTML cleared: after mutation)-check 76: PASS (babs nested inline host in a flex container; innerHTML cleared: before)-check 77: PASS (babs nested inline host in a flex container; innerHTML cleared: after mutation)-check 78: PASS (babs inline ancestor of a nested inline host; innerHTML set: before)-check 79: PASS (babs inline ancestor of a nested inline host; innerHTML set: after mutation)check 80: PASS (babs display: contents element inside a rebuilt inline; inline child appended: before)check 81: PASS (babs display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 82: PASS (babs added to a nested inline: before)-check 83: PASS (babs added to a nested inline: after mutation)-check 84: PASS (babs removed from a nested inline: before)-check 85: PASS (babs removed from a nested inline: after mutation)check 86: PASS (babs added to an inline between inline siblings: before)check 87: PASS (babs added to an inline between inline siblings: after mutation)-check 88: PASS (babs removed from an inline between inline siblings: before)-check 89: PASS (babs removed from an inline between inline siblings: after mutation)-check 90: PASS (aabs inline host between inline siblings; innerHTML cleared: before)-check 91: PASS (aabs inline host between inline siblings; innerHTML cleared: after mutation)-check 92: PASS (aabs inline host between inline siblings; innerHTML set: before)-check 93: PASS (aabs inline host between inline siblings; innerHTML set: after mutation)-check 94: PASS (aabs inline host between inline siblings; textContent set: before)-check 95: PASS (aabs inline host between inline siblings; textContent set: after mutation)check 96: PASS (aabs inline host between inline siblings; shadow root attached: before)check 97: PASS (aabs inline host between inline siblings; shadow root attached: after mutation)-check 98: PASS (aabs inline host between inline siblings; inline child appended: before)-check 99: PASS (aabs inline host between inline siblings; inline child appended: after mutation)-check 100: PASS (aabs inline host between inline siblings; first child removed: before)-check 101: PASS (aabs inline host between inline siblings; first child removed: after mutation)-check 102: PASS (aabs nested inline host; innerHTML cleared: before)-check 103: PASS (aabs nested inline host; innerHTML cleared: after mutation)check 104: PASS (aabs nested inline host after a block sibling; innerHTML cleared: before)check 105: PASS (aabs nested inline host after a block sibling; innerHTML cleared: after mutation)check 106: PASS (aabs nested inline host in a flex container; innerHTML cleared: before)check 107: PASS (aabs nested inline host in a flex container; innerHTML cleared: after mutation)-check 108: PASS (aabs inline ancestor of a nested inline host; innerHTML set: before)-check 109: PASS (aabs inline ancestor of a nested inline host; innerHTML set: after mutation)-check 110: PASS (aabs display: contents element inside a rebuilt inline; inline child appended: before)-check 111: PASS (aabs display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 112: PASS (aabs added to a nested inline: before)-check 113: PASS (aabs added to a nested inline: after mutation)-check 114: PASS (aabs removed from a nested inline: before)-check 115: PASS (aabs removed from a nested inline: after mutation)-check 116: PASS (aabs added to an inline between inline siblings: before)-check 117: PASS (aabs added to an inline between inline siblings: after mutation)check 118: PASS (aabs removed from an inline between inline siblings: before)check 119: PASS (aabs removed from an inline between inline siblings: after mutation)-check 120: PASS (afix inline host between inline siblings; innerHTML cleared: before)-check 121: PASS (afix inline host between inline siblings; innerHTML cleared: after mutation)-check 122: PASS (afix inline host between inline siblings; innerHTML set: before)-check 123: PASS (afix inline host between inline siblings; innerHTML set: after mutation)-check 124: PASS (afix inline host between inline siblings; textContent set: before)-check 125: PASS (afix inline host between inline siblings; textContent set: after mutation)-check 126: PASS (afix inline host between inline siblings; shadow root attached: before)-check 127: PASS (afix inline host between inline siblings; shadow root attached: after mutation)check 128: PASS (afix inline host between inline siblings; inline child appended: before)check 129: PASS (afix inline host between inline siblings; inline child appended: after mutation)-check 130: PASS (afix inline host between inline siblings; first child removed: before)-check 131: PASS (afix inline host between inline siblings; first child removed: after mutation)-check 132: PASS (afix nested inline host; innerHTML cleared: before)-check 133: PASS (afix nested inline host; innerHTML cleared: after mutation)-check 134: PASS (afix nested inline host after a block sibling; innerHTML cleared: before)-check 135: PASS (afix nested inline host after a block sibling; innerHTML cleared: after mutation)-check 136: PASS (afix nested inline host in a flex container; innerHTML cleared: before)-check 137: PASS (afix nested inline host in a flex container; innerHTML cleared: after mutation)check 138: PASS (afix inline ancestor of a nested inline host; innerHTML set: before)check 139: PASS (afix inline ancestor of a nested inline host; innerHTML set: after mutation)check 140: PASS (afix display: contents element inside a rebuilt inline; inline child appended: before)check 141: PASS (afix display: contents element inside a rebuilt inline; inline child appended: after mutation)check 142: PASS (afix added to a nested inline: before)check 143: PASS (afix added to a nested inline: after mutation)-check 144: PASS (afix removed from a nested inline: before)-check 145: PASS (afix removed from a nested inline: after mutation)-check 146: PASS (afix added to an inline between inline siblings: before)-check 147: PASS (afix added to an inline between inline siblings: after mutation)-check 148: PASS (afix removed from an inline between inline siblings: before)-check 149: PASS (afix removed from an inline between inline siblings: after mutation)-check 150: PASS (bblock inline host between inline siblings; innerHTML cleared: before)-check 151: PASS (bblock inline host between inline siblings; innerHTML cleared: after mutation)-check 152: PASS (bblock inline host between inline siblings; innerHTML set: before)-check 153: PASS (bblock inline host between inline siblings; innerHTML set: after mutation)-check 154: PASS (bblock inline host between inline siblings; textContent set: before)-check 155: PASS (bblock inline host between inline siblings; textContent set: after mutation)-check 156: PASS (bblock inline host between inline siblings; shadow root attached: before)-check 157: PASS (bblock inline host between inline siblings; shadow root attached: after mutation)-check 158: PASS (bblock inline host between inline siblings; inline child appended: before)-check 159: PASS (bblock inline host between inline siblings; inline child appended: after mutation)check 160: PASS (bblock inline host between inline siblings; first child removed: before)check 161: PASS (bblock inline host between inline siblings; first child removed: after mutation)check 162: PASS (bblock nested inline host; innerHTML cleared: before)check 163: PASS (bblock nested inline host; innerHTML cleared: after mutation)check 164: PASS (bblock nested inline host after a block sibling; innerHTML cleared: before)check 165: PASS (bblock nested inline host after a block sibling; innerHTML cleared: after mutation)-check 166: PASS (bblock nested inline host in a flex container; innerHTML cleared: before)-check 167: PASS (bblock nested inline host in a flex container; innerHTML cleared: after mutation)-check 168: PASS (bblock inline ancestor of a nested inline host; innerHTML set: before)-check 169: PASS (bblock inline ancestor of a nested inline host; innerHTML set: after mutation)-check 170: PASS (bblock display: contents element inside a rebuilt inline; inline child appended: before)-check 171: PASS (bblock display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 172: PASS (bblock added to a nested inline: before)-check 173: PASS (bblock added to a nested inline: after mutation)check 174: PASS (bblock removed from a nested inline: before)check 175: PASS (bblock removed from a nested inline: after mutation)-check 176: PASS (bblock added to an inline between inline siblings: before)-check 177: PASS (bblock added to an inline between inline siblings: after mutation)-check 178: PASS (bblock removed from an inline between inline siblings: before)-check 179: PASS (bblock removed from an inline between inline siblings: after mutation)check 180: PASS (ablock inline host between inline siblings; innerHTML cleared: before)check 181: PASS (ablock inline host between inline siblings; innerHTML cleared: after mutation)-check 182: PASS (ablock inline host between inline siblings; innerHTML set: before)-check 183: PASS (ablock inline host between inline siblings; innerHTML set: after mutation)-check 184: PASS (ablock inline host between inline siblings; textContent set: before)-check 185: PASS (ablock inline host between inline siblings; textContent set: after mutation)-check 186: PASS (ablock inline host between inline siblings; shadow root attached: before)-check 187: PASS (ablock inline host between inline siblings; shadow root attached: after mutation)-check 188: PASS (ablock inline host between inline siblings; inline child appended: before)-check 189: PASS (ablock inline host between inline siblings; inline child appended: after mutation)-check 190: PASS (ablock inline host between inline siblings; first child removed: before)-check 191: PASS (ablock inline host between inline siblings; first child removed: after mutation)-check 192: PASS (ablock nested inline host; innerHTML cleared: before)-check 193: PASS (ablock nested inline host; innerHTML cleared: after mutation)-check 194: PASS (ablock nested inline host after a block sibling; innerHTML cleared: before)-check 195: PASS (ablock nested inline host after a block sibling; innerHTML cleared: after mutation)check 196: PASS (ablock nested inline host in a flex container; innerHTML cleared: before)check 197: PASS (ablock nested inline host in a flex container; innerHTML cleared: after mutation)check 198: PASS (ablock inline ancestor of a nested inline host; innerHTML set: before)check 199: PASS (ablock inline ancestor of a nested inline host; innerHTML set: after mutation)-check 200: PASS (ablock display: contents element inside a rebuilt inline; inline child appended: before)-check 201: PASS (ablock display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 202: PASS (ablock added to a nested inline: before)-check 203: PASS (ablock added to a nested inline: after mutation)-check 204: PASS (ablock removed from a nested inline: before)-check 205: PASS (ablock removed from a nested inline: after mutation)check 206: PASS (ablock added to an inline between inline siblings: before)check 207: PASS (ablock added to an inline between inline siblings: after mutation)-check 208: PASS (ablock removed from an inline between inline siblings: before)-check 209: PASS (ablock removed from an inline between inline siblings: after mutation)-check 210: PASS (bli inline host between inline siblings; innerHTML cleared: before)-check 211: PASS (bli inline host between inline siblings; innerHTML cleared: after mutation)check 212: PASS (bli inline host between inline siblings; innerHTML set: before)check 213: PASS (bli inline host between inline siblings; innerHTML set: after mutation)-check 214: PASS (bli inline host between inline siblings; textContent set: before)-check 215: PASS (bli inline host between inline siblings; textContent set: after mutation)-check 216: PASS (bli inline host between inline siblings; shadow root attached: before)-check 217: PASS (bli inline host between inline siblings; shadow root attached: after mutation)-check 218: PASS (bli inline host between inline siblings; inline child appended: before)-check 219: PASS (bli inline host between inline siblings; inline child appended: after mutation)-check 220: PASS (bli inline host between inline siblings; first child removed: before)-check 221: PASS (bli inline host between inline siblings; first child removed: after mutation)check 222: PASS (bli nested inline host; innerHTML cleared: before)check 223: PASS (bli nested inline host; innerHTML cleared: after mutation)-check 224: PASS (bli nested inline host after a block sibling; innerHTML cleared: before)-check 225: PASS (bli nested inline host after a block sibling; innerHTML cleared: after mutation)-check 226: PASS (bli nested inline host in a flex container; innerHTML cleared: before)-check 227: PASS (bli nested inline host in a flex container; innerHTML cleared: after mutation)-check 228: PASS (bli inline ancestor of a nested inline host; innerHTML set: before)-check 229: PASS (bli inline ancestor of a nested inline host; innerHTML set: after mutation)check 230: PASS (bli display: contents element inside a rebuilt inline; inline child appended: before)check 231: PASS (bli display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 232: PASS (bli added to a nested inline: before)-check 233: PASS (bli added to a nested inline: after mutation)-check 234: PASS (bli removed from a nested inline: before)-check 235: PASS (bli removed from a nested inline: after mutation)-check 236: PASS (bli added to an inline between inline siblings: before)-check 237: PASS (bli added to an inline between inline siblings: after mutation)check 238: PASS (bli removed from an inline between inline siblings: before)check 239: PASS (bli removed from an inline between inline siblings: after mutation)-check 240: PASS (ali inline host between inline siblings; innerHTML cleared: before)-check 241: PASS (ali inline host between inline siblings; innerHTML cleared: after mutation)-check 242: PASS (ali inline host between inline siblings; innerHTML set: before)-check 243: PASS (ali inline host between inline siblings; innerHTML set: after mutation)check 244: PASS (ali inline host between inline siblings; textContent set: before)check 245: PASS (ali inline host between inline siblings; textContent set: after mutation)-check 246: PASS (ali inline host between inline siblings; shadow root attached: before)-check 247: PASS (ali inline host between inline siblings; shadow root attached: after mutation)-check 248: PASS (ali inline host between inline siblings; inline child appended: before)-check 249: PASS (ali inline host between inline siblings; inline child appended: after mutation)-check 250: PASS (ali inline host between inline siblings; first child removed: before)-check 251: PASS (ali inline host between inline siblings; first child removed: after mutation)-check 252: PASS (ali nested inline host; innerHTML cleared: before)-check 253: PASS (ali nested inline host; innerHTML cleared: after mutation)check 254: PASS (ali nested inline host after a block sibling; innerHTML cleared: before)check 255: PASS (ali nested inline host after a block sibling; innerHTML cleared: after mutation)check 256: PASS (ali nested inline host in a flex container; innerHTML cleared: before)check 257: PASS (ali nested inline host in a flex container; innerHTML cleared: after mutation)-check 258: PASS (ali inline ancestor of a nested inline host; innerHTML set: before)-check 259: PASS (ali inline ancestor of a nested inline host; innerHTML set: after mutation)-check 260: PASS (ali display: contents element inside a rebuilt inline; inline child appended: before)-check 261: PASS (ali display: contents element inside a rebuilt inline; inline child appended: after mutation)check 262: PASS (ali added to a nested inline: before)check 263: PASS (ali added to a nested inline: after mutation)-check 264: PASS (ali removed from a nested inline: before)-check 265: PASS (ali removed from a nested inline: after mutation)-check 266: PASS (ali added to an inline between inline siblings: before)-check 267: PASS (ali added to an inline between inline siblings: after mutation)-check 268: PASS (ali removed from an inline between inline siblings: before)-check 269: PASS (ali removed from an inline between inline siblings: after mutation)-check 270: PASS (bflex inline host between inline siblings; innerHTML cleared: before)-check 271: PASS (bflex inline host between inline siblings; innerHTML cleared: after mutation)-check 272: PASS (bflex inline host between inline siblings; innerHTML set: before)-check 273: PASS (bflex inline host between inline siblings; innerHTML set: after mutation)-check 274: PASS (bflex inline host between inline siblings; textContent set: before)-check 275: PASS (bflex inline host between inline siblings; textContent set: after mutation)check 276: PASS (bflex inline host between inline siblings; shadow root attached: before)check 277: PASS (bflex inline host between inline siblings; shadow root attached: after mutation)-check 278: PASS (bflex inline host between inline siblings; inline child appended: before)-check 279: PASS (bflex inline host between inline siblings; inline child appended: after mutation)-check 280: PASS (bflex inline host between inline siblings; first child removed: before)-check 281: PASS (bflex inline host between inline siblings; first child removed: after mutation)-check 282: PASS (bflex nested inline host; innerHTML cleared: before)-check 283: PASS (bflex nested inline host; innerHTML cleared: after mutation)-check 284: PASS (bflex nested inline host after a block sibling; innerHTML cleared: before)-check 285: PASS (bflex nested inline host after a block sibling; innerHTML cleared: after mutation)-check 286: PASS (bflex nested inline host in a flex container; innerHTML cleared: before)-check 287: PASS (bflex nested inline host in a flex container; innerHTML cleared: after mutation)check 288: PASS (bflex inline ancestor of a nested inline host; innerHTML set: before)check 289: PASS (bflex inline ancestor of a nested inline host; innerHTML set: after mutation)check 290: PASS (bflex display: contents element inside a rebuilt inline; inline child appended: before)check 291: PASS (bflex display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 292: PASS (bflex added to a nested inline: before)-check 293: PASS (bflex added to a nested inline: after mutation)check 294: PASS (bflex removed from a nested inline: before)check 295: PASS (bflex removed from a nested inline: after mutation)-check 296: PASS (bflex added to an inline between inline siblings: before)-check 297: PASS (bflex added to an inline between inline siblings: after mutation)-check 298: PASS (bflex removed from an inline between inline siblings: before)-check 299: PASS (bflex removed from an inline between inline siblings: after mutation)-check 300: PASS (aflex inline host between inline siblings; innerHTML cleared: before)-check 301: PASS (aflex inline host between inline siblings; innerHTML cleared: after mutation)-check 302: PASS (aflex inline host between inline siblings; innerHTML set: before)-check 303: PASS (aflex inline host between inline siblings; innerHTML set: after mutation)-check 304: PASS (aflex inline host between inline siblings; textContent set: before)-check 305: PASS (aflex inline host between inline siblings; textContent set: after mutation)-check 306: PASS (aflex inline host between inline siblings; shadow root attached: before)-check 307: PASS (aflex inline host between inline siblings; shadow root attached: after mutation)check 308: PASS (aflex inline host between inline siblings; inline child appended: before)check 309: PASS (aflex inline host between inline siblings; inline child appended: after mutation)-check 310: PASS (aflex inline host between inline siblings; first child removed: before)-check 311: PASS (aflex inline host between inline siblings; first child removed: after mutation)check 312: PASS (aflex nested inline host; innerHTML cleared: before)check 313: PASS (aflex nested inline host; innerHTML cleared: after mutation)check 314: PASS (aflex nested inline host after a block sibling; innerHTML cleared: before)check 315: PASS (aflex nested inline host after a block sibling; innerHTML cleared: after mutation)-check 316: PASS (aflex nested inline host in a flex container; innerHTML cleared: before)-check 317: PASS (aflex nested inline host in a flex container; innerHTML cleared: after mutation)-check 318: PASS (aflex inline ancestor of a nested inline host; innerHTML set: before)-check 319: PASS (aflex inline ancestor of a nested inline host; innerHTML set: after mutation)-check 320: PASS (aflex display: contents element inside a rebuilt inline; inline child appended: before)-check 321: PASS (aflex display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 322: PASS (aflex added to a nested inline: before)-check 323: PASS (aflex added to a nested inline: after mutation)-check 324: PASS (aflex removed from a nested inline: before)-check 325: PASS (aflex removed from a nested inline: after mutation)check 326: PASS (aflex added to an inline between inline siblings: before)check 327: PASS (aflex added to an inline between inline siblings: after mutation)-check 328: PASS (aflex removed from an inline between inline siblings: before)-check 329: PASS (aflex removed from an inline between inline siblings: after mutation)-check 330: PASS (btable inline host between inline siblings; innerHTML cleared: before)-check 331: PASS (btable inline host between inline siblings; innerHTML cleared: after mutation)-check 332: PASS (btable inline host between inline siblings; innerHTML set: before)-check 333: PASS (btable inline host between inline siblings; innerHTML set: after mutation)-check 334: PASS (btable inline host between inline siblings; textContent set: before)-check 335: PASS (btable inline host between inline siblings; textContent set: after mutation)-check 336: PASS (btable inline host between inline siblings; shadow root attached: before)-check 337: PASS (btable inline host between inline siblings; shadow root attached: after mutation)-check 338: PASS (btable inline host between inline siblings; inline child appended: before)-check 339: PASS (btable inline host between inline siblings; inline child appended: after mutation)check 340: PASS (btable inline host between inline siblings; first child removed: before)check 341: PASS (btable inline host between inline siblings; first child removed: after mutation)-check 342: PASS (btable nested inline host; innerHTML cleared: before)-check 343: PASS (btable nested inline host; innerHTML cleared: after mutation)-check 344: PASS (btable nested inline host after a block sibling; innerHTML cleared: before)-check 345: PASS (btable nested inline host after a block sibling; innerHTML cleared: after mutation)check 346: PASS (btable nested inline host in a flex container; innerHTML cleared: before)check 347: PASS (btable nested inline host in a flex container; innerHTML cleared: after mutation)check 348: PASS (btable inline ancestor of a nested inline host; innerHTML set: before)check 349: PASS (btable inline ancestor of a nested inline host; innerHTML set: after mutation)-check 350: PASS (btable display: contents element inside a rebuilt inline; inline child appended: before)-check 351: PASS (btable display: contents element inside a rebuilt inline; inline child appended: after mutation)-check 352: PASS (btable added to a nested inline: before)-check 353: PASS (btable added to a nested inline: after mutation)-check 354: PASS (btable removed from a nested inline: before)-check 355: PASS (btable removed from a nested inline: after mutation)-check 356: PASS (btable added to an inline between inline siblings: before)-check 357: PASS (btable added to an inline between inline siblings: after mutation)check 358: PASS (btable removed from an inline between inline siblings: before)check 359: PASS (btable removed from an inline between inline siblings: after mutation)check 360: PASS (atable inline host between inline siblings; innerHTML cleared: before)check 361: PASS (atable inline host between inline siblings; innerHTML cleared: after mutation)-check 362: PASS (atable inline host between inline siblings; innerHTML set: before)-check 363: PASS (atable inline host between inline siblings; innerHTML set: after mutation)-check 364: PASS (atable inline host between inline siblings; textContent set: before)-check 365: PASS (atable inline host between inline siblings; textContent set: after mutation)-check 366: PASS (atable inline host between inline siblings; shadow root attached: before)-check 367: PASS (atable inline host between inline siblings; shadow root attached: after mutation)-check 368: PASS (atable inline host between inline siblings; inline child appended: before)-check 369: PASS (atable inline host between inline siblings; inline child appended: after mutation)-check 370: PASS (atable inline host between inline siblings; first child removed: before)-check 371: PASS (atable inline host between inline siblings; first child removed: after mutation)check 372: PASS (atable nested inline host; innerHTML cleared: before)check 373: PASS (atable nested inline host; innerHTML cleared: after mutation)-check 374: PASS (atable nested inline host after a block sibling; innerHTML cleared: before)-check 375: PASS (atable nested inline host after a block sibling; innerHTML cleared: after mutation)-check 376: PASS (atable nested inline host in a flex container; innerHTML cleared: before)-check 377: PASS (atable nested inline host in a flex container; innerHTML cleared: after mutation)-check 378: PASS (atable inline ancestor of a nested inline host; innerHTML set: before)-check 379: PASS (atable inline ancestor of a nested inline host; innerHTML set: after mutation)check 380: PASS (atable display: contents element inside a rebuilt inline; inline child appended: before)check 381: PASS (atable display: contents element inside a rebuilt inline; inline child appended: after mutation)check 382: PASS (atable added to a nested inline: before)check 383: PASS (atable added to a nested inline: after mutation)-check 384: PASS (atable removed from a nested inline: before)-check 385: PASS (atable removed from a nested inline: after mutation)-check 386: PASS (atable added to an inline between inline siblings: before)-check 387: PASS (atable added to an inline between inline siblings: after mutation)-check 388: PASS (atable removed from an inline between inline siblings: before)-check 389: PASS (atable removed from an inline between inline siblings: after mutation)check 390: PASS (floating ::before and ::after on an inline host; innerHTML cleared: before)check 391: PASS (floating ::before and ::after on an inline host; innerHTML cleared: after mutation)check 392: PASS (floating ::after on the host and on its next sibling; innerHTML cleared: before)diff --git a/Tests/LibWeb/Text/input/layout-tree-update/direct-child-list-preservation.html b/Tests/LibWeb/Text/input/layout-tree-update/direct-child-list-preservation.htmlindex 7923315bc0d..c966054584e 100644--- a/Tests/LibWeb/Text/input/layout-tree-update/direct-child-list-preservation.html+++ b/Tests/LibWeb/Text/input/layout-tree-update/direct-child-list-preservation.html@@ -773,7 +773,7 @@return `rebuilt [${work.rebuiltRoots().join(", ")}]${work.escaped() ? ", escaped" : ""}${builds}`;}- function runCase(case_, expectNoBuild) {+ function runCase(case_, expectNoBuild, output) {fixture.innerHTML = case_.markup;const parent = case_.parentSelector ? fixture.querySelector(case_.parentSelector) : fixture.firstElementChild;const trackedNodes = case_.tracked.map(className => ({@@ -785,16 +785,18 @@const work = layoutTreeBuildWork(() => case_.mutate(parent), { tracked: trackedNodes.map(({ node }) => node) });const expectedTransition = case_.preserve !== false ? "PRESERVED" : "RECREATED";work.transitions().forEach((transition, index) => {- println(`${transition === expectedTransition ? "PASS" : "FAIL"}: ${case_.name} | ${trackedNodes[index].label} ${transition}`);+ output.push(`${transition === expectedTransition ? "PASS" : "FAIL"}: ${case_.name} | ${trackedNodes[index].label} ${transition}`);});const expectedBuilds = expectNoBuild ? 0 : (case_.builds ?? 1);- println(`${work.builds() === expectedBuilds ? "PASS" : "FAIL"}: ${case_.name} | ${describeLayoutTreeBuilds(work)}`);- println(`${internals.compareLayoutTreeWithFullRebuild().matches ? "PASS" : "FAIL"}: ${case_.name} | incremental tree matches full rebuild`);+ output.push(`${work.builds() === expectedBuilds ? "PASS" : "FAIL"}: ${case_.name} | ${describeLayoutTreeBuilds(work)}`);+ output.push(`${internals.compareLayoutTreeWithFullRebuild().matches ? "PASS" : "FAIL"}: ${case_.name} | incremental tree matches full rebuild`);}test(() => {- insertionCases.forEach(case_ => runCase(case_, false));- removalCases.forEach(case_ => runCase(case_, false));- fallbackRemovalCases.forEach(case_ => runCase(case_, case_.expectNoBuild === true));+ const output = [];+ insertionCases.forEach(case_ => runCase(case_, false, output));+ removalCases.forEach(case_ => runCase(case_, false, output));+ fallbackRemovalCases.forEach(case_ => runCase(case_, case_.expectNoBuild === true, output));+ output.forEach(line => println(line));});</script>diff --git a/Tests/LibWeb/Text/input/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.html b/Tests/LibWeb/Text/input/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.htmlindex 57d4fbf3510..6b3214644fb 100644--- a/Tests/LibWeb/Text/input/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.html+++ b/Tests/LibWeb/Text/input/layout-tree-update/in-place-rebuild-with-escaping-pseudo-element-boxes.html@@ -112,20 +112,27 @@["first child removed", removeFirstChild],];+ // NB: Each escaping pseudo-element takes only a few of the variations of each kind below, in turn from one to the+ // next, so that every variation runs with several of them without running the whole product. Checks keep+ // the numbers they have in the whole product.const cases = [];- for (const pseudo of escapingPseudos) {- for (const [mutationName, mutate] of mutations) {- cases.push({- name: `${pseudo} inline host between inline siblings; ${mutationName}`,- root: () => [- el("span", {}, "p"),- el("span", { id: "x", class: pseudo }, el("i", {}, "t")),- el("span", {}, "s"),- ],- mutate,- });- }- cases.push(+ const pushSampled = (index, count, variations) => {+ const sampled = Array.from({ length: count }, (_, offset) => (index * count + offset) % variations.length);+ variations.forEach((variation, variationIndex) =>+ cases.push({ ...variation, skipped: !sampled.includes(variationIndex) })+ );+ };+ escapingPseudos.forEach((pseudo, pseudoIndex) => {+ pushSampled(pseudoIndex, 1, mutations.map(([mutationName, mutate]) => ({+ name: `${pseudo} inline host between inline siblings; ${mutationName}`,+ root: () => [+ el("span", {}, "p"),+ el("span", { id: "x", class: pseudo }, el("i", {}, "t")),+ el("span", {}, "s"),+ ],+ mutate,+ })));+ pushSampled(pseudoIndex, 2, [{name: `${pseudo} nested inline host; innerHTML cleared`,root: () => [@@ -181,8 +188,8 @@],mutate: appendInline,}- );- cases.push(+ ]);+ pushSampled(pseudoIndex, 1, [{name: `${pseudo} added to a nested inline`,root: () => [@@ -209,8 +216,8 @@root: () => [el("span", {}, "p"), el("span", { id: "x", class: pseudo }, "t"), el("span", {}, "s")],mutate: removeClass(pseudo),}- );- }+ ]);+ });cases.push({name: "floating ::before and ::after on an inline host; innerHTML cleared",@@ -276,12 +283,17 @@});+ const output = [];let checkNumber = 0;const check = description => {const result = internals.compareLayoutTreeWithFullRebuild().matches ? "PASS" : "FAIL";- println(`check ${checkNumber++}: ${result} (${description})`);+ output.push(`check ${checkNumber++}: ${result} (${description})`);};for (const testCase of cases) {+ if (testCase.skipped) {+ checkNumber += 2;+ continue;+ }fixture.replaceChildren(...testCase.root());document.body.offsetHeight;check(`${testCase.name}: before`);@@ -289,5 +301,6 @@document.body.offsetHeight;check(`${testCase.name}: after mutation`);}+ output.forEach(line => println(line));});</script>diff --git a/Tests/LibWeb/Text/input/layout-tree-update/remove-deep-subtree.html b/Tests/LibWeb/Text/input/layout-tree-update/remove-deep-subtree.htmlindex 99b79d67d52..e88ae22214b 100644--- a/Tests/LibWeb/Text/input/layout-tree-update/remove-deep-subtree.html+++ b/Tests/LibWeb/Text/input/layout-tree-update/remove-deep-subtree.html@@ -10,7 +10,7 @@test(() => {const chainRoot = document.createElement("div");let deepest = chainRoot;- for (let depth = 1; depth < 4000; ++depth) {+ for (let depth = 1; depth < 1000; ++depth) {const level = document.createElement("div");if (depth % 100 === 0)level.className = "with-generated-content";diff --git a/Tests/LibWeb/Text/input/layout-tree-update/whitespace-child-insertion-preservation.html b/Tests/LibWeb/Text/input/layout-tree-update/whitespace-child-insertion-preservation.htmlindex 51385f0bf18..b0ead2efe06 100644--- a/Tests/LibWeb/Text/input/layout-tree-update/whitespace-child-insertion-preservation.html+++ b/Tests/LibWeb/Text/input/layout-tree-update/whitespace-child-insertion-preservation.html@@ -673,6 +673,7 @@}test(() => {+ const output = [];for (const case_ of cases) {fixture.innerHTML = case_.markup;const parent = case_.parentSelector ? fixture.querySelector(case_.parentSelector) : fixture.firstElementChild;@@ -687,10 +688,11 @@const preserved = parentTransition === "PRESERVED" && trackedTransition === "PRESERVED";const expectedPreserved = step.preserve !== false;const name = `${case_.name} | ${step.name}`;- println(`${preserved === expectedPreserved ? "PASS" : "FAIL"}: ${name} | ${expectedPreserved ? "preserve" : "rebuild"}: parent ${parentTransition}, tracked ${trackedTransition}`);- println(`${work.builds() === 1 ? "PASS" : "FAIL"}: ${name} | ${describeLayoutTreeBuilds(work)}`);- println(`${internals.compareLayoutTreeWithFullRebuild().matches ? "PASS" : "FAIL"}: ${name} | incremental tree matches full rebuild`);+ output.push(`${preserved === expectedPreserved ? "PASS" : "FAIL"}: ${name} | ${expectedPreserved ? "preserve" : "rebuild"}: parent ${parentTransition}, tracked ${trackedTransition}`);+ output.push(`${work.builds() === 1 ? "PASS" : "FAIL"}: ${name} | ${describeLayoutTreeBuilds(work)}`);+ output.push(`${internals.compareLayoutTreeWithFullRebuild().matches ? "PASS" : "FAIL"}: ${name} | incremental tree matches full rebuild`);}}+ output.forEach(line => println(line));});</script>