Re-enable successful tests.
[pdfium.git] / testing / embedder_test.cpp
index ba33ca6..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();
@@ -214,7 +212,7 @@ bool EmbedderTest::OpenDocument(const std::string& filename) {
 
   IPDF_JSPLATFORM* platform = static_cast<IPDF_JSPLATFORM*>(this);
   memset(platform, 0, sizeof(IPDF_JSPLATFORM));
-  platform->version = 1;
+  platform->version = 2;
   platform->app_alert = AlertTrampoline;
 
   FPDF_FORMFILLINFO* formfillinfo = static_cast<FPDF_FORMFILLINFO*>(this);