Bug 90212 - [chromium] Reset the device scale factor to 1 before each test is run
Summary: [chromium] Reset the device scale factor to 1 before each test is run
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Terry Anderson
URL:
Keywords:
Depends on:
Blocks: 88121
  Show dependency treegraph
 
Reported: 2012-06-28 14:56 PDT by Terry Anderson
Modified: 2012-06-28 17:01 PDT (History)
4 users (show)

See Also:


Attachments
Patch (1.44 KB, patch)
2012-06-28 15:12 PDT, Terry Anderson
no flags Details | Formatted Diff | Diff
Patch (1.44 KB, patch)
2012-06-28 15:48 PDT, Terry Anderson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Anderson 2012-06-28 14:56:59 PDT
Tests using testRunner.setBackingScaleFactor change the device scale factor but do not reset this back to 1 at the end of the test. This leads to a large number of flaky tests as noted in https://bugs.webkit.org/show_bug.cgi?id=83635
Comment 1 Terry Anderson 2012-06-28 15:12:07 PDT
Created attachment 150024 [details]
Patch
Comment 2 Adam Barth 2012-06-28 15:15:20 PDT
Comment on attachment 150024 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=150024&action=review

> Tools/ChangeLog:6
> +        Reviewed by Adam Barth.

You should leave this line with the NOBODY (OOPS)! string.  The tools will fill it in based on who actually reviews the patch.
Comment 3 Stephen White 2012-06-28 15:20:11 PDT
Comment on attachment 150024 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=150024&action=review

> Tools/DumpRenderTree/chromium/LayoutTestController.cpp:653
> +        m_shell->webView()->setDeviceScaleFactor(1.0);

Nit:  "Unless required in order to force floating point math, do not append .0, .f and .0f to floating point literals."
Comment 4 Adam Barth 2012-06-28 15:36:38 PDT
Comment on attachment 150024 [details]
Patch

Thanks.
Comment 5 Terry Anderson 2012-06-28 15:48:24 PDT
Created attachment 150031 [details]
Patch
Comment 6 Adam Barth 2012-06-28 17:01:48 PDT
Comment on attachment 150031 [details]
Patch

Clearing flags on attachment: 150031

Committed r121489: <http://trac.webkit.org/changeset/121489>
Comment 7 Adam Barth 2012-06-28 17:01:56 PDT
All reviewed patches have been landed.  Closing bug.