diff options
author | tsepez <tsepez@chromium.org> | 2016-08-03 14:03:35 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-08-03 14:03:35 -0700 |
commit | 8e12029407cf1cca95b7f79bf5e5a5fec5bea9cb (patch) | |
tree | b1329865ce4aeae51a71abdcacdf6bc6514e3822 /testing/resources/bug_551248.pdf | |
parent | 8d0cc67cdf3ef45ee7268d3e00a21c0a99843a84 (diff) | |
download | pdfium-8e12029407cf1cca95b7f79bf5e5a5fec5bea9cb.tar.xz |
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
Diffstat (limited to 'testing/resources/bug_551248.pdf')
-rw-r--r-- | testing/resources/bug_551248.pdf | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/testing/resources/bug_551248.pdf b/testing/resources/bug_551248.pdf index cca1872ee7..dea541a8de 100644 --- a/testing/resources/bug_551248.pdf +++ b/testing/resources/bug_551248.pdf @@ -66,11 +66,14 @@ endobj 50 0 obj << >> 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 @@ -130,5 +133,5 @@ trailer << /Root 1 0 R >> startxref -954 +1055 %%EOF |