Skip to content

Remove need for getResultsFromServer() #4

@andrewroberts

Description

@andrewroberts

Although the doGet() runs the test functions, the actual results are returned from the original QUnit library by various callback functions as JSON strings. These callbacks don't run until after the original doGet function has finished, so the doGet simply constructs the skeleton of the UI and the callbacks store the results in user cache ready to be retrieved by an async call from within the client-side UI. The success handler of this client-side call constructs the HTML to display the test results in the UI.

Because the client-side function - window.onload - is making a server-side call from within a library that getResultsFromServer() function has to be a global in the script project calling the library.

The QUnitGS2 library would need to be copied into the calling script to get around this at the moment, but a deeper dive into the original QUnit library may find a way around it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions