https://bugzilla.wikimedia.org/show_bug.cgi?id=51718

       Web browser: ---
            Bug ID: 51718
           Summary: Fix selser result pass/failure detection in
                    parserTests.js
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: tests
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified
   Mobile Platform: ---

When selser runs (html2wt) on modified HTML, we have to figure out whether the
serialized wikitext is correct or not.  However, there is no original wikitext
to compare against since the DOM has been modified.

Currently, parserTests runs wt2wt on the same modified HTML and compares selser
output with wt2wt output.  wt2wt uses the regular full serializer.  This
pass/failure detection implicitly assumes that the output from wt2wt is
correct.  However, this is flawed -- it might actually be the case that selser
output is correct and wt2wt is incorrect since wt2wt might be normalizing
wikitext whereas selser wont (which is the whole point of selser, so to speak).
 This was not as much of an issue till a while back since wt2wt was normalizing
less and parserTests used to run in rt-testing mode which used src-based rting
for templates and the like.  However, this is becoming more of a problem as we
move towards greater normalization (ex: bug 51004), and when the regular
serializer no longer run in rt-testing mode.

So, we need to figure out a more robust solution to this problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to