Skip to content
This repository has been archived by the owner on Jul 6, 2021. It is now read-only.

Entries: Added assert.async. Deprecated start, stop, and asyncTest #82

Closed
wants to merge 3 commits into from
Closed

Entries: Added assert.async. Deprecated start, stop, and asyncTest #82

wants to merge 3 commits into from

Conversation

JamesMGreene
Copy link
Member

Fixes #79
Fixes #74
Fixes #73
Fixes #72

Closes #82

@JamesMGreene JamesMGreene added this to the 1.16 milestone Sep 12, 2014
</desc>
<longdesc>
<p class="warning">
This method is <strong>deprecated</strong>. It is recommended to use <a href="/QUnit.test/"><code>QUnit.test()</code></a> in conjunction with <a href="/async/"><code>assery.async()</code></a> instead.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assery should be assert

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also remove "recommended", should be "Use xxx instead"

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated for all 3 deprecated items.

@jzaefferer
Copy link
Member

Let's remove the examples.

@JamesMGreene
Copy link
Member Author

Deprecated examples have all been removed.

});
QUnit.config.autostart = false;

require(["test/tests1.js", "test/tests2.js"], QUnit.start);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The existing AMD example explicitly calls QUnit.start() without any arguments. What happens when requirejs et al actually pass an argument to QUnit.start in this usage?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, it would be best to avoid that.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

<entry type="method" name="async">
<title>async()</title>
<desc>
Request a new resolution callback for an asynchronous operation.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sounds weird. It makes sense after reading it three times, but I think we can do better. Especially the "request a resolution" throws me off. Longdesc uses the same terms, so my issue applies there as well.

Maybe look at grunt async() docs for some inspiration?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jzaefferer
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
2 participants