Changeset 227408 in webkit


Ignore:
Timestamp:
Jan 23, 2018 1:43:46 AM (6 years ago)
Author:
Carlos Garcia Campos
Message:

WebDriver: test imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py::testChangeWindowSize fails
https://bugs.webkit.org/show_bug.cgi?id=181728

Reviewed by Sergio Villar Senin.

Source/WebDriver:

Due to a copy-paste error we are getting the window height using the width variable.

Fixes: imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py::testChangeWindowSize

imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort
imported/w3c/webdriver/tests/get_window_rect.py::test_payload
imported/w3c/webdriver/tests/set_window_rect.py::test_width_height_floats
imported/w3c/webdriver/tests/set_window_rect.py::test_height_width
imported/w3c/webdriver/tests/set_window_rect.py::test_height_width_larger_than_max
imported/w3c/webdriver/tests/contexts/resizing_and_positioning.py::test_window_resize

  • Session.cpp:

(WebDriver::Session::getToplevelBrowsingContextRect):

WebDriverTests:

Remove expectations for tests that are now passing.

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebDriver/ChangeLog

    r227293 r227408  
     12018-01-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        WebDriver: test imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py::testChangeWindowSize fails
     4        https://bugs.webkit.org/show_bug.cgi?id=181728
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Due to a copy-paste error we are getting the window height using the width variable.
     9
     10        Fixes: imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py::testChangeWindowSize
     11               imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py::testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort
     12               imported/w3c/webdriver/tests/get_window_rect.py::test_payload
     13               imported/w3c/webdriver/tests/set_window_rect.py::test_width_height_floats
     14               imported/w3c/webdriver/tests/set_window_rect.py::test_height_width
     15               imported/w3c/webdriver/tests/set_window_rect.py::test_height_width_larger_than_max
     16               imported/w3c/webdriver/tests/contexts/resizing_and_positioning.py::test_window_resize
     17
     18        * Session.cpp:
     19        (WebDriver::Session::getToplevelBrowsingContextRect):
     20
    1212018-01-22  Carlos Garcia Campos  <cgarcia@igalia.com>
    222
  • trunk/Source/WebDriver/Session.cpp

    r227293 r227408  
    699699        if (!browsingContext->getObject(ASCIILiteral("windowSize"), windowSize)
    700700            || !windowSize->getDouble(ASCIILiteral("width"), width)
    701             || !windowSize->getDouble(ASCIILiteral("height"), width)) {
     701            || !windowSize->getDouble(ASCIILiteral("height"), height)) {
    702702            completionHandler(CommandResult::fail(CommandResult::ErrorCode::UnknownError));
    703703            return;
  • trunk/WebDriverTests/ChangeLog

    r227293 r227408  
     12018-01-23  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        WebDriver: test imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py::testChangeWindowSize fails
     4        https://bugs.webkit.org/show_bug.cgi?id=181728
     5
     6        Reviewed by Sergio Villar Senin.
     7
     8        Remove expectations for tests that are now passing.
     9
     10        * TestExpectations.json:
     11
    1122018-01-22  Carlos Garcia Campos  <cgarcia@igalia.com>
    213
  • trunk/WebDriverTests/TestExpectations.json

    r227293 r227408  
    1212    "imported/selenium/py/test/selenium/webdriver/common/api_example_tests.py": {
    1313        "subtests": {
    14             "testChangeWindowSize": {
    15                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/181728"}}
    16             },
    1714            "testGetLogTypes": {
    1815                "expected": {"all": {"status": ["SKIP"]}}
     
    7673    "imported/selenium/py/test/selenium/webdriver/common/position_and_size_tests.py": {
    7774        "subtests": {
    78             "testShouldScrollPageAndGetCoordinatesOfAnElementThatIsOutOfViewPort": {
    79                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/181734"}}
    80             },
    8175            "testShouldGetCoordinatesOfAnElementInAFrame": {
    8276                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/181735"}}
     
    118112        "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/174616"}}
    119113    },
    120     "imported/w3c/webdriver/tests/contexts/resizing_and_positioning.py": {
    121         "subtests": {
    122             "test_window_resize": {
    123                 "expected": {"gtk": {"status": ["FAIL"]}}
    124             }
    125         }
    126     },
    127114    "imported/w3c/webdriver/tests/contexts/maximize_window.py": {
    128115        "subtests": {
     
    444431    "imported/w3c/webdriver/tests/set_window_rect.py": {
    445432        "subtests": {
    446             "test_width_height_floats": {
    447                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180416"}}
    448             },
    449433            "test_fully_exit_fullscreen": {
    450434                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180398"}}
     
    455439            "test_restore_from_maximized": {
    456440                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180398"}}
    457             },
    458             "test_height_width": {
    459                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180417"}}
    460             },
    461             "test_height_width_larger_than_max": {
    462                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180419"}}
    463441            },
    464442            "test_negative_x_y": {
Note: See TracChangeset for help on using the changeset viewer.