Title: [154198] trunk/Tools
- Revision
- 154198
- Author
- [email protected]
- Date
- 2013-08-16 12:08:16 -0700 (Fri, 16 Aug 2013)
Log Message
[Windows] DRT is not using the same preferences as the Mac build.
https://bugs.webkit.org/show_bug.cgi?id=119822
Reviewed by Darin Adler.
* DumpRenderTree/win/DumpRenderTree.cpp:
(runTest): Process Windows message queue using CFRunLoop to allow
dispatch routines to run properly.
(dllLauncherEntryPoint): Wrap CG-specific setup code in a macro
to prevent problems on WinCairo port.
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (154197 => 154198)
--- trunk/Tools/ChangeLog 2013-08-16 18:53:15 UTC (rev 154197)
+++ trunk/Tools/ChangeLog 2013-08-16 19:08:16 UTC (rev 154198)
@@ -1,5 +1,18 @@
2013-08-16 Brent Fulgham <[email protected]>
+ [Windows] DRT is not using the same preferences as the Mac build.
+ https://bugs.webkit.org/show_bug.cgi?id=119822
+
+ Reviewed by Darin Adler.
+
+ * DumpRenderTree/win/DumpRenderTree.cpp:
+ (runTest): Process Windows message queue using CFRunLoop to allow
+ dispatch routines to run properly.
+ (dllLauncherEntryPoint): Wrap CG-specific setup code in a macro
+ to prevent problems on WinCairo port.
+
+2013-08-16 Brent Fulgham <[email protected]>
+
[Windows] URL printing code in DRT doesn't match WTR or Mac DRT
https://bugs.webkit.org/show_bug.cgi?id=119583
Modified: trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp (154197 => 154198)
--- trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2013-08-16 18:53:15 UTC (rev 154197)
+++ trunk/Tools/DumpRenderTree/win/DumpRenderTree.cpp 2013-08-16 19:08:16 UTC (rev 154198)
@@ -858,6 +858,7 @@
preferences->setDefaultFontSize(16);
preferences->setDefaultFixedFontSize(13);
preferences->setMinimumFontSize(0);
+ preferences->setDefaultTextEncodingName(L"ISO-8859-1");
preferences->setJavaEnabled(FALSE);
preferences->setPlugInsEnabled(TRUE);
preferences->setDOMPasteAllowed(TRUE);
@@ -869,8 +870,10 @@
preferences->setJavaScriptEnabled(TRUE);
preferences->setTabsToLinks(FALSE);
preferences->setShouldPrintBackgrounds(TRUE);
+ preferences->setCacheModel(WebCacheModelDocumentBrowser);
preferences->setLoadsImagesAutomatically(TRUE);
preferences->setSeamlessIFramesEnabled(TRUE);
+ preferences->setTextAreasAreResizable(TRUE);
if (persistentUserStyleSheetLocation) {
Vector<wchar_t> urlCharacters(CFStringGetLength(persistentUserStyleSheetLocation.get()));
@@ -894,6 +897,11 @@
prefsPrivate->setXSSAuditorEnabled(FALSE);
prefsPrivate->setOfflineWebApplicationCacheEnabled(TRUE);
prefsPrivate->setLoadsSiteIconsIgnoringImageLoadingPreference(FALSE);
+ prefsPrivate->setFrameFlatteningEnabled(FALSE);
+ prefsPrivate->setFullScreenEnabled(TRUE);
+#if USE(CG)
+ prefsPrivate->setAcceleratedCompositingEnabled(TRUE);
+#endif
}
setAlwaysAcceptCookies(false);
@@ -1037,6 +1045,7 @@
::setPersistentUserStyleSheetLocation(0);
}
+
static void runTest(const string& inputLine)
{
TestCommand command = parseInputLine(inputLine);
@@ -1131,7 +1140,13 @@
frame->loadRequest(request.get());
MSG msg;
- while (GetMessage(&msg, 0, 0, 0)) {
+ while (true) {
+#if USE(CF)
+ CFRunLoopRunInMode(kCFRunLoopDefaultMode, 0, true);
+#endif
+ if (!GetMessage(&msg, 0, 0, 0))
+ break;
+
// We get spurious WM_MOUSELEAVE events which make event handling machinery think that mouse button
// is released during dragging (see e.g. fast\dynamic\layer-hit-test-crash.html).
// Mouse can never leave WebView during normal DumpRenderTree operation, so we just ignore all such events.
@@ -1357,8 +1372,10 @@
standardPreferencesPrivate->setShouldPaintNativeControls(FALSE);
standardPreferences->setJavaScriptEnabled(TRUE);
standardPreferences->setDefaultFontSize(16);
- standardPreferences->setAcceleratedCompositingEnabled(true);
+#if USE(CG)
+ standardPreferences->setAcceleratedCompositingEnabled(TRUE);
standardPreferences->setAVFoundationEnabled(TRUE);
+#endif
standardPreferences->setContinuousSpellCheckingEnabled(TRUE);
if (printSupportedFeatures) {
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes