Sha256: f0dfc13ce954cccd17b806f5f6e4e58f9238115f121537316d1057759a0e48a2
Contents?: true
Size: 615 Bytes
Versions: 22
Compression:
Stored size: 615 Bytes
Contents
<% content_for('final') do %> <script> Test.context("Timer.invalidate", { "invalidate immediately should never execute": function() { var fired = NO ; SC.runLoop.beginRunLoop() ; var start = SC.runLoop.get('startTime') ; var t = SC.Timer.schedule({ target: this, action: function() { fired = YES ; }, interval: 100 }); t.invalidate() ; SC.runLoop.endRunLoop() ; var checks = 10 ; wait(1500, function() { assertEqual(NO, fired) ; }) ; } // using invalidate on a repeating timer is tested in schedule(). }); </script> <% end %>
Version data entries
22 entries across 22 versions & 1 rubygems