| Summary: | PrettyPrint does not show exact output as "Actual" | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ahmad Saleem <ahmad.saleem792> |
| Component: | Tools / Tests | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED WORKSFORME | ||
| Severity: | Normal | CC: | ap, jbedard, ryanhaddad, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari Technology Preview | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Ahmad Saleem
2022-11-19 19:06:04 PST
Can this be escalated because this is causing issue in other Editing test cases as well: https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/aa512722-169005/results.html (In reply to Ahmad Saleem from comment #2) > Can this be escalated because this is causing issue in other Editing test > cases as well: > > https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/aa512722-169005/ > results.html More precisely in insert-space.html: https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/aa512722-169005/editing/inserting/insert-space-pretty-diff.html Actual show this: expected <div contenteditable>  | </div>, While PrettyPrint show  as "space", which is causing all mayhem when trying to understand what is this issue. Could you please clarify what the issue is? https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/aa512722-169005/editing/inserting/insert-space-pretty-diff.html looks like what I'd expect to me. And the pretty diff page already has <meta charset='utf-8'>. (In reply to Alexey Proskuryakov from comment #4) > Could you please clarify what the issue is? > https://ews-build.s3-us-west-2.amazonaws.com/Windows-EWS/aa512722-169005/ > editing/inserting/insert-space-pretty-diff.html looks like what I'd expect > to me. And the pretty diff page already has <meta charset='utf-8'>. My issue is that in pretty print, it show it as 'space' (might be due to UTF-8) and if you put space to change expectation, it is wrong because it is different character like  and fail again in the next run. So my "space" fails since it does not match "Actual". Should I change my expectation file, which is already in UTF-8 to UTF-8 BOM or other? Or we can fix it to show some message that PrettyPrint is in UTF-8 and refer to Actual to see correct output but change any HTML entities to UTF-8 or accordingly. Copy/pasting spaces from HTML generally isn't going to be exact. And there are many other cases where content would be transformed, such as different Unicode normalizations, newlines, other invisible characters. In this particular case, these are all spaces, just different ones (regular vs. non-breaking space U+00A0). The usual workflow for updating expectations is downloading actual results file, and saving it as -expected.txt, not manually editing file based on pretty diff. It was me being stupid and downloading 'Actual' file and then using to do rebaselining is correct way. Marking this 'RESOLVED WORKSFORME'. Thanks! |