Ticket #1442 (new defect)

Opened 11 months ago

Change client (P)IDs to be predictable (for TT)

Reported by: Marc Englund Owned by: Joonas Lehtinen
Priority: major Milestone: Testing Tools Backlog
Component: gwt-adapter-client Version:
Keywords: Cc:
Known Issue description:
Hours estimate: 3 Deadline (dd.mm.yyyy):
Known Issue version (since): Known Issue title:
Hours done: Depends to:
Affects documentation: no
Known Issue workaround:
Affects release notes: yes Contract:

Description

TestingTools? would work better if (DOM) id:s were predictable. This is trivial to implement, something like:

Change ApplicationConnection?, if in testing mode, generate IDs sequentially (not from PID), except static pid:s that should be passed trough. Implement in ApplicationConnection?, about line 667:

        if (usePaintableIdsInDOM) {
            DOM.setElementProperty(component.getElement(), "id",
                   SOMETHING ELSE);
        }

If not PID_S increment by one and put in idToPid map.

End result should be id:s that start from 0 even if reloading. This would also allow us to use random pids serverside.

(proof-of-concept tested, just needs proper impl and some real testing)

Note: See TracTickets for help on using tickets.