Bug 1795630 - Export MathML crashtests to WPT. r=emilio

This commit moves crash tests from dom/mathml and layout/mathml into
testing/web-platform/tests/mathml/crashtests/mozilla, trying to do only
minimal changes (i.e. use 'test-wait' instead of 'reftest-wait').

The exception is 400157.xhtml which uses special powers to trigger a
zoom changes. It could probably be tweaked to convert to a mochitest or
rely on a different dynamic change. However, this was testing a crash for
the `<mfenced>` element in nsMathMLmfencedFrame whose code has been
completely removed, so it's now hard to reproduce the original crash.
Also that makes the test no longer very useful, so we just remove it.

Differential Revision: https://phabricator.services.mozilla.com/D159491
This commit is contained in:
Frederic Wang 2022-10-17 17:16:33 +00:00
Родитель 048e17d9f7
Коммит 5cbb8bbec5
81 изменённых файлов: 9 добавлений и 120 удалений

Просмотреть файл

@ -1,2 +0,0 @@
load 462929-1.html
load 770710-1.html

Просмотреть файл

@ -1,30 +0,0 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:mathml="http://www.w3.org/1998/Math/MathML" class="reftest-wait">
<mathml:mfenced/>
<script><![CDATA[
var docviewer;
function do_onload() {
setTimeout(function() {
clearTimeout(timer);
SpecialPowers.setTextZoom(parent, 1);
document.documentElement.removeAttribute("class");
}, 500);
setTimeout(doe,50, 0.2);
}
do_onload();
var timer;
function doe(i) {
SpecialPowers.setTextZoom(parent, SpecialPowers.getTextZoom(parent) + i);
if (SpecialPowers.getTextZoom(parent) >= 4)
i = -0.2;
if (SpecialPowers.getTextZoom(parent) <= 0)
i = 0.2;
window.status = SpecialPowers.getTextZoom(parent);
timer = setTimeout(doe, 50, i);
}
]]></script>
</html>

Просмотреть файл

@ -1,70 +0,0 @@
load 151054-1.xml
load 289180-1.xml
load 307826-1.xhtml
load 307839-1.xhtml
load 307839-2.xhtml
load 323733-1.xml
load 323737-1.xml
load 323738-1.xml
load 323741-1.xml
load 323742-1.xml
load 336074-1.xhtml
load 347355-1.html
load 347495-1.xhtml
load 347507-1.xhtml
load 348492-1.xhtml
load 348709-1.xhtml
load 348811-1.xhtml
load 348811-2.xhtml
load 353612-1.xhtml
load 355986-1.xhtml
load 364685-1.xhtml
load 366012-1.xhtml
load 366564-1.xhtml
load 367107-1.html
load 368430-1.xhtml
load 370791-1.xhtml
load 370862-1.xhtml
load 372483-1.xhtml
load 373472-1.xhtml
load 373472-2.xhtml
load 375562-1.xhtml
load 377824-1.xhtml
load 379418-1.xhtml
load 385226-1.xhtml
load 393760-1.xhtml
load 397518-1.xhtml
load 398038-1.html
load 400157.xhtml
load 400475-1.xhtml
load 402400-1.xhtml
load 403156-1.xhtml
load 404485-1.xhtml
load 405187-1.xhtml
load 405271-1.xml
load 412237-1.xml
load 413063-1.xhtml
load 416907-1.xhtml
load 420420-1.xhtml
load 431072-1.xhtml
load 443089-1.xhtml
load 463763-1.xhtml
load 463763-2.xhtml
load 476547-1.xhtml
load 541620-1.xhtml
load 557474-1.html
load 654928-1.html
load 655451-1.xhtml
load 713606-1.html
load 716349-1.html
load 767251.xhtml
load 848725-1.html
load 848725-2.html
load 947557-1.html
load 973322-1.xhtml
load 1028521-1.xhtml
load 1061027.html
load 1221888-1.html
load 1373767-1.html
load 1376158.html
load 1600635.html

Просмотреть файл

@ -18,7 +18,6 @@ include ../../dom/file/tests/crashtests/crashtests.list
include ../../dom/html/crashtests/crashtests.list
include ../../dom/indexedDB/crashtests/crashtests.list
include ../../dom/jsurl/crashtests/crashtests.list
include ../../dom/mathml/crashtests/crashtests.list
include ../../dom/media/mediasource/test/crashtests/crashtests.list
include ../../dom/media/test/crashtests/crashtests.list
include ../../dom/media/webvtt/test/crashtests/crashtests.list
@ -55,7 +54,6 @@ include ../../js/xpconnect/crashtests/crashtests.list
include ../../layout/base/crashtests/crashtests.list
include ../../layout/forms/crashtests/crashtests.list
include ../../layout/generic/crashtests/crashtests.list
include ../../layout/mathml/crashtests/crashtests.list
include ../../layout/painting/crashtests/crashtests.list
include ../../layout/printing/crashtests/crashtests.list
include ../../layout/style/crashtests/crashtests.list

Просмотреть файл

@ -13,7 +13,6 @@
"dom/html/crashtests/crashtests.list": 9.75,
"dom/indexedDB/crashtests/crashtests.list": 0.35,
"dom/jsurl/crashtests/crashtests.list": 0.51,
"dom/mathml/crashtests/crashtests.list": 0.13,
"dom/media/mediasource/test/crashtests/crashtests.list": 0.26,
"dom/media/test/crashtests/crashtests.list": 33.58,
"dom/media/tests/crashtests/crashtests.list": 4.6,
@ -39,7 +38,6 @@
"layout/base/crashtests/crashtests.list": 81.47,
"layout/forms/crashtests/crashtests.list": 5.77,
"layout/generic/crashtests/crashtests.list": 77.75,
"layout/mathml/crashtests/crashtests.list": 6.2,
"layout/painting/crashtests/crashtests.list": 2.84,
"layout/printing/crashtests/crashtests.list": 0.38,
"layout/style/crashtests/crashtests.list": 33.66,

Просмотреть файл

@ -13,7 +13,6 @@
"dom/html/crashtests/crashtests.list": 15.45,
"dom/indexedDB/crashtests/crashtests.list": 0.35,
"dom/jsurl/crashtests/crashtests.list": 0.51,
"dom/mathml/crashtests/crashtests.list": 0.12,
"dom/media/mediasource/test/crashtests/crashtests.list": 0.27,
"dom/media/test/crashtests/crashtests.list": 42.61,
"dom/media/tests/crashtests/crashtests.list": 7.27,
@ -40,7 +39,6 @@
"layout/base/crashtests/crashtests.list": 102.01,
"layout/forms/crashtests/crashtests.list": 9.63,
"layout/generic/crashtests/crashtests.list": 113.76,
"layout/mathml/crashtests/crashtests.list": 6.81,
"layout/painting/crashtests/crashtests.list": 3.57,
"layout/printing/crashtests/crashtests.list": 0.45,
"layout/style/crashtests/crashtests.list": 44.34,

Просмотреть файл

@ -13,7 +13,6 @@
"dom/html/crashtests/crashtests.list": 12.61,
"dom/indexedDB/crashtests/crashtests.list": 0.23,
"dom/jsurl/crashtests/crashtests.list": 0.3,
"dom/mathml/crashtests/crashtests.list": 0.08,
"dom/media/mediasource/test/crashtests/crashtests.list": 0.17,
"dom/media/test/crashtests/crashtests.list": 32.5,
"dom/media/tests/crashtests/crashtests.list": 5.28,
@ -39,7 +38,6 @@
"layout/base/crashtests/crashtests.list": 77.91,
"layout/forms/crashtests/crashtests.list": 6.39,
"layout/generic/crashtests/crashtests.list": 72.85,
"layout/mathml/crashtests/crashtests.list": 4.76,
"layout/painting/crashtests/crashtests.list": 2.07,
"layout/printing/crashtests/crashtests.list": 0.23,
"layout/style/crashtests/crashtests.list": 32.03,

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>

Просмотреть файл

До

Ширина:  |  Высота:  |  Размер: 980 B

После

Ширина:  |  Высота:  |  Размер: 980 B

Просмотреть файл

@ -1,4 +1,4 @@
<html class="reftest-wait">
<html class="test-wait">
<head>
<script>
setTimeout('document.documentElement.className = ""', 1000);

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>
<script>

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>
<script>

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd" >
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>
<script>
function boom1()

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML" class="test-wait">
<head>
<script>

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>
<script>

Просмотреть файл

@ -1,4 +1,4 @@
<html xmlns="http://www.w3.org/1999/xhtml" class="reftest-wait">
<html xmlns="http://www.w3.org/1999/xhtml" class="test-wait">
<head>
<script>

Просмотреть файл

@ -87,7 +87,6 @@ file-whitespace:
- layout/generic/test
- layout/inspector/tests
- layout/mathml/tests
- layout/mathml/crashtests
- layout/painting/crashtests/1405881-1.html
- layout/painting/crashtests/1407470-1.html
- layout/reftests