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

            Bug ID: 72398
           Summary: VisualEditor: Actually run tests for MWHeadingNode /
                    MWPreformattedNode
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Technical Debt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

Right now we have a hack in ve.test.utils.js that reregisters the core versions
of HeadingNode and PreformattedNode to ensure MWHeadingNode and
MWPreformattedNode aren't used, because using them would break the VE core
tests when run in VE-MW.

This is horrible, because it makes us unable to test specific behavior in the
MW nodes. For instance, https://gerrit.wikimedia.org/r/#/c/162310/3 fails its
own tests because those tests use HeadingNode rather than MWHeadingNode, even
though the tests in question were clearly designed to use MWHeadingNode.

We should come up with a way that MW nodes can be not registered for code
tests, but be registered for MW tests.

-- 
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