<?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>180419</bug_id>
          
          <creation_ts>2017-12-05 04:11:03 -0800</creation_ts>
          <short_desc>WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_height_width_larger_than_max fails</short_desc>
          <delta_ts>2018-01-23 01:10:37 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebDriver</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>181728</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="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1378145</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2017-12-05 04:11:03 -0800</bug_when>
    <thetext>session = &lt;webdriver.client.Session object at 0x7f2e044424d0&gt;

    def test_height_width_larger_than_max(session):
        max = session.execute_script(&quot;&quot;&quot;
            return {
              width: window.screen.availWidth,
              height: window.screen.availHeight,
            }&quot;&quot;&quot;)
    
        # step 12
        response = set_window_rect(session, {&quot;width&quot;: max[&quot;width&quot;] + 100,
                                             &quot;height&quot;: max[&quot;height&quot;] + 100})
    
        # step 14
        rect = assert_success(response)
&gt;       assert rect[&quot;width&quot;] &gt;= max[&quot;width&quot;]
E       assert 868 &gt;= 1024

max        = {&apos;height&apos;: 768, &apos;width&apos;: 1024}
rect       = {&apos;height&apos;: 0, &apos;width&apos;: 868, &apos;x&apos;: 100, &apos;y&apos;: 450}
response   = &lt;Responsetatus=200 body={&quot;value&quot;: {&quot;y&quot;: 450, &quot;x&quot;: 100, &quot;height&quot;: 0, &quot;width&quot;: 868}}&gt;
session    = &lt;webdriver.client.Session object at 0x7f2e044424d0&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1391998</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2018-01-23 01:10:37 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>