Title: [121489] trunk/Tools
Revision
121489
Author
[email protected]
Date
2012-06-28 17:01:46 -0700 (Thu, 28 Jun 2012)

Log Message

[chromium] Reset the device scale factor to 1 before each test is run
https://bugs.webkit.org/show_bug.cgi?id=90212

Patch by Terry Anderson <[email protected]> on 2012-06-28
Reviewed by Adam Barth.

Some tests change the device scale factor, so this needs to be reset to
1.0 at the start of each test to avoid test flakiness.

* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::reset):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (121488 => 121489)


--- trunk/Tools/ChangeLog	2012-06-28 23:48:31 UTC (rev 121488)
+++ trunk/Tools/ChangeLog	2012-06-29 00:01:46 UTC (rev 121489)
@@ -1,3 +1,16 @@
+2012-06-28  Terry Anderson  <[email protected]>
+
+        [chromium] Reset the device scale factor to 1 before each test is run
+        https://bugs.webkit.org/show_bug.cgi?id=90212
+
+        Reviewed by Adam Barth.
+
+        Some tests change the device scale factor, so this needs to be reset to
+        1.0 at the start of each test to avoid test flakiness.
+
+        * DumpRenderTree/chromium/LayoutTestController.cpp:
+        (LayoutTestController::reset):
+
 2012-06-28  Ryosuke Niwa  <[email protected]>
 
         Cleanup HTMLFormCollection

Modified: trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp (121488 => 121489)


--- trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp	2012-06-28 23:48:31 UTC (rev 121488)
+++ trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp	2012-06-29 00:01:46 UTC (rev 121489)
@@ -650,6 +650,7 @@
         m_shell->webView()->removeAllUserContent();
         WebKit::WebSize empty;
         m_shell->webView()->disableAutoResizeMode();
+        m_shell->webView()->setDeviceScaleFactor(1);
     }
     m_dumpAsText = false;
     m_dumpAsAudio = false;
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to