Skip to content

Commit

Permalink
Bug 1637507 [wpt PR 23558] - MathML: Regenerate tests for the operato…
Browse files Browse the repository at this point in the history
…r dictionary, a=testonly

Automatic update from web-platform-tests
MathML: Regenerate tests for the operator dictionary (#23558)

- Update to the latest dictionary entries.
- Remove accent tests since default is true. w3c/mathml#151 (comment)
- Split into smaller files to reduce timeout risks.
--

wpt-commits: 46fe8740553c7e481dee30ab11165decc49cb100
wpt-pr: 23558
  • Loading branch information
fred-wang authored and moz-wptsync-bot committed May 25, 2020
1 parent d45d238 commit 1fbea66
Show file tree
Hide file tree
Showing 33 changed files with 762 additions and 46 deletions.
Binary file modified testing/web-platform/tests/fonts/math/operators.woff
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "symmetric");
OperatorDictionaryTests.run(json, "largeop", 0);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "accent");
OperatorDictionaryTests.run(json, "largeop", 1);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "largeop");
OperatorDictionaryTests.run(json, "largeop", 2);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "stretchy");
OperatorDictionaryTests.run(json, "largeop", 3);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "largeop", 4);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "largeop", 5);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "lspace/rspace");
OperatorDictionaryTests.run(json, "movablelimits", 0);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "movablelimits");
OperatorDictionaryTests.run(json, "movablelimits", 1);
done();
}
</script>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "movablelimits", 2);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "movablelimits", 3);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "movablelimits", 4);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "movablelimits", 5);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "lspace/rspace", 0);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "lspace/rspace", 1);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "lspace/rspace", 2);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Operator dictionary</title>
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-fence-separator-or-accent-mo">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#dictionary-based-attributes">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#operator-dictionary">
<link rel="help" href="https://mathml-refresh.github.io/mathml-core/#stretchy-operator-axis">
<meta name="assert" content="Verify default properties for characters that are in the operator dictionary, as well as for U+00A0 NO-BREAK SPACE">
<meta name="timeout" content="long">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/mathml/support/feature-detection.js"></script>
<script src="/mathml/support/operator-dictionary.js"></script>
<script src="./support/operator-dictionary-tests.js"></script>
<link rel="stylesheet" href="./support/operator-dictionary-tests.css"/>
<script>
setup({ explicit_done: true });
window.addEventListener("load", () => { document.fonts.ready.then(runTests); });
async function runTests() {
let json = await fetchOperatorDictionary();
OperatorDictionaryTests.run(json, "lspace/rspace", 3);
done();
}
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>
Loading

0 comments on commit 1fbea66

Please sign in to comment.