I'm trying to create a jQuery UI wrapper for my PHP project. I'm using QUnit for unit-testing JavaScript codes.
I want to test if my wrapper functions for jQuery UI dialog are working ok, that is, if the dialog-box is actually opens as intended.
What is the standard way to check if a dialog is working normally? I found that the "dialog" method is returning its object when the operation is successful and "undefined" when it fails for some reason. Is this safe to assume those results as reliable source for testing? Thanks a lot.