test: update tests after internal api change
Commit 0aa1335 changes the way timeout events are dispatched. Update two tests that still used the old way.
This commit is contained in:
parent
ab5dabf876
commit
a1ea8a27e6
@ -3,4 +3,4 @@
|
|||||||
^
|
^
|
||||||
ReferenceError: undefined_reference_error_maker is not defined
|
ReferenceError: undefined_reference_error_maker is not defined
|
||||||
at null._onTimeout (*test*message*timeout_throw.js:*:*)
|
at null._onTimeout (*test*message*timeout_throw.js:*:*)
|
||||||
at Timer.listOnTimeout [as ontimeout] (timers.js:*:*)
|
at Timer.listOnTimeout (timers.js:*:*)
|
||||||
|
@ -24,12 +24,13 @@ var assert = require('assert');
|
|||||||
|
|
||||||
var timeouts = 0;
|
var timeouts = 0;
|
||||||
var Timer = process.binding('timer_wrap').Timer;
|
var Timer = process.binding('timer_wrap').Timer;
|
||||||
|
var kOnTimeout = Timer.kOnTimeout;
|
||||||
|
|
||||||
var t = new Timer();
|
var t = new Timer();
|
||||||
|
|
||||||
t.start(1000, 0);
|
t.start(1000, 0);
|
||||||
|
|
||||||
t.ontimeout = function() {
|
t[kOnTimeout] = function() {
|
||||||
timeouts++;
|
timeouts++;
|
||||||
console.log('timeout');
|
console.log('timeout');
|
||||||
t.close();
|
t.close();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user