Truly independent web browser
Tests/LibWeb: Remove bytes-per-document-by-owner
Andreas Klingfea71ed91181
diff --git a/Tests/LibWeb/Text/expected/css/style-memory/bytes-per-document-by-owner.txt b/Tests/LibWeb/Text/expected/css/style-memory/bytes-per-document-by-owner.txtdeleted file mode 100644index ebebb6550aa..00000000000--- a/Tests/LibWeb/Text/expected/css/style-memory/bytes-per-document-by-owner.txt+++ /dev/null@@ -1,28 +0,0 @@-initial: within 6216-ruleStore: within 1216-ruleIndex: within 1520-userAgentIndex: within 149568-sheetSegments: within 0-sharedDeclarations: within 14592-invalidation: within 904-records: within 1552-payloads: within 7120-groupValueFacts: within 672-customProperties: within 0-retainedSlots: within 540-recordCells: within 112-installed: within 1320-projection: within 5408-hostTree: within 4672-elementDeclarations: within 32-heldRecordMaps: within 1168-layoutStyleColumns: within 104-otherMaps: within 88-styleValues: within 3632-animationEffects: within 0-fontResolutions: within 712-liveScratch: within 1936-cssAnimations: within 0-hostMemo: within 256-cppInstalledStyles: within 24-cppHintProperties: within 0diff --git a/Tests/LibWeb/Text/input/css/style-memory/bytes-per-document-by-owner.html b/Tests/LibWeb/Text/input/css/style-memory/bytes-per-document-by-owner.htmldeleted file mode 100644index dd1733870b3..00000000000--- a/Tests/LibWeb/Text/input/css/style-memory/bytes-per-document-by-owner.html+++ /dev/null@@ -1,74 +0,0 @@-<!doctype html>-<body>-<script src="../../include.js"></script>-<script>- // The style memory a frame's document holds, by owner: the reports of blank same-origin iframes, each of whose- // documents has an engine of its own. The mean over the second and third frame is what one more frame adds.- // NB: A document's report counts what its engine shares with the other engines of the process, such as the user- // agent rules, as its own.- function frameLoaded(iframe) {- return new Promise(resolve => iframe.addEventListener("load", resolve, { once: true }));- }-- function report(iframe) {- iframe.contentDocument.body.offsetWidth;- return iframe.contentWindow.internals.styleMemoryReport();- }-- // Bytes per document each owner may hold, which a change that grows an owner past has to raise.- const budgets = {- initial: 6216,- ruleStore: 1216,- ruleIndex: 1520,- // NB: The user agent rules' index, which the engines of the process share and each document's report counts.- userAgentIndex: 149568,- sharedDeclarations: 14592,- invalidation: 904,- records: 1552,- payloads: 7120,- groupValueFacts: 672,- retainedSlots: 540,- recordCells: 112,- installed: 1320,- projection: 5408,- hostTree: 4672,- elementDeclarations: 32,- heldRecordMaps: 1168,- layoutStyleColumns: 104,- otherMaps: 88,- styleValues: 3632,- // NB: The resolution of the initial font.- fontResolutions: 712,- // NB: The slots of the scratch each style thread keeps, of which only the calling thread's is made here, and- // the first chunk of restyle hints with its group.- liveScratch: 1936,- // NB: The host's memo of the record views it read, which grows with the views it is told.- hostMemo: 256,- cppInstalledStyles: 24,- };-- // NB: What a transaction in flight holds of earlier generations, and the groups the style threads keep for the- // next pass, depend on when the report runs and on which threads styled what last.- const transientOwners = ["projectionGenerations", "workerCaches"];-- asyncTest(async done => {- const frames = [];- for (let index = 0; index < 3; ++index) {- const iframe = document.createElement("iframe");- iframe.srcdoc = "<!doctype html><body>";- const loaded = frameLoaded(iframe);- document.body.appendChild(iframe);- await loaded;- frames.push(iframe);- }- const reports = frames.map(report);- for (const owner in reports[1].owners) {- if (transientOwners.includes(owner))- continue;- const bytes = (reports[1].owners[owner] + reports[2].owners[owner]) / 2;- const budget = budgets[owner] ?? 0;- println(`${owner}: ${bytes <= budget ? "within" : `OVER (${bytes.toFixed(0)})`} ${budget}`);- }- done();- });-</script>