Tests: Re-import disabled WPT crash tests in Text/ directory

We've had proper support for crash tests, so these can go where they
belong.
This commit is contained in:
Sam Atkins
2026-01-08 17:07:16 +00:00
committed by Andreas Kling
parent 08d2776860
commit 4a4c439ffe
Notes: github-actions[bot] 2026-01-09 07:12:47 +00:00
6 changed files with 2 additions and 6 deletions

View File

@@ -1,15 +0,0 @@
<!DOCTYPE html>
<body>
<title>Crash with lazy parsing child rules and stylesheet copy-on-write</title>
<link rel="help" href="https://crbug.com/1404879">
<link href="../support/delete-other-rule-crash.css" rel="stylesheet">
<script src="../../common/gc.js"></script>
<script>
addEventListener('DOMContentLoaded', async () => {
requestAnimationFrame(async () => {
document.styleSheets[0].deleteRule(0);
await garbageCollect();
document.styleSheets[0].cssRules[0].cssText;
});
});
</script>

View File

@@ -1,16 +0,0 @@
<!DOCTYPE html>
<body>
<title>Use-after-free when inserting implicit parent selector</title>
<link rel="help" href="https://crbug.com/1380313">
<style>
:root {
:lang(en), :lang(en) {
}
}
</style>
<div lang="en"></div>
<script>
// Allocate a large chunk of memory, to trigger a GC.
new Int32Array(536870911);
</script>

View File

@@ -1,12 +0,0 @@
<!DOCTYPE html>
<meta charset="UTF-8">
<title>Nesting pseudo element selectors should not crash</title>
<link rel="help" href="https://crbug.com/1376227">
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/7912">
<style>
div::part(x) {
& {
color: red;
}
}
</style>

View File

@@ -1,9 +0,0 @@
<!DOCTYPE html>
<style>
.foo {
::before:where(&) {
color: red;
}
}
</style>
<div class=foo></div>