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

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: 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
Index: testing/resources/bug_634394.in
diff --git a/testing/resources/bug_620428.in b/testing/resources/bug_634394.in
similarity index 95%
copy from testing/resources/bug_620428.in
copy to testing/resources/bug_634394.in
index 1942305173c3c9166f3cadfb75d33941322b23ff..528b4637da314def9192be2c71d081a63b45ce82 100644
--- a/testing/resources/bug_620428.in
+++ b/testing/resources/bug_634394.in
@@ -65,16 +65,16 @@ endobj
{{object 50 0}} <<
>>
stream
+var timer = app.setTimeOut("fireTimeOut()", 3000);
+var interval = app.setInterval("fireInterval()", 1000);
function fireTimeOut() {
- app.alert("hello world");
+ app.alert("goodbye world");
+ app.clearInterval(interval);
}
function fireInterval() {
- app.alert("goodbye world");
+ app.alert("hello world");
+ app.clearInterval(interval);
}
-var timer = app.setTimeOut("fireTimeOut()", 3000);
-var interval = app.setInterval("fireInterval()", 1000);
-app.clearTimeOut(timer);
-app.clearInterval(interval);
endstream
endobj
{{xref}}

Powered by Google App Engine
This is Rietveld 408576698