Partial Test For `nsXHTMLContentSerializer::IsShorthandAttr(const nsAtom* aAttrName, const nsAtom* aElementName)` When `(aAttrName == nsGkAtoms::nowrap) && (aElementName == nsGkAtoms::td || aElementName == nsGkAtoms::th)`
Categories
(Core :: DOM: Serializers, enhancement)
Tracking
()
People
(Reporter: c.e.brandt, Unassigned)
Details
Attachments
(3 files)
This report is part of a research collaboration between Mozilla and the TU Delft.
If you want to help us understand whether this report is helpful,
please answer a few questions before you start addressing the report.
If you would rather talk to us or show your process on screen, you can schedule a call (write Carolin at c.e.brandt@tudelft.nl) or upload a screen recording.
We created a test case that executes the not-yet-tested code block at https://searchfox.org/mozilla-central/source/dom/serializers/nsXHTMLContentSerializer.cpp#508.
However, the test is missing a functional check (is(..)
or ok(..)
) to check that the behavior of the code block is correct.
Please complete the test and add it to the test suite, if you think it is worth to do so.
In the attachments we provide the generated test (test.html
).
It reaches the targeted code block through the stacktrace in stacktrace.txt
.
We also provide some additional generated tests that target the same location (alternative_test_N.html
).
Reporter | ||
Comment 1•2 years ago
|
||
Reporter | ||
Comment 2•2 years ago
|
||
Reporter | ||
Comment 3•2 years ago
|
||
Future changes could make the searchfox link invalid.
Here is a permalink to the code targeted by our test case: https://searchfox.org/mozilla-central/rev/00ea1649b59d5f427979e2d6ba42be96f62d6e82/dom/serializers/nsXHTMLContentSerializer.cpp#508
Description
•