Title: [239497] trunk/WebDriverTests
Revision
239497
Author
[email protected]
Date
2018-12-21 02:28:43 -0800 (Fri, 21 Dec 2018)

Log Message

Unreviewed. WebDriver: remove deleted tests after r238881.

Deleted files were not removed from the repository in r238881. Also update the test names in the test
expectations file.

* TestExpectations.json:
* imported/w3c/webdriver/tests/actions/__init__.py: Removed.
* imported/w3c/webdriver/tests/actions/conftest.py: Removed.
* imported/w3c/webdriver/tests/actions/control_click.py: Removed.
* imported/w3c/webdriver/tests/actions/key.py: Removed.
* imported/w3c/webdriver/tests/actions/key_shortcuts.py: Removed.
* imported/w3c/webdriver/tests/actions/modifier_click.py: Removed.
* imported/w3c/webdriver/tests/actions/mouse.py: Removed.
* imported/w3c/webdriver/tests/actions/mouse_dblclick.py: Removed.
* imported/w3c/webdriver/tests/actions/mouse_pause_dblclick.py: Removed.
* imported/w3c/webdriver/tests/actions/pointer_origin.py: Removed.
* imported/w3c/webdriver/tests/actions/sequence.py: Removed.
* imported/w3c/webdriver/tests/actions/special_keys.py: Removed.
* imported/w3c/webdriver/tests/actions/support/__init__.py: Removed.
* imported/w3c/webdriver/tests/actions/support/keys.py: Removed.
* imported/w3c/webdriver/tests/actions/support/mouse.py: Removed.
* imported/w3c/webdriver/tests/actions/support/refine.py: Removed.
* imported/w3c/webdriver/tests/actions/support/test_actions_wdspec.html: Removed.
* imported/w3c/webdriver/tests/page_source/__init__.py: Removed.
* imported/w3c/webdriver/tests/page_source/source.py: Removed.
* imported/w3c/webdriver/tests/support/wait.py: Removed.

Modified Paths

Removed Paths

Diff

Modified: trunk/WebDriverTests/ChangeLog (239496 => 239497)


--- trunk/WebDriverTests/ChangeLog	2018-12-21 08:37:57 UTC (rev 239496)
+++ trunk/WebDriverTests/ChangeLog	2018-12-21 10:28:43 UTC (rev 239497)
@@ -1,3 +1,32 @@
+2018-12-21  Carlos Garcia Campos  <[email protected]>
+
+        Unreviewed. WebDriver: remove deleted tests after r238881.
+
+        Deleted files were not removed from the repository in r238881. Also update the test names in the test
+        expectations file.
+
+        * TestExpectations.json:
+        * imported/w3c/webdriver/tests/actions/__init__.py: Removed.
+        * imported/w3c/webdriver/tests/actions/conftest.py: Removed.
+        * imported/w3c/webdriver/tests/actions/control_click.py: Removed.
+        * imported/w3c/webdriver/tests/actions/key.py: Removed.
+        * imported/w3c/webdriver/tests/actions/key_shortcuts.py: Removed.
+        * imported/w3c/webdriver/tests/actions/modifier_click.py: Removed.
+        * imported/w3c/webdriver/tests/actions/mouse.py: Removed.
+        * imported/w3c/webdriver/tests/actions/mouse_dblclick.py: Removed.
+        * imported/w3c/webdriver/tests/actions/mouse_pause_dblclick.py: Removed.
+        * imported/w3c/webdriver/tests/actions/pointer_origin.py: Removed.
+        * imported/w3c/webdriver/tests/actions/sequence.py: Removed.
+        * imported/w3c/webdriver/tests/actions/special_keys.py: Removed.
+        * imported/w3c/webdriver/tests/actions/support/__init__.py: Removed.
+        * imported/w3c/webdriver/tests/actions/support/keys.py: Removed.
+        * imported/w3c/webdriver/tests/actions/support/mouse.py: Removed.
+        * imported/w3c/webdriver/tests/actions/support/refine.py: Removed.
+        * imported/w3c/webdriver/tests/actions/support/test_actions_wdspec.html: Removed.
+        * imported/w3c/webdriver/tests/page_source/__init__.py: Removed.
+        * imported/w3c/webdriver/tests/page_source/source.py: Removed.
+        * imported/w3c/webdriver/tests/support/wait.py: Removed.
+
 2018-12-04  Brian Burg  <[email protected]>
 
         Unreviewed. Update W3C WebDriver imported tests.

Modified: trunk/WebDriverTests/TestExpectations.json (239496 => 239497)


--- trunk/WebDriverTests/TestExpectations.json	2018-12-21 08:37:57 UTC (rev 239496)
+++ trunk/WebDriverTests/TestExpectations.json	2018-12-21 10:28:43 UTC (rev 239497)
@@ -194,12 +194,12 @@
             }
         }
     },
-    "imported/w3c/webdriver/tests/actions/control_click.py": {
+    "imported/w3c/webdriver/tests/perform_actions/pointer_contextmenu.py": {
         "subtests": {
-            "test_control_click[\ue009-ctrlKey]": {
+            "test_control_click[\\ue009-ctrlKey]": {
                 "expected": {"gtk": {"status": ["FAIL"], "bug": "webkit.org/b/188118"}}
             },
-            "test_control_click[\ue051-ctrlKey]": {
+            "test_control_click[\\ue051-ctrlKey]": {
                 "expected": {"gtk": {"status": ["FAIL"], "bug": "webkit.org/b/188118"}}
             },
             "test_release_control_click": {
@@ -207,236 +207,181 @@
             }
         }
     },
-    "imported/w3c/webdriver/tests/actions/key.py": {
+    "imported/w3c/webdriver/tests/perform_actions/key_events.py": {
         "subtests": {
-            "test_single_printable_key_sends_correct_events[\\xe0-]": {
+            "test_modifier_key_sends_correct_events[\\ue009-CONTROL]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_printable_key_sends_correct_events[\\u0416-]": {
+            "test_modifier_key_sends_correct_events[\\ue03d-META]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_printable_key_sends_correct_events[\\u2603-]": {
+            "test_modifier_key_sends_correct_events[\\ue008-SHIFT]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_printable_key_sends_correct_events[\\uf6c2-]": {
+            "test_modifier_key_sends_correct_events[\\ue052-R_ALT]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_emoji_records_correct_key[\\U0001f604]": {
+            "test_modifier_key_sends_correct_events[\\ue053-R_META]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_emoji_records_correct_key[\\U0001f60d]": {
+            "test_printable_key_sends_correct_events[\\xe0-]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_modifier_key_sends_correct_events[\\ue053-OSRight-Meta]": {
+            "test_printable_key_sends_correct_events[\\u0416-]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_single_modifier_key_sends_correct_events[\\ue009-ControlLeft-Control]": {
+            "test_printable_key_sends_correct_events[\\u2603-]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_sequence_of_keydown_printable_keys_sends_events": {
+            "test_printable_key_sends_correct_events[\\uf6c2-]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            }
-        }
-    },
-    "imported/w3c/webdriver/tests/actions/modifier_click.py": {
-        "subtests": {
-            "test_many_modifiers_click": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            }
-        }
-    },
-    "imported/w3c/webdriver/tests/actions/pointer_origin.py": {
-        "subtests": {
-            "test_element_larger_than_viewport": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            }
-        }
-    },
-    "imported/w3c/webdriver/tests/actions/sequence.py": {
-        "subtests": {
-            "test_release_char_sequence_sends_keyup_events_in_reverse": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            }
-        }
-    },
-    "imported/w3c/webdriver/tests/actions/special_keys.py": {
-        "subtests": {
-            "test_webdriver_special_key_sends_keydown[F12-expected10]": {
-                "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[F11-expected47]": {
-                "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_special_key_sends_keydown[F5-expected55]": {
-                "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_special_key_sends_keydown[SHIFT-expected3]": {
+            "test_special_key_sends_keydown[SHIFT-expected3]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWRIGHT-expected4]": {
+            "test_special_key_sends_keydown[R_ARROWRIGHT-expected4]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[PAGE_UP-expected6]": {
+            "test_special_key_sends_keydown[PAGE_UP-expected6]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_PAGEUP-expected7]": {
+            "test_special_key_sends_keydown[R_PAGEUP-expected7]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[META-expected11]": {
+            "test_special_key_sends_keydown[F12-expected10]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NULL-expected15]": {
+            "test_special_key_sends_keydown[META-expected11]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SUBTRACT-expected16]": {
+            "test_special_key_sends_keydown[NULL-expected15]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CONTROL-expected17]": {
+            "test_special_key_sends_keydown[SUBTRACT-expected16]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_META-expected19]": {
+            "test_special_key_sends_keydown[CONTROL-expected17]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SEMICOLON-expected20]": {
+            "test_special_key_sends_keydown[R_META-expected19]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD4-expected22]": {
+            "test_special_key_sends_keydown[SEMICOLON-expected20]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ALT-expected25]": {
+            "test_special_key_sends_keydown[NUMPAD4-expected22]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[DECIMAL-expected27]": {
+            "test_special_key_sends_keydown[R_ALT-expected25]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_DELETE-expected29]": {
+            "test_special_key_sends_keydown[DECIMAL-expected27]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[PAGE_DOWN-expected30]": {
+            "test_special_key_sends_keydown[R_DELETE-expected29]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[PAUSE-expected31]": {
+            "test_special_key_sends_keydown[PAGE_DOWN-expected30]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWUP-expected34]": {
+            "test_special_key_sends_keydown[PAUSE-expected31]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CLEAR-expected36]": {
+            "test_special_key_sends_keydown[R_ARROWUP-expected34]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWLEFT-expected37]": {
+            "test_special_key_sends_keydown[CLEAR-expected36]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[EQUALS-expected38]": {
+            "test_special_key_sends_keydown[R_ARROWLEFT-expected37]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_PAGEDOWN-expected39]": {
+            "test_special_key_sends_keydown[EQUALS-expected38]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ADD-expected40]": {
+            "test_special_key_sends_keydown[R_PAGEDOWN-expected39]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD1-expected41]": {
+            "test_special_key_sends_keydown[ADD-expected40]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_INSERT-expected42]": {
+            "test_special_key_sends_keydown[NUMPAD1-expected41]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ENTER-expected43]": {
+            "test_special_key_sends_keydown[R_INSERT-expected42]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CANCEL-expected44]": {
+            "test_special_key_sends_keydown[ENTER-expected43]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD6-expected45]": {
+            "test_special_key_sends_keydown[CANCEL-expected44]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_END-expected48]": {
+            "test_special_key_sends_keydown[NUMPAD6-expected45]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD7-expected49]": {
+            "test_special_key_sends_keydown[F11-expected47]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD2-expected50]": {
+            "test_special_key_sends_keydown[R_END-expected48]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[F5-expected55]": {
+            "test_special_key_sends_keydown[NUMPAD7-expected49]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD8-expected60]": {
+            "test_special_key_sends_keydown[NUMPAD2-expected50]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD8-expected60]": {
+            "test_special_key_sends_keydown[F5-expected55]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD5-expected61]": {
+            "test_special_key_sends_keydown[NUMPAD8-expected60]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD5-expected61]": {
+            "test_special_key_sends_keydown[NUMPAD5-expected61]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_HOME-expected63]": {
+            "test_special_key_sends_keydown[R_HOME-expected63]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_HOME-expected63]": {
+            "test_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
+            "test_special_key_sends_keydown[SEPARATOR-expected66]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
+            "test_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SEPARATOR-expected66]": {
+            "test_sequence_of_keydown_printable_keys_sends_events": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_special_key_sends_keydown[SEPARATOR-expected66]": {
+            }
+        }
+    },
+    "imported/w3c/webdriver/tests/perform_actions/pointer_modifier_click.py": {
+        "subtests": {
+            "test_many_modifiers_click": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
+            }
+        }
+    },
+    "imported/w3c/webdriver/tests/perform_actions/pointer_origin.py": {
+        "subtests": {
+            "test_element_larger_than_viewport": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
+            }
+        }
+    },
+    "imported/w3c/webdriver/tests/release_actions/sequence.py": {
+        "subtests": {
+            "test_release_char_sequence_sends_keyup_events_in_reverse": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_multiple_codepoint_keys_behave_correctly[\\u0ba8\\u0bbf]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_multiple_codepoint_keys_behave_correctly[\\u0ba8\\u0bbf]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_multiple_codepoint_keys_behave_correctly[\\u1100\\u1161\\u11a8]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_multiple_codepoint_keys_behave_correctly[\\u1100\\u1161\\u11a8]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[fa]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[fa]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u0ba8\\u0bbfb]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u0ba8\\u0bbfb]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u0ba8\\u0bbf\\u0ba8]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u0ba8\\u0bbf\\u0ba8]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u1100\\u1161\\u11a8c]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u1100\\u1161\\u11a8c]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             }
         }
     },
+    "imported/w3c/webdriver/tests/perform_actions/key_special_keys.py": {
+        "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
+    },
     "imported/w3c/webdriver/tests/close_window/user_prompts.py": {
         "subtests": {
             "test_handle_prompt_accept": {
@@ -454,9 +399,12 @@
             }
         }
     },
-    "imported/w3c/webdriver/tests/page_source/source.py": {
-        "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/180399"}}
+    "imported/w3c/webdriver/tests/get_page_source/source.py": {
+        "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/180399"}}
     },
+    "imported/w3c/webdriver/tests/get_page_source/user_prompts.py": {
+        "expected": {"all": {"status": ["SKIP"], "bug": "webkit.org/b/180399"}}
+    },
     "imported/w3c/webdriver/tests/element_click/bubbling.py": {
         "subtests": {
             "test_spin_event_loop": {

Deleted: trunk/WebDriverTests/imported/w3c/webdriver/tests/support/wait.py (239496 => 239497)


--- trunk/WebDriverTests/imported/w3c/webdriver/tests/support/wait.py	2018-12-21 08:37:57 UTC (rev 239496)
+++ trunk/WebDriverTests/imported/w3c/webdriver/tests/support/wait.py	2018-12-21 10:28:43 UTC (rev 239497)
@@ -1,38 +0,0 @@
-import sys
-import time
-
-
-class TimeoutException(Exception):
-    pass
-
-
-def wait(session, condition, message,
-         interval=0.1, timeout=5, ignored_exceptions=Exception):
-    """ Poll a condition until it's true or the timeout ellapses.
-
-    :param session: WebDriver session to use with `condition`
-    :param condition: function that accepts a WebDriver session and returns a boolean
-    :param message: failure description to display in case the timeout is reached
-    :param interval: seconds between each call to `condition`. Default: 0.1
-    :param timeout: seconds until we stop polling. Default: 5
-    :param ignored_exceptions: Exceptions that are expected and can be ignored.
-        Default: Exception
-    """
-
-    start = time.time()
-    end = start + timeout
-
-    while not (time.time() >= end):
-        next_step = time.time() + interval
-        try:
-            success = condition(session)
-        except ignored_exceptions:
-            last_exc = sys.exc_info()[0]
-            success = False
-        next_interval = max(next_step - time.time(), 0)
-        if not success:
-            time.sleep(next_interval)
-            continue
-        return success
-
-    raise TimeoutException("Timed out after %d seconds: %s" % (timeout, message))
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to