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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « fpdfsdk/javascript/JS_Object.cpp ('k') | testing/resources/bug_634394.pdf » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {{header}} 1 {{header}}
2 {{object 1 0}} << 2 {{object 1 0}} <<
3 /Type /Catalog 3 /Type /Catalog
4 /Pages 2 0 R 4 /Pages 2 0 R
5 /AcroForm 6 0 R 5 /AcroForm 6 0 R
6 /Names <</JavaScript 13 0 R>> 6 /Names <</JavaScript 13 0 R>>
7 >> 7 >>
8 endobj 8 endobj
9 {{object 2 0}} << 9 {{object 2 0}} <<
10 /Type /Pages 10 /Type /Pages
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 /JS 50 0 R 58 /JS 50 0 R
59 >> 59 >>
60 endobj 60 endobj
61 {{object 13 0}} << 61 {{object 13 0}} <<
62 /Names [(startDelay) 11 0 R] 62 /Names [(startDelay) 11 0 R]
63 >> 63 >>
64 endobj 64 endobj
65 {{object 50 0}} << 65 {{object 50 0}} <<
66 >> 66 >>
67 stream 67 stream
68 var timer = app.setTimeOut("fireTimeOut()", 3000);
69 var interval = app.setInterval("fireInterval()", 1000);
68 function fireTimeOut() { 70 function fireTimeOut() {
69 app.alert("timer fired"); 71 app.alert("goodbye world");
72 app.clearInterval(interval);
70 } 73 }
71 function fireInterval() { 74 function fireInterval() {
72 app.alert("interval fired"); 75 app.alert("hello world");
76 app.clearInterval(interval);
73 } 77 }
74 app.setTimeOut("fireTimeOut()", 3000);
75 app.setInterval("fireInterval()", 2000);
76 endstream 78 endstream
77 endobj 79 endobj
78 {{xref}} 80 {{xref}}
79 trailer << 81 trailer <<
80 /Root 1 0 R 82 /Root 1 0 R
81 >> 83 >>
82 {{startxref}} 84 {{startxref}}
83 %%EOF 85 %%EOF
OLDNEW
« 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