<?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>34310</bug_id>
          
          <creation_ts>2010-01-28 22:43:27 -0800</creation_ts>
          <short_desc>LayoutTests/fast/dom/Window/window-resize.html always fails with a rotated display</short_desc>
          <delta_ts>2010-03-30 02:42:11 -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>Tools / Tests</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.5</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>36813</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kent Tamura">tkent</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>kmccullough</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>185744</commentid>
    <comment_count>0</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-01-28 22:43:27 -0800</bug_when>
    <thetext>LayoutTests/fast/dom/Window/window-resize.html always fails with the following environment.
  Model Identifier: MacPro4.1
  Graphics card: NVIDIA GeForce GT 120
  Display: DELL 2405FPW 1200x1920 (rotated by 90 degree)
  Mac OS X 10.5.8 (9L31a)


window-resize.html checks window.outerWidth==screen.width in some testcases. In my enviroment, window.outerWidth is 1196 and screen.width is 1200.

screenRect() in PlatformScreenMac.mm is the source of screen.width, and screenAvailableRet() in PlatformScreenMac.mm is the source of screen size parameter for DOMWindows::adjustScreenRect(). The former uses [screenForWindow(window) frame] and the latter uses [screenForWindow(window) visibleFarme].  They seem to return different values in my environment.



Test result diff:
--- /tmp/layout-test-results/fast/dom/Window/window-resize-expected.txt	2010-01-29 15:32:05.000000000 +0900
+++ /tmp/layout-test-results/fast/dom/Window/window-resize-actual.txt	2010-01-29 15:32:05.000000000 +0900
@@ -7,7 +7,7 @@
 window.resizeTo Tests
 
 Testing - resizeTo: Too Big
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - resizeTo: Too Small
 PASS window.outerWidth is 100
@@ -16,11 +16,11 @@
 PASS window.screenY is screen.availTop
 PASS window.outerHeight is screen.availHeight
 PASS window.screenX is screen.availLeft
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - resizeTo: Not Full Screen Out of Bounds
 PASS window.outerHeight + window.screenY - screen.availTop is screen.availHeight
-PASS window.outerWidth + window.screenX - screen.availLeft is screen.width
+FAIL window.outerWidth + window.screenX - screen.availLeft should be 1200. Was 1196.
 
 window.resizeBy Tests
 
@@ -28,7 +28,7 @@
 PASS window.outerWidth is 100
 
 Testing - resizeBy: Too Big
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 window.moveTo Tests
 
@@ -42,15 +42,15 @@
 
 Testing - moveTo: Top Right
 PASS window.screenY is screen.availTop
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveTo: Right
 PASS window.screenY is screen.availTop
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveTo: Bottom Right
 PASS window.outerHeight is screen.availHeight
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveTo: Bottom
 PASS window.outerHeight is screen.availHeight
@@ -88,15 +88,15 @@
 
 Testing - moveBy: Top Right
 PASS window.screenY is screen.availTop
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveBy: Right
 PASS window.screenY is screen.availTop
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveBy: Bottom Right
 PASS window.outerHeight is screen.availHeight
-PASS window.outerWidth is screen.width
+FAIL window.outerWidth should be 1200. Was 1196.
 
 Testing - moveBy: Bottom
 PASS window.outerHeight is screen.availHeight</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>205916</commentid>
    <comment_count>1</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2010-03-30 02:42:11 -0700</bug_when>
    <thetext>Bug#36813 is right. This is caused by not a rotated display, but Dock on the left or right.

*** This bug has been marked as a duplicate of bug 36813 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>