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>
<html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<title>CSS Filters: Crash when a SVG filter is deleted</title>
<link rel="author" title="Stephen White" href="mailto:senorblanco@chromium.org">
<link rel="help" href="https://drafts.fxtf.org/filter-effects-1/#FilterElement">
<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>
<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">
<defs>
<filter id="MyFilter">
......@@ -13,14 +14,9 @@
</defs>
</svg>
<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.style = "";
svg = document.getElementById('svg');
svg.parentNode.removeChild(svg);
successfullyParsed = true;
</script>
</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