Closed Bug 1847177 Opened 11 months ago Closed 11 months ago

Rewrite mochitests for MathML console message as WPT

Categories

(Core :: MathML, task)

task

Tracking

()

RESOLVED FIXED
118 Branch
Tracking Status
firefox118 --- fixed

People

(Reporter: fredw, Assigned: fredw)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

No description provided.

The warning message for deprecated math space values is tweaked a bit so
that the actual attribute value that triggered it is reported. This
provides correct message for 'negative*mathspace' values.

test_bug1845461.html, test_bug553917.html and test_bug827713-2.html are
rewritten as an internal testharness WPT test, with the following
modifications:

  • Preferences are forced in the ini file, avoiding issues that happened
    in the past due to inconsistent values for Nightly and Beta.
    dom.use_components_shim is set to prevent the deprecation message for
    the Components object and confuse the test (bug 1845910).
    legacy_mathvariant_attribute and mathspace_names are disabled to
    to properly test deprecated mathvariant and math space values.

  • Console messages are triggered inside an iframe, allowing to test
    multiple source codes for the same deprecation warning. In particular,
    all mathvariant and named space values are now tested.

  • Helper testMessageForMarkup/testNoMessageForMarkup functions are
    introduced to easily test some markup and improve readability.
    The expected message is provided as a regexp argument for more
    flexibility and severity level (error or warning) is verified.

  • It's not clear why the tests for InvalidChild don't test msup or why
    they use this specific number of children. Keep them but add new ones
    for msub/msub/msubsup with the usual number of children.

Attachment #9347335 - Attachment description: Bug 1847177 - Rewrite mochitests for MathML console message as WPT. r=emilio → Bug 1847177 - Rewrite mochitests for MathML console message as WPT. r=emilio,flod
Pushed by fred.wang@free.fr:
https://hg.mozilla.org/integration/autoland/rev/dd8c7df0376e
Rewrite mochitests for MathML console message as WPT. r=emilio,flod
Status: NEW → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 118 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: