gecko-dev/dom/mathml
Frederic Wang f833c460e4 Bug 1847177 - Rewrite mochitests for MathML console message as WPT. r=emilio,flod
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
2023-08-04 14:19:21 +00:00
..
tests/mochitest
MathMLElement.cpp Bug 1847177 - Rewrite mochitests for MathML console message as WPT. r=emilio,flod 2023-08-04 14:19:21 +00:00
MathMLElement.h Bug 1821980: Align mathvariant implementation on MathML Core. r=emilio,jfkthame 2023-07-14 19:44:04 +00:00
MathMLElementFactory.cpp
moz.build