summaryrefslogtreecommitdiff
path: root/samples/pdfium_test.cc
diff options
context:
space:
mode:
authorJochen Eisinger <jochen@chromium.org>2015-07-15 14:28:17 +0200
committerJochen Eisinger <jochen@chromium.org>2015-07-15 14:28:17 +0200
commit304578020122cc4d2a4a8c1598694ef2b9be92b5 (patch)
tree5019b20f0b7f8c97b40b282525be89d8232df804 /samples/pdfium_test.cc
parent759247991b5f1df71335294e6bfe3e3fe7aec7b4 (diff)
downloadpdfium-304578020122cc4d2a4a8c1598694ef2b9be92b5.tar.xz
Pump the v8 message loop in tests
R=tsepez@chromium.org, ulan@chromium.org BUG=none Review URL: https://codereview.chromium.org/1230393006 .
Diffstat (limited to 'samples/pdfium_test.cc')
-rw-r--r--samples/pdfium_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 5147266c99..be126149ac 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -616,6 +616,8 @@ int main(int argc, const char* argv[]) {
if (!file_contents)
continue;
RenderPdf(filename, file_contents, file_length, options);
+ while (v8::platform::PumpMessageLoop(platform, v8::Isolate::GetCurrent()))
+ continue;
free(file_contents);
}