<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>89715</bug_id>
          
          <creation_ts>2012-06-21 17:13:54 -0700</creation_ts>
          <short_desc>devicePixelRatio media query layout tests fail when deviceScaleFactor is greater than 1</short_desc>
          <delta_ts>2012-08-10 12:40:25 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar, LayoutTestFailure</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Beth Dakin">bdakin</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bdakin</cc>
    
    <cc>dpranke</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>655048</commentid>
    <comment_count>0</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2012-06-21 17:13:54 -0700</bug_when>
    <thetext>These two layout tests fail when you run them on a Retina Macbook Pro or any Mac running in HiDPI mode:

fast/media/mq-max-pixel-ratio.html
fast/media/mq-pixel-ratio.html

They behave correctly, but the results that are checked are the results for a 1x display. We could easily change these tests to be display-agnostic, but since there are other differences in HiDPI, it would also be nice to have a new directory like the platform directory for test results that are specific to different deviceScaleFactors.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>655049</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2012-06-21 17:14:48 -0700</bug_when>
    <thetext>&lt;rdar://problem/11723762&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692755</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-10 11:45:55 -0700</bug_when>
    <thetext>Could these tests could be rewritten to be text-only and use js/dom to query the color being rendered, or is it critical that we actually verify the pixels themselves?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692766</commentid>
    <comment_count>3</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2012-08-10 11:51:37 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Could these tests could be rewritten to be text-only and use js/dom to query the color being rendered, or is it critical that we actually verify the pixels themselves?

The pixels are not critical in this case, but I think that they only way to truly convert these to text-only tests would be to extend DRT/WTR to be able report back the current device scale factor. The JS/DOM query for devicePixelRatio should not be used because these tests are essentially testing whether or not that very mechanism is accurate, so it needs to be compared against an alternate source of the information.

So it would be possibly to avoid separate text expectations in this case if we extended the test harness. But I think it would be simpler to have a platform directory for results since there are still other tests that cannot be translated into text-only tests. For example, all of the canvas tests: https://bugs.webkit.org/show_bug.cgi?id=89709</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692771</commentid>
    <comment_count>4</comment_count>
    <who name="Dirk Pranke">dpranke</who>
    <bug_when>2012-08-10 11:56:03 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Could these tests could be rewritten to be text-only and use js/dom to query the color being rendered, or is it critical that we actually verify the pixels themselves?
&gt; 
&gt; The pixels are not critical in this case, but I think that they only way to truly convert these to text-only tests would be to extend DRT/WTR to be able report back the current device scale factor. The JS/DOM query for devicePixelRatio should not be used because these tests are essentially testing whether or not that very mechanism is accurate, so it needs to be compared against an alternate source of the information.
&gt; 

Fair enough.

&gt; So it would be possibly to avoid separate text expectations in this case if we extended the test harness. But I think it would be simpler to have a platform directory for results since there are still other tests that cannot be translated into text-only tests. For example, all of the canvas tests: https://bugs.webkit.org/show_bug.cgi?id=89709

Sure, I have no problem with a platform dir for tests that actually need images (or different text results or whatever), I was just looking for ways to convert some pixel tests to text-only.

I was also wondering if these could be reftests, but I&apos;m not seeing an obvious way to do that, either.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>692816</commentid>
    <comment_count>5</comment_count>
    <who name="Beth Dakin">bdakin</who>
    <bug_when>2012-08-10 12:40:25 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; Sure, I have no problem with a platform dir for tests that actually need images (or different text results or whatever), I was just looking for ways to convert some pixel tests to text-only.
&gt; 
&gt; I was also wondering if these could be reftests, but I&apos;m not seeing an obvious way to do that, either.

Okay, cool! Yeah, it&apos;s true that it&apos;s a good goal to have fewer pixel tests anyway. We should definitely consider extending DRT/WRT for this purpose.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>