[Webkit-unassigned] [Bug 207731] New: WPT test importer breaks some tests that contain non UTF8 characters
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Feb 13 16:56:08 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=207731
Bug ID: 207731
Summary: WPT test importer breaks some tests that contain non
UTF8 characters
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: clopez at igalia.com
The WPT test importer tries to rewrite some content inside imported tests, like for example:
1. We are adding "<!-- webkit-test-runner -->" comments to enable switches for experimental features
2. We are rewriting preffixes of some CSS properties to add a "-webkit" prefix. For example, we change "backface-visibility:" to "-webkit-backface-visibility:" or "user-select:" to "-webkit-user-select:"
3. We are rewriting the name of the test domains from "{{domains[www]}}" to "{{hosts[alt][]}}"
4. We are removing some JS scripts. See '<script src="testlib/testlib.js">' removed for example from test html/semantics/scripting-1/the-script-element/execution-timing/106-import.html
And more things...
To do that, we are parsing the files as UTF8 text, modifying the text of the test and writing it back.
But in the process of doing that we are making unwanted changes, sometimes breaking tests.
For example: the tests imported/w3c/web-platform-tests/encoding/eof-utf-8-one.html imported/w3c/web-platform-tests/encoding/eof-utf-8-three.html imported/w3c/web-platform-tests/encoding/eof-utf-8-two.html contain non-UTF8 byte truncated secuences at the end that are essential to those tests and the test importer removes that because of the fact that it reads the original file as UTF8 and then writes the parsed buffer to the destination.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200214/54d96cfd/attachment.htm>
More information about the webkit-unassigned
mailing list