[Chromium] Give webkit_support a chance to reset state between layout test runs
authorpilgrim@chromium.org <pilgrim@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 05:52:09 +0000 (05:52 +0000)
committerpilgrim@chromium.org <pilgrim@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 Jan 2013 05:52:09 +0000 (05:52 +0000)
https://bugs.webkit.org/show_bug.cgi?id=107132

Reviewed by Adam Barth.

We currently only have need for this on OS(ANDROID), but now it
would be useful to have a hook for resetting state on all
platforms. Will soon be using this for IDBFactory initialization.

* DumpRenderTree/chromium/TestShell.cpp:
(TestShell::resetTestController): Call webkit_support::ResetTestEnvironment()

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140653 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/DumpRenderTree/chromium/TestShell.cpp

index 318c06e..73f7262 100644 (file)
@@ -1,3 +1,17 @@
+2013-01-23  Mark Pilgrim  <pilgrim@chromium.org>
+
+        [Chromium] Give webkit_support a chance to reset state between layout test runs
+        https://bugs.webkit.org/show_bug.cgi?id=107132
+
+        Reviewed by Adam Barth.
+
+        We currently only have need for this on OS(ANDROID), but now it
+        would be useful to have a hook for resetting state on all
+        platforms. Will soon be using this for IDBFactory initialization.
+
+        * DumpRenderTree/chromium/TestShell.cpp:
+        (TestShell::resetTestController): Call webkit_support::ResetTestEnvironment()
+
 2013-01-23  Alan Cutter  <alancutter@chromium.org>
 
         QueueStatusServer crashes in production on next-patch
index 6d1c959..799599d 100644 (file)
@@ -334,9 +334,6 @@ void TestShell::resetTestController()
 #if ENABLE(NOTIFICATIONS) || ENABLE(LEGACY_NOTIFICATIONS)
     m_notificationPresenter->reset();
 #endif
-#if OS(ANDROID)
-    webkit_support::ReleaseMediaResources();
-#endif
     m_drtDevToolsAgent->reset();
     if (m_drtDevToolsClient)
         m_drtDevToolsClient->reset();
@@ -346,6 +343,8 @@ void TestShell::resetTestController()
     webView()->mainFrame()->clearOpener();
     WebTestingSupport::resetInternalsObject(webView()->mainFrame());
     WebCache::clear();
+
+    webkit_support::ResetTestEnvironment();
 }
 
 void TestShell::loadURL(const WebURL& url)