From 8e12029407cf1cca95b7f79bf5e5a5fec5bea9cb Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 3 Aug 2016 14:03:35 -0700 Subject: Add test for bug 620428 (setinterval cancellation) While we're at it, beef up existing test for non-cancellation. In turn, fix test harness to implement intervals properly. In turn, fix public documentation to be clearer about timers. Also rename a few identifiers that sounded "off". Review-Url: https://codereview.chromium.org/2211513002 --- testing/resources/bug_551248.in | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'testing/resources/bug_551248.in') diff --git a/testing/resources/bug_551248.in b/testing/resources/bug_551248.in index ad10e93912..c577824873 100644 --- a/testing/resources/bug_551248.in +++ b/testing/resources/bug_551248.in @@ -65,11 +65,14 @@ endobj {{object 50 0}} << >> stream -function startDelay() -{ - app.alert("hello world"); +function fireTimeOut() { + app.alert("timer fired"); } -app.setTimeOut("startDelay()", 3000); +function fireInterval() { + app.alert("interval fired"); +} +app.setTimeOut("fireTimeOut()", 3000); +app.setInterval("fireInterval()", 2000); endstream endobj {{xref}} -- cgit v1.2.3