Open Bug 1816862 Opened 2 years ago Updated 1 year ago

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)

enhancement

Tracking

()

UNCONFIRMED

People

(Reporter: c.e.brandt, Unassigned)

Details

Attachments

(3 files)

Attached file test.html

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).

Attached file stacktrace.txt

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

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: