Closed Bug 1607043 Opened 3 years ago Closed 3 years ago

[wpt-sync] Sync PR 21041 - Expand tests for DOMParser

Categories

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

task

Tracking

()

RESOLVED FIXED
mozilla74
Tracking Status
firefox74 --- fixed

People

(Reporter: mozilla.org, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 21041 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/21041
Details from upstream follow.

Domenic Denicola <d@domenic.me> wrote:

Expand tests for DOMParser

This tests the resulting Document's:

  • URL (under a large variety of conditions)
  • content type (for parser errors, which were not tested previously)
  • compatMode

This largely supercedes @Ms2ger's https://github.com/web-platform-tests/wpt/pull/15548, which never got review 😢. However it doesn't include navigation tests as I wasn't able to easily fit those into the framework I was using. It does reveal some things that his tests don't, which is that Gecko uses the document's base URL, whereas Chromium uses the document's URL. I haven't been able to test Safari yet so I'm not sure which direction the spec should go.

I will be posting a HTML spec PR for moving DOMParser there shortly.

Component: web-platform-tests → DOM: Core & HTML
Product: Testing → Core
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → INVALID
Status: RESOLVED → REOPENED
Resolution: INVALID → ---

CI Results

Ran 13 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 47 tests

Status Summary

Firefox

OK : 8
PASS: 137[GitHub] 176[Gecko-android-em-7.0-x86_64-debug-geckoview, Gecko-android-em-7.0-x86_64-opt-geckoview, Gecko-linux64-asan-opt, Gecko-linux64-debug, Gecko-linux64-opt, Gecko-linux64-qr-debug, Gecko-linux64-qr-opt, Gecko-windows10-64-debug, Gecko-windows10-64-opt, Gecko-windows10-64-qr-debug, Gecko-windows10-64-qr-opt, Gecko-windows7-32-debug, Gecko-windows7-32-opt]
FAIL: 98

Chrome

OK : 8
PASS: 223
FAIL: 12

Safari

OK : 8
PASS: 221
FAIL: 14

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

Firefox-only Failures

/domparsing/DOMParser-parseFromString-url-base-pushstate.html
image/svg+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml valid: created normally: FAIL
text/xml valid: created normally: FAIL
application/xhtml+xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xhtml+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xml valid: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created using another iframe's DOMParser from this frame: FAIL
image/svg+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
text/xml valid: created using another iframe's DOMParser from this frame: FAIL
image/svg+xml invalid XML: created normally: FAIL
text/xml valid: created using a parser from this frame and the method from the iframe: FAIL
text/xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml invalid XML: created normally: FAIL
application/xhtml+xml valid: created normally: FAIL
text/html valid: created using another iframe's DOMParser from this frame: FAIL
text/xml invalid XML: created normally: FAIL
text/html valid: created normally: FAIL
text/xml valid: created using another iframe's DOMParser from that frame: FAIL
application/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xhtml+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml valid: created using another iframe's DOMParser from this frame: FAIL
application/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
application/xhtml+xml valid: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created using a parser from the iframe and the method from this frame: FAIL
text/html valid: created using a parser from this frame and the method from the iframe: FAIL
image/svg+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
text/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
text/html valid: created using another iframe's DOMParser from that frame: FAIL
application/xhtml+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xml invalid XML: created normally: FAIL
application/xhtml+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created normally: FAIL
image/svg+xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
image/svg+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml valid: created using another iframe's DOMParser from this frame: FAIL
text/html valid: created using a parser from the iframe and the method from this frame: FAIL
image/svg+xml valid: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
/domparsing/DOMParser-parseFromString-url-base.html
image/svg+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml valid: created normally: FAIL
text/xml valid: created normally: FAIL
application/xhtml+xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xhtml+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xml valid: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created using another iframe's DOMParser from this frame: FAIL
image/svg+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
text/xml valid: created using another iframe's DOMParser from this frame: FAIL
image/svg+xml invalid XML: created normally: FAIL
text/xml valid: created using a parser from this frame and the method from the iframe: FAIL
text/xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml invalid XML: created normally: FAIL
application/xhtml+xml valid: created normally: FAIL
text/html valid: created using another iframe's DOMParser from this frame: FAIL
text/xml invalid XML: created normally: FAIL
text/html valid: created normally: FAIL
text/xml valid: created using another iframe's DOMParser from that frame: FAIL
application/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xhtml+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml valid: created using another iframe's DOMParser from this frame: FAIL
application/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
application/xhtml+xml valid: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created using a parser from the iframe and the method from this frame: FAIL
text/html valid: created using a parser from this frame and the method from the iframe: FAIL
image/svg+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
text/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
text/html valid: created using another iframe's DOMParser from that frame: FAIL
application/xhtml+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xml invalid XML: created normally: FAIL
application/xhtml+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
image/svg+xml valid: created normally: FAIL
image/svg+xml valid: created using a parser from this frame and the method from the iframe: FAIL
application/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL
application/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL
image/svg+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL
application/xml valid: created using a parser from the iframe and the method from this frame: FAIL
application/xhtml+xml valid: created using another iframe's DOMParser from this frame: FAIL
text/html valid: created using a parser from the iframe and the method from this frame: FAIL
image/svg+xml valid: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL
text/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL

New Tests That Don't Pass

/domparsing/DOMParser-parseFromString-url-base-pushstate.html
image/svg+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
/domparsing/DOMParser-parseFromString-xml.html
XMLDocument interface for correctly parsed document with type application/xhtml+xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for correctly parsed document with type text/xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for correctly parsed document with type image/svg+xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for incorrectly parsed document with type application/xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for incorrectly parsed document with type image/svg+xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for correctly parsed document with type application/xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for incorrectly parsed document with type text/xml: FAIL (Chrome: FAIL, Safari: FAIL)
XMLDocument interface for incorrectly parsed document with type application/xhtml+xml: FAIL (Chrome: FAIL, Safari: FAIL)
/domparsing/DOMParser-parseFromString-url-base.html
image/svg+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
text/xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created normally: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created normally: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml invalid XML: created using a parser from this frame and the method from the iframe: FAIL (Chrome: PASS, Safari: PASS)
application/xml valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
application/xhtml+xml valid: created using another iframe's DOMParser from this frame: FAIL (Chrome: PASS, Safari: PASS)
text/html valid: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)
image/svg+xml valid: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using another iframe's DOMParser from that frame: FAIL (Chrome: PASS, Safari: PASS)
text/xml invalid XML: created using a parser from the iframe and the method from this frame: FAIL (Chrome: PASS, Safari: PASS)

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/860d7fae7c79
[wpt PR 21041] - Expand tests for DOMParser, a=testonly
https://hg.mozilla.org/integration/autoland/rev/7d069665dd06
[wpt PR 21041] - Update wpt metadata, a=testonly
Status: REOPENED → RESOLVED
Closed: 3 years ago3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla74
You need to log in before you can comment on or make changes to this bug.