Closed Bug 1907901 Opened 1 year ago Closed 1 year ago

Text-Fragments: Split up non-html-documents.html test file

Categories

(Core :: DOM: Core & HTML, task)

task

Tracking

()

RESOLVED FIXED
130 Branch
Tracking Status
firefox130 --- fixed

People

(Reporter: jjaschke, Assigned: jjaschke)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

The tests in non-html-documents.html rely on the onload event being fired, which apparently does not happen in Gecko (see Bug 1905106). This makes the test timeout for JSON documents. Additionally, there are CI configurations which run so slow that other tests in that file may time out. Setting <meta name=timeout value=long> won't fix this properly because the JSON test is expected to time out.

To fix this, let's move the JSON test case into its own test file, mark it as expected: TIMEOUT, and add <meta name=timeout content=long> to the other test file to give them more time.

The test to check if scrolling is allowed in non-html documents times out for JSON,
because it depends on the onload event, which Gecko is not firing for JSON (Bug 1905106).

Additionally, other test cases in that file can time out on CI as well.

With this patch, the JSON test case is separated into its own file and is expected to TIMEOUT. The other test cases get a longer timeout so that they pass in all configurations.

Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/72e40f9471c4 Text Fragments: Separate json test case to let others pass. r=dom-core,sefeng
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/47128 for changes under testing/web-platform/tests

Backed out for causing Android wpt failures in non-html-documents.html.

  • Backout link
  • Push with failures
  • Failure Log
  • Failure line: TEST-UNEXPECTED-FAIL | /scroll-to-text-fragment/non-html-documents.html | Text directive allowed in text/plain - assert_equals: scrolled to fragment expected true but got false
Flags: needinfo?(jjaschke)
Upstream PR was closed without merging
Backout by nfay@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/b41d6cd8b9c0 Backed out changeset 72e40f9471c4 for causing Android wpt failures in non-html-documents.html. CLOSED TREE
Pushed by jjaschke@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7c0948ba9ac8 Text Fragments: Separate json test case to let others pass. r=dom-core,sefeng

Android doing android things... sorry. Should be good now.

Flags: needinfo?(jjaschke)
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 130 Branch
Regressions: 1908277
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: