11 lines
291 B
Plaintext
11 lines
291 B
Plaintext
// Test: $time_limit fires timeout for a requestor that never completes
|
|
var never_complete = function(callback, value) {
|
|
return null
|
|
}
|
|
var timed = $time_limit(never_complete, 0.5)
|
|
var _t = timed(function(val, reason) {
|
|
if (val != null) disrupt
|
|
if (reason == null) disrupt
|
|
$stop()
|
|
})
|