mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-22 18:32:00 +00:00

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. Differential Revision: https://phabricator.services.mozilla.com/D185399