| Index: testing/resources/bug_620428.in
|
| diff --git a/testing/resources/bug_620428.in b/testing/resources/bug_620428.in
|
| index 1942305173c3c9166f3cadfb75d33941322b23ff..050488b1eeaab685802fbed9299a241a56131f35 100644
|
| --- a/testing/resources/bug_620428.in
|
| +++ b/testing/resources/bug_620428.in
|
| @@ -73,8 +73,22 @@ function fireInterval() {
|
| }
|
| var timer = app.setTimeOut("fireTimeOut()", 3000);
|
| var interval = app.setInterval("fireInterval()", 1000);
|
| +// Clear timers before they fire.
|
| app.clearTimeOut(timer);
|
| app.clearInterval(interval);
|
| +// Check that clearing a cleared timer is ok.
|
| +app.clearTimeOut(timer);
|
| +app.clearInterval(interval);
|
| +// Check that invoking the wrong clear method is ok
|
| +var timer = app.setTimeOut("fireTimeOut()", 3000);
|
| +var interval = app.setInterval("fireInterval()", 1000);
|
| +app.clearTimeOut(interval);
|
| +app.clearInterval(timer);
|
| +// Check that clearing a non-timer is ok.
|
| +app.clearTimeOut({"size": 42});
|
| +app.clearInterval({"size": 42});
|
| +// Be sure all of this code ran to completion.
|
| +app.alert("done");
|
| endstream
|
| endobj
|
| {{xref}}
|
|
|