Fix V8 isolate setup in embedder tests and roll V8 to 055bfa7.

R=thestig@chromium.org
BUG=

Review-Url: https://codereview.chromium.org/2019383002
diff --git a/testing/embedder_test.cpp b/testing/embedder_test.cpp
index 033313d..3d3b2ad 100644
--- a/testing/embedder_test.cpp
+++ b/testing/embedder_test.cpp
@@ -58,7 +58,12 @@
 #endif  // FPDF_ENABLE_V8
 }
 
-EmbedderTest::~EmbedderTest() {}
+EmbedderTest::~EmbedderTest() {
+#ifdef PDF_ENABLE_V8
+  v8::V8::ShutdownPlatform();
+  delete platform_;
+#endif  // PDF_ENABLE_V8
+}
 
 void EmbedderTest::SetUp() {
   FPDF_LIBRARY_CONFIG config;
@@ -93,11 +98,6 @@
   FPDFAvail_Destroy(avail_);
   FPDF_DestroyLibrary();
 
-#ifdef PDF_ENABLE_V8
-  v8::V8::ShutdownPlatform();
-  delete platform_;
-#endif  // PDF_ENABLE_V8
-
   delete loader_;
 }