Truly independent web browser
Tests/LibWeb: Remove the 5-second limit from parser stream tests
Tim Ledbettera376e40bf1df
diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-bytes.html b/Tests/LibWeb/Text/input/HTML/parser-streams-bytes.htmlindex f52521e3143..6a9ff79913e 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-bytes.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-bytes.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const body = `<!DOCTYPE html><body><div id="first">first</div>${" ".repeat(1700)}<div id="last">last</div>`;const url = await httpServer.createEcho("GET", "/parser-streams-bytes", {diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-crlf-split.html b/Tests/LibWeb/Text/input/HTML/parser-streams-crlf-split.htmlindex 2a5a415b280..cc308f44cc6 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-crlf-split.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-crlf-split.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const prefix = `<!DOCTYPE html><body><span id="target">line1\r`;const body = `${prefix}\nline2</span><script>window.onload = () => parent.postMessage(document.getElementById("target").textContent, "*");<\/script>`;diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-external-script.html b/Tests/LibWeb/Text/input/HTML/parser-streams-external-script.htmlindex fae83fce7f8..240cccf6b3a 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-external-script.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-external-script.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const scriptURL = await httpServer.createEcho("GET", "/parser-streams-external-script.js", {status: 200,diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-named-character-reference-split.html b/Tests/LibWeb/Text/input/HTML/parser-streams-named-character-reference-split.htmlindex a6d06c0fb51..22f5cf6ce8f 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-named-character-reference-split.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-named-character-reference-split.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const prefix = `<!DOCTYPE html><body><span id="target">¬`;const body = `${prefix}in;</span><script>window.onload = () => parent.postMessage(document.getElementById("target").textContent, "*");<\/script>`;diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-script-split.html b/Tests/LibWeb/Text/input/HTML/parser-streams-script-split.htmlindex c454f2daf0e..df7bb4741ee 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-script-split.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-script-split.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const scriptPrefix = `<!DOCTYPE html><body><div id="target">before</div><script>${" ".repeat(1700)}`;const body = `${scriptPrefix}window.onload = () => parent.postMessage(document.getElementById("target").textContent, "*"); document.getElementById("target").textContent = "ran";<\/script><div>after</div>`;diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-style-split.html b/Tests/LibWeb/Text/input/HTML/parser-streams-style-split.htmlindex c1452769faa..f0b34275bbb 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-style-split.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-style-split.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const stylePrefix = `<!DOCTYPE html><head><style>${" ".repeat(1700)}`;const body = `${stylePrefix}#target { color: rgb(1, 2, 3); }</style></head><body><div id="target">styled</div><script>window.onload = () => parent.postMessage({ color: getComputedStyle(document.getElementById("target")).color, text: document.getElementById("target").textContent }, "*");<\/script>`;diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-utf8-split.html b/Tests/LibWeb/Text/input/HTML/parser-streams-utf8-split.htmlindex 7a47ae67dc5..29861ae50f5 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-utf8-split.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-utf8-split.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const marker = "caf\u00e9";const body = `<!DOCTYPE html><meta charset="UTF-8"><body>${"a".repeat(1500)}<span id="target">${marker}</span>`;diff --git a/Tests/LibWeb/Text/input/HTML/parser-streams-with-document-write.html b/Tests/LibWeb/Text/input/HTML/parser-streams-with-document-write.htmlindex 4490f337e9d..1bb43516145 100644--- a/Tests/LibWeb/Text/input/HTML/parser-streams-with-document-write.html+++ b/Tests/LibWeb/Text/input/HTML/parser-streams-with-document-write.html@@ -2,8 +2,6 @@<script src="../include.js"></script><script>asyncTest(async (done) => {- internals.setTestTimeout(5000);-const httpServer = httpTestServer();const prefix = `<!DOCTYPE html><body>${" ".repeat(1500)}<span id="before">before</span><script>document.write("inserted");<\/script>`;const body = `${prefix}<span id="after">after</span>`;