Commit 59d22330 authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

[css-filters] Move effect-reference-reset-style-delete-crash.html to WPT

Migrates this test out of third_party/blink/web_tests/css3/filters
and into the WPT-specific directory, adding links to the relevant
specs and a test assertion describing its purpose.

Bug: 1063749
Change-Id: Ie75e00e614e505e7b426d40e334e6e32ba174c37
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2145417
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Reviewed-by: default avatarFredrik Söderquist <fs@opera.com>
Cr-Commit-Position: refs/heads/master@{#759523}
parent 1597f447
Test that no crash occurs when a SVG filter is deleted that used to be referenced by an HTML element but is no longer.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS successfullyParsed is true
TEST COMPLETE
<!DOCTYPE html> <!DOCTYPE html>
<html> <title>CSS Filters: Crash when a SVG filter is deleted</title>
<head> <link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<script src="../../resources/js-test.js"></script> <link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterElement">
</head> <link rel="issue" href="https://bugs.webkit.org/show_bug.cgi?id=90405">
<meta name="assert" content="Check that crash doesn't happen when a SVG filter is deleted that used to be referenced by an HTML element but is no longer.">
<body> <body>
<img id="html" style="filter: url(#MyFilter);" src="resources/reference.png"> <img id="html" style="filter: url(#MyFilter);" src="support/color-palette.png">
<svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1" id="svg"> <svg xmlns="http://www.w3.org/2000/svg" width="0" height="0" version="1.1" id="svg">
<defs> <defs>
<filter id="MyFilter"> <filter id="MyFilter">
...@@ -13,14 +14,9 @@ ...@@ -13,14 +14,9 @@
</defs> </defs>
</svg> </svg>
<script> <script>
description("Test that no crash occurs when a SVG filter is deleted that used to be referenced by an HTML element but is no longer.");
html = document.getElementById('html'); html = document.getElementById('html');
html.style = ""; html.style = "";
svg = document.getElementById('svg'); svg = document.getElementById('svg');
svg.parentNode.removeChild(svg); svg.parentNode.removeChild(svg);
successfullyParsed = true;
</script> </script>
</body> </body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment