Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove need for getResultsFromServer() #4

Open
andrewroberts opened this issue Jul 31, 2020 · 0 comments
Open

Remove need for getResultsFromServer() #4

andrewroberts opened this issue Jul 31, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@andrewroberts
Copy link
Collaborator

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.

@andrewroberts andrewroberts added the enhancement New feature or request label Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant