summaryrefslogtreecommitdiff
path: root/testing/resources/bug_551248.in
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-08-03 14:03:35 -0700
committerCommit bot <commit-bot@chromium.org>2016-08-03 14:03:35 -0700
commit8e12029407cf1cca95b7f79bf5e5a5fec5bea9cb (patch)
treeb1329865ce4aeae51a71abdcacdf6bc6514e3822 /testing/resources/bug_551248.in
parent8d0cc67cdf3ef45ee7268d3e00a21c0a99843a84 (diff)
downloadpdfium-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.in')
-rw-r--r--testing/resources/bug_551248.in11
1 files changed, 7 insertions, 4 deletions
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}}