Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
test(task): add testcases for task lifecycle
Browse files Browse the repository at this point in the history
  • Loading branch information
JiaLiPassion committed Mar 7, 2017
1 parent c576998 commit abc9a04
Show file tree
Hide file tree
Showing 5 changed files with 1,107 additions and 1 deletion.
File renamed without changes
File renamed without changes.
2 changes: 1 addition & 1 deletion doc/task.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EventTask will go back to scheduled state after invoked(running state), and will
Such as setTimeout/XMLHttpRequest, their lifecycle(state transition)
looks like this.

![onetime-MacroTask](onetime-macrotask.png "onetime MacroTask")
![non-periodical-macroTask](non-periodical-macrotask.png "non periodical macroTask")

ZoneSpec's onHasTask callback will be triggered when the first macroTask were scheduled or the
last macroTask was invoked or cancelled.
Expand Down
Loading

0 comments on commit abc9a04

Please sign in to comment.