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

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

Issue 272143002: Revert of Fix webkit_unit_tests to use the threaded parser and enable everywhere. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/PopupMenuTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/PinchViewportTest.cpp
diff --git a/Source/web/tests/PinchViewportTest.cpp b/Source/web/tests/PinchViewportTest.cpp
index ffda5797c89adee273ca35f405715e8b0bc2b491..1558189c45f76218f83d38ab29b4df61c2e26e31 100644
--- a/Source/web/tests/PinchViewportTest.cpp
+++ b/Source/web/tests/PinchViewportTest.cpp
@@ -52,6 +52,7 @@
using namespace WebCore;
using namespace blink;
+using blink::FrameTestHelpers::runPendingTasks;
namespace {
@@ -82,6 +83,7 @@
void navigateTo(const std::string& url)
{
FrameTestHelpers::loadFrame(webViewImpl()->mainFrame(), url);
+ Platform::current()->unitTestSupport()->serveAsynchronousMockedRequests();
}
void forceFullCompositingUpdate()
@@ -92,6 +94,12 @@
void registerMockedHttpURLLoad(const std::string& fileName)
{
URLTestHelpers::registerMockedURLFromBaseURL(WebString::fromUTF8(m_baseURL.c_str()), WebString::fromUTF8(fileName.c_str()));
+ }
+
+ void executeScript(const WebString& code)
+ {
+ webViewImpl()->mainFrame()->executeScript(WebScriptSource(code));
+ runPendingTasks();
}
WebLayer* getRootScrollLayer()
« no previous file with comments | « Source/web/tests/PageSerializerTest.cpp ('k') | Source/web/tests/PopupMenuTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698