Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(415)

Unified Diff: Source/web/tests/PageSerializerTest.cpp

Issue 271793007: Fix webkit_unit_tests to use the threaded parser and enable everywhere. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add loadHistoryItem wrapper Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/web/tests/PageSerializerTest.cpp
diff --git a/Source/web/tests/PageSerializerTest.cpp b/Source/web/tests/PageSerializerTest.cpp
index 99c91fe827f64f409e5184ce8869d36aee519842..7b0f0c198195b57ca4d178f38fc8831e232ca738 100644
--- a/Source/web/tests/PageSerializerTest.cpp
+++ b/Source/web/tests/PageSerializerTest.cpp
@@ -50,7 +50,6 @@
using namespace WebCore;
using namespace blink;
-using blink::FrameTestHelpers::runPendingTasks;
using blink::URLTestHelpers::toKURL;
using blink::URLTestHelpers::registerMockedURLLoad;
@@ -107,17 +106,7 @@ protected:
void serialize(const char* url)
{
- WebURLRequest urlRequest;
- urlRequest.initialize();
- urlRequest.setURL(KURL(m_baseUrl, url));
- m_helper.webView()->mainFrame()->loadRequest(urlRequest);
- // Make sure any pending request get served.
- Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests();
- // Some requests get delayed, run the timer.
- runPendingTasks();
- // Server the delayed resources.
- Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests();
-
+ FrameTestHelpers::loadFrame(m_helper.webView()->mainFrame(), KURL(m_baseUrl, url).string().utf8().data());
PageSerializer serializer(&m_resources);
serializer.serialize(m_helper.webViewImpl()->mainFrameImpl()->frame()->page());
}

Powered by Google App Engine
This is Rietveld 408576698