зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1560846 [wpt PR 17354] - Add tests for movablelimits, a=testonly
Automatic update from web-platform-tests Add tests for movablelimits (#17354) Tests taken from Webkit. -- wpt-commits: 79cf5fb8d18ef01ba174de2ebf841f782f342095 wpt-pr: 17354
This commit is contained in:
Родитель
f5acca9a6d
Коммит
f4ba144438
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>mo movablelimits default value</title>
|
||||
<meta charset="utf-8"/></head>
|
||||
<body>
|
||||
<math>
|
||||
<munder>
|
||||
<mo movablelimits="true">∑</mo>
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
<munder>
|
||||
<mo movablelimits="false">∫</mo>
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> movablelimits default value</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verifies default value of movablelimits for some operators.">
|
||||
<link rel="match" href="mo-movablelimits-default-ref.html">
|
||||
</head>
|
||||
<body>
|
||||
<math>
|
||||
<munder>
|
||||
<mo>∑</mo> <!-- This has movablelimits="true" in the operator dictionary -->
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
<munder>
|
||||
<mo>∫</mo> <!-- This has movablelimits="false" in the operator dictionary -->
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Test dynamically removing movablelimits attribute</title>
|
||||
</head>
|
||||
<body>
|
||||
<math>
|
||||
<munder>
|
||||
<mo>∑</mo>
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,24 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title>Test dynamically removing movablelimits attribute</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verifies dynamically removing movablelimits.">
|
||||
<link rel="match" href="mo-movablelimits-dynamic-ref.html">
|
||||
<script>
|
||||
window.addEventListener("load", () => {
|
||||
document.getElementById('a').removeAttribute('movablelimits');
|
||||
document.documentElement.classList.remove('reftest-wait');
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<math>
|
||||
<munder>
|
||||
<mo id="a" movablelimits="false">∑</mo>
|
||||
<mi>x</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> movablelimits</title>
|
||||
</head>
|
||||
<body>
|
||||
<math>
|
||||
<msub>
|
||||
<mtext>A</mtext>
|
||||
<mi>B</mi>
|
||||
</msub>
|
||||
<munder>
|
||||
<mtext>A</mtext>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
</math>
|
||||
<math displaystyle="true">
|
||||
<munder>
|
||||
<mtext>A</mtext>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
<munder>
|
||||
<mtext>A</mtext>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<title><mo> movablelimits</title>
|
||||
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#tokenmo">
|
||||
<meta name="assert" content="Verifies effect of movablelimits on mo in both displaystyle modes.">
|
||||
<link rel="match" href="mo-movablelimits-ref.html">
|
||||
</head>
|
||||
<body>
|
||||
<math>
|
||||
<munder>
|
||||
<mo lspace="0px" rspace="0px" movablelimits="true">A</mo>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
<munder>
|
||||
<mo lspace="0px" rspace="0px" movablelimits="false">A</mo>
|
||||
<mi>C</mi>
|
||||
</munder>
|
||||
</math>
|
||||
<math displaystyle="true">
|
||||
<munder>
|
||||
<mo lspace="0px" rspace="0px" movablelimits="true">A</mo>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
<munder>
|
||||
<mo lspace="0px" rspace="0px" movablelimits="false">A</mo>
|
||||
<mi>B</mi>
|
||||
</munder>
|
||||
</math>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче