napajs/unittest
Zhang Lei a8d23e0d37
Timers related function, set/clear Immediate/Timeout/Interval (#207)
* Set/Clear Immedidate/Timeout/Interval.

* add test case for napa set/clear Immediate/Timeout/Interval.

* Fix build error on windows for Timer related.

* Fix timer queue loop wait too long on new urgent tasks.
More robust timer-test.

* More tolerant on timer scheduler error.

* Fix windows build break using node 6.

* Tolerant more on timer schedule error special in auto build environment.

* Using strick js function tradition in Binding export functions on timer.

* change module name from timer to timers.

* make timers a buildin module.

* Remove non-used code line caused by copy/paste

* Do not need varible arguments here when constructing Timeout.

* Free persistent handles saved for timers at correct time point.

* Add test program under misc/ to check the memory usage on timers.

* Fix build break under node 6 for v8 SetWeak api.
Free timer early when it is not used.

* Add condition on immediate where no timer is attached to Timeout.

* Remove release timer in advance.

* Reset to release persistent handle.

* Group timers test under napa/timers

* typo fix

* Add SchedulePhase to generalize immediate/normal task types and keep expansion for future.

* Remove internal memeroy test scripts

* Some name style changes according to review suggestions.

* modify unittest on worker schedule interface changed.

* Force node 8.9.4 to avoid auto build test tools fail on new node 8.10.0 temperately.

* Force windows build use node 8.9.4 to avoid 8.10.0 crash issue temperately.

* Force OSX build use node 8.9.4 to avoid node 8.10.0 crash issue temperately.

* Run timer related test in another standalone mocha.
So that timer scheduler error not affected by other tests.

* revert back node version related changes.

* fix commandline issue on windows

* Force OSX build use node 8.9.4 to avoid node 8.10.0 crash issue temperately.

* revert osx node version on 8.9.4

* working 1

* working binding build 2

* remove static function getzoneScheduler

* Hide CallbackTask inside cpp. Add more comments. And some other modifications according to review.

* Refactor the napa-bingding build related changes. Do not add any
timers logic into napa-binding.node, so original build works without
add the timer-warpper.cpp into its source.

* fix typo in comments.
2018-04-04 16:47:03 -07:00
..
module Add cache for ModuleResolver (#128) 2017-11-13 11:41:04 -08:00
platform Merged PR 327505: Merge dev/dapeng/license to master 2017-07-19 00:29:19 +00:00
settings Fix build warning: ISO C++ forbids converting a string constant to ‘char*’ (#112) 2017-11-02 23:44:14 -07:00
utils Merged PR 327505: Merge dev/dapeng/license to master 2017-07-19 00:29:19 +00:00
zone Timers related function, set/clear Immediate/Timeout/Interval (#207) 2018-04-04 16:47:03 -07:00
CMakeLists.txt Fix unittest build break in Clang (#189) 2018-02-01 17:17:07 -08:00
main.cpp Merged PR 327505: Merge dev/dapeng/license to master 2017-07-19 00:29:19 +00:00
run.js Merged PR 327505: Merge dev/dapeng/license to master 2017-07-19 00:29:19 +00:00