Bug 1376680 - Remove wdspec contexts.py test. r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Mon, 07 Aug 2017 13:06:19 +0100
changeset 641633 8207e02a9a91e5985cdaa6b07f896232420457b6
parent 641632 47248637eafa9a38dade8dc3aa6c4736177c8d8d
child 724862 397d90e675a16fa9128688fdc6d13328f8f610c9
push id72601
push userbmo:ato@sny.no
push dateMon, 07 Aug 2017 12:07:21 +0000
reviewersautomatedtester
bugs1376680
milestone57.0a1
Bug 1376680 - Remove wdspec contexts.py test. r?automatedtester The testing/web-platform/tests/webdriver/tests/contexts.py test has been replaced by set_window_rect.py added recently. MozReview-Commit-ID: Bn4uEkEUHE9
testing/web-platform/meta/MANIFEST.json
testing/web-platform/meta/webdriver/tests/contexts.py.ini
testing/web-platform/tests/webdriver/tests/contexts.py
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -405064,22 +405064,16 @@
    "webdriver/tests/actions/special_keys.py": [
     [
      "/webdriver/tests/actions/special_keys.py",
      {
       "timeout": "long"
      }
     ]
    ],
-   "webdriver/tests/contexts.py": [
-    [
-     "/webdriver/tests/contexts.py",
-     {}
-    ]
-   ],
    "webdriver/tests/cookies.py": [
     [
      "/webdriver/tests/cookies.py",
      {}
     ]
    ],
    "webdriver/tests/element_click/select.py": [
     [
@@ -411598,17 +411592,17 @@
    "901c6df896c5f9bccd2e680fbd6fc56afce8d364",
    "testharness"
   ],
   "WebIDL/OWNERS": [
    "f9c94ab08fa997459cba17e61d8cd00ee8b07b46",
    "support"
   ],
   "WebIDL/current-realm.html": [
-   "167c7c1f53ae2bf457f6b3f917f0ef988c585c7c",
+   "3d9564314c7ce59ce6a29dfa94c35e496e214bf5",
    "testharness"
   ],
   "WebIDL/ecmascript-binding/es-exceptions/DOMException-constants.any.js": [
    "34432979f039c4e1ba4eb90d4f2acc96d1d441d8",
    "testharness"
   ],
   "WebIDL/ecmascript-binding/es-exceptions/DOMException-constructor-and-prototype.any.js": [
    "7fc6412ffa2a2586e5ea2dca7f5cdafba38c7585",
@@ -415817,16 +415811,20 @@
   "common/utils.js.headers": [
    "e3593850f8098d3f3ff82c042deab15f51c66a52",
    "support"
   ],
   "common/vendor-prefix.js": [
    "b80ec842b65a3423dd789a2226f2ba3caf598049",
    "support"
   ],
+  "common/vendor-prefix.js.headers": [
+   "e3593850f8098d3f3ff82c042deab15f51c66a52",
+   "support"
+  ],
   "compat/green-ref.html": [
    "4b23ea52d785a6dd19785bd4278bf700eb5547f8",
    "support"
   ],
   "compat/webkit-linear-gradient-line-bottom.html": [
    "af59a0aa3b8a195ba7ef401b582be9384a23a388",
    "reftest"
   ],
@@ -415837,20 +415835,16 @@
   "compat/webkit-linear-gradient-line-right.html": [
    "2d87c4a09d77f3171fa91bbf8f2f0b1a412b7d94",
    "reftest"
   ],
   "compat/webkit-linear-gradient-line-top.html": [
    "be7fb91dc6459617c20232cd5333e9b3340f3341",
    "reftest"
   ],
-  "common/vendor-prefix.js.headers": [
-   "e3593850f8098d3f3ff82c042deab15f51c66a52",
-   "support"
-  ],
   "compat/webkit-text-fill-color-currentColor.html": [
    "7512b6ce45b5528ee7b9794c32954e954d736f88",
    "testharness"
   ],
   "compat/webkit-text-fill-color-property-001-ref.html": [
    "be135c19d3066ec30837e9b36e67bf91f85142af",
    "support"
   ],
@@ -596338,17 +596332,17 @@
    "c1d1054447e116becb50aaf96aad00a25f0a6752",
    "testharness"
   ],
   "intersection-observer/shadow-content.html": [
    "11681640d5c8b2c62229ed5a717172f917d75ba4",
    "testharness"
   ],
   "intersection-observer/timestamp.html": [
-   "b26e1b4b295722e8def9a2d6870465fe4140873c",
+   "a7084b2a0f359115a1862f3c0891ace8143dba83",
    "testharness"
   ],
   "intersection-observer/unclipped-root.html": [
    "67dab96304c745f1b5462bb1074753b09d77fbd1",
    "testharness"
   ],
   "intersection-observer/zero-area-element-hidden.html": [
    "59d854e89ca0d7b035a87376566775ca2f3420e5",
@@ -624985,20 +624979,16 @@
   "webdriver/tests/actions/support/test_actions_wdspec.html": [
    "a5a1cbce9f0ef66c19065cb8ba761c8fd27cc4ac",
    "support"
   ],
   "webdriver/tests/conftest.py": [
    "ab95734024a8e152ed84128eb804344740be91d4",
    "support"
   ],
-  "webdriver/tests/contexts.py": [
-   "479379109115668183643e8a050396219332887d",
-   "wdspec"
-  ],
   "webdriver/tests/cookies.py": [
    "e31177e638269864031e44808945fa1e7c46031c",
    "wdspec"
   ],
   "webdriver/tests/element_click/__init__.py": [
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
@@ -625022,17 +625012,17 @@
    "8aef7d228fc9c1e8cf1029d8f1f7669602b6e877",
    "wdspec"
   ],
   "webdriver/tests/support/__init__.py": [
    "5a31a3917a5157516c10951a3b3d5ffb43b992d9",
    "support"
   ],
   "webdriver/tests/support/asserts.py": [
-   "693c848df03b46e7b4f5e17e49fd0879a29a0d1c",
+   "e624c50e02a0da4d532321a080ecc5c73644bd8d",
    "support"
   ],
   "webdriver/tests/support/fixtures.py": [
    "6ceec11f42cd9be53a92ad88aa07657c78779ce3",
    "support"
   ],
   "webdriver/tests/support/http_request.py": [
    "cb40c781fea2280b98135522def5e6a116d7b946",
@@ -639610,17 +639600,17 @@
    "23ed9eb3cf4b65bdd0301570677a6d89af0e551b",
    "testharness"
   ],
   "workers/data-url-shared.html": [
    "0fee4678c53e3f30e0f6090b5b9fc51b7bb74806",
    "testharness"
   ],
   "workers/data-url.html": [
-   "50abaf936cfb58ba14e6870c9b7f239f5d54f59c",
+   "8f854b63f97beae3d814478946ad86836a5cea0a",
    "testharness"
   ],
   "workers/interfaces.worker.js": [
    "bab03d904dde60b7456d3cd60284c1ecc84a7649",
    "testharness"
   ],
   "workers/interfaces/DedicatedWorkerGlobalScope/EventTarget.worker.js": [
    "b613859a3c941384721e5331e39a3fc0931612ac",
deleted file mode 100644
--- a/testing/web-platform/meta/webdriver/tests/contexts.py.ini
+++ /dev/null
@@ -1,11 +0,0 @@
-[contexts.py]
-  type: wdspec
-  [contexts.py::test_resize]
-    expected: FAIL
-
-  [contexts.py::test_resize_by_script]
-    expected: FAIL
-
-  [contexts.py::test_window_position_types]
-    expected: FAIL
-
deleted file mode 100644
--- a/testing/web-platform/tests/webdriver/tests/contexts.py
+++ /dev/null
@@ -1,61 +0,0 @@
-import json
-import pytest
-import webdriver
-
-
-def window_size_supported(session):
-    try:
-        session.window.size = ("a", "b")
-    except webdriver.UnsupportedOperationException:
-        return False
-    except webdriver.InvalidArgumentException:
-        return True
-
-def window_position_supported(session):
-    try:
-        session.window.position = ("a", "b")
-    except webdriver.UnsupportedOperationException:
-        return False
-    except webdriver.InvalidArgumentException:
-        return True
-
-
-def test_window_resize(session):
-    if not window_size_supported(session):
-        pytest.skip()
-
-    # setting the window size by webdriver is synchronous
-    # so we should see the results immediately
-
-    session.window.size = (400, 500)
-    assert session.window.size == (400, 500)
-
-    session.window.size = (500, 600)
-    assert session.window.size == (500, 600)
-
-
-"""
-TODO(ato):
-
-    Disable test because the while statements are wrong.
-    To fix this properly we need to write an explicit wait utility.
-
-def test_window_resize_by_script(session):
-    # setting the window size by JS is asynchronous
-    # so we poll waiting for the results
-
-    size0 = session.window.size
-
-    session.execute_script("window.resizeTo(700, 800)")
-    size1 = session.window.size
-    while size0 == size1:
-        size1 = session.window.size
-    assert size1 == (700, 800)
-
-    session.execute_script("window.resizeTo(800, 900)")
-    size2 = session.window.size
-    while size1 == size2:
-        size2 = session.window.size
-        assert size2 == (800, 900)
-    assert size2 == {"width": 200, "height": 100}
-"""