Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Unified Diff: testing/resources/bug_634394.in

Issue 2214003003: Fix issue when firing TimerProc() destroys timer (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fpdfsdk/javascript/JS_Object.cpp ('k') | testing/resources/bug_634394.pdf » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/resources/bug_634394.in
diff --git a/testing/resources/bug_551248.in b/testing/resources/bug_634394.in
similarity index 81%
copy from testing/resources/bug_551248.in
copy to testing/resources/bug_634394.in
index c577824873777fffee9f6a42dda0d31b07b32ff1..528b4637da314def9192be2c71d081a63b45ce82 100644
--- a/testing/resources/bug_551248.in
+++ b/testing/resources/bug_634394.in
@@ -65,14 +65,16 @@ endobj
{{object 50 0}} <<
>>
stream
+var timer = app.setTimeOut("fireTimeOut()", 3000);
+var interval = app.setInterval("fireInterval()", 1000);
function fireTimeOut() {
- app.alert("timer fired");
+ app.alert("goodbye world");
+ app.clearInterval(interval);
}
function fireInterval() {
- app.alert("interval fired");
+ app.alert("hello world");
+ app.clearInterval(interval);
}
-app.setTimeOut("fireTimeOut()", 3000);
-app.setInterval("fireInterval()", 2000);
endstream
endobj
{{xref}}
« no previous file with comments | « fpdfsdk/javascript/JS_Object.cpp ('k') | testing/resources/bug_634394.pdf » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698