Re-enable successful tests.
[pdfium.git] / testing / embedder_test.cpp
index 6d9907e..447b4d1 100644 (file)
@@ -170,11 +170,9 @@ void EmbedderTest::SetUp() {
 void EmbedderTest::TearDown() {
   if (document_) {
     FORM_DoDocumentAAction(form_handle_, FPDFDOC_AACTION_WC);
-    FPDF_CloseDocument(document_);
     FPDFDOC_ExitFormFillEnvironment(form_handle_);
+    FPDF_CloseDocument(document_);
   }
-  while (v8::platform::PumpMessageLoop(platform_, v8::Isolate::GetCurrent()))
-    continue;
   FPDFAvail_Destroy(avail_);
   FPDF_DestroyLibrary();
   v8::V8::ShutdownPlatform();