Closed Bug 1546319 Opened 8 months ago Closed 8 months ago

Missing Get Element Property tests for mutated web content

Categories

(Testing :: Marionette, enhancement, P1)

Version 3
enhancement

Tracking

(firefox68 fixed)

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: ato, Assigned: ato)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

We have quite few tests for Get Element Property in general, but
specifically we’re missing tests for returning properties that have
been mutated by executed scripts.

Blocks: 1544906
Assignee: nobody → ato
Status: NEW → ASSIGNED
Priority: -- → P1

Nothing remarkable in this patch.

There are approximately zero coverage for properties modified or set
by web content and through script evaluation. The only succcess
path test for Get Element Property is test_element, but it checks
an attribute already present in the prototype of the HTMLInputElement.

This patch adds tests where the property is defined through web
content. This uncovers a defect in Firefox, where Get Element
Property seemingly operates on the initial value of the attribute.

Pushed by atolfsen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f81199595401
webdriver: sanitise get_element_property/get.py; r=automatedtester
https://hg.mozilla.org/integration/autoland/rev/728a88d61132
webdriver: add Get Element Property tests for mutated web content; r=automatedtester
Status: ASSIGNED → RESOLVED
Closed: 8 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/16526 for changes under testing/web-platform/tests
Upstream PR merged
You need to log in before you can comment on or make changes to this bug.