Unreviewed. WebDriver: remove deleted tests after r238881.
authorcarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2018 10:28:43 +0000 (10:28 +0000)
committercarlosgc@webkit.org <carlosgc@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Dec 2018 10:28:43 +0000 (10:28 +0000)
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.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239497 268f45cc-cd09-0410-ab3c-d52691b4dbfc

22 files changed:
WebDriverTests/ChangeLog
WebDriverTests/TestExpectations.json
WebDriverTests/imported/w3c/webdriver/tests/actions/__init__.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/conftest.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/control_click.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/key.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/key_shortcuts.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/modifier_click.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/mouse.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_dblclick.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_pause_dblclick.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/pointer_origin.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/sequence.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/special_keys.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/support/__init__.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/support/keys.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/support/mouse.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/support/refine.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/actions/support/test_actions_wdspec.html [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/page_source/__init__.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/page_source/source.py [deleted file]
WebDriverTests/imported/w3c/webdriver/tests/support/wait.py [deleted file]

index de9c336..2cb6203 100644 (file)
@@ -1,3 +1,32 @@
+2018-12-21  Carlos Garcia Campos  <cgarcia@igalia.com>
+
+        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  <bburg@apple.com>
 
         Unreviewed. Update W3C WebDriver imported tests.
index 50872cc..90b2435 100644 (file)
             }
         }
     },
-    "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": {
             }
         }
     },
-    "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": {
-                "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]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_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]": {
-                "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_webdriver_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_printable_key_sends_correct_events[\\uf6c2-]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NULL-expected15]": {
+            "test_special_key_sends_keydown[SHIFT-expected3]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SUBTRACT-expected16]": {
+            "test_special_key_sends_keydown[R_ARROWRIGHT-expected4]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CONTROL-expected17]": {
+            "test_special_key_sends_keydown[PAGE_UP-expected6]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_META-expected19]": {
+            "test_special_key_sends_keydown[R_PAGEUP-expected7]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SEMICOLON-expected20]": {
+            "test_special_key_sends_keydown[F12-expected10]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD4-expected22]": {
+            "test_special_key_sends_keydown[META-expected11]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ALT-expected25]": {
+            "test_special_key_sends_keydown[NULL-expected15]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[DECIMAL-expected27]": {
+            "test_special_key_sends_keydown[SUBTRACT-expected16]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_DELETE-expected29]": {
+            "test_special_key_sends_keydown[CONTROL-expected17]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[PAGE_DOWN-expected30]": {
+            "test_special_key_sends_keydown[R_META-expected19]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[PAUSE-expected31]": {
+            "test_special_key_sends_keydown[SEMICOLON-expected20]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWUP-expected34]": {
+            "test_special_key_sends_keydown[NUMPAD4-expected22]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CLEAR-expected36]": {
+            "test_special_key_sends_keydown[R_ALT-expected25]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWLEFT-expected37]": {
+            "test_special_key_sends_keydown[DECIMAL-expected27]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[EQUALS-expected38]": {
+            "test_special_key_sends_keydown[R_DELETE-expected29]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_PAGEDOWN-expected39]": {
+            "test_special_key_sends_keydown[PAGE_DOWN-expected30]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ADD-expected40]": {
+            "test_special_key_sends_keydown[PAUSE-expected31]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD1-expected41]": {
+            "test_special_key_sends_keydown[R_ARROWUP-expected34]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_INSERT-expected42]": {
+            "test_special_key_sends_keydown[CLEAR-expected36]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ENTER-expected43]": {
+            "test_special_key_sends_keydown[R_ARROWLEFT-expected37]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[CANCEL-expected44]": {
+            "test_special_key_sends_keydown[EQUALS-expected38]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD6-expected45]": {
+            "test_special_key_sends_keydown[R_PAGEDOWN-expected39]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_END-expected48]": {
+            "test_special_key_sends_keydown[ADD-expected40]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD7-expected49]": {
+            "test_special_key_sends_keydown[NUMPAD1-expected41]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD2-expected50]": {
+            "test_special_key_sends_keydown[R_INSERT-expected42]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[F5-expected55]": {
+            "test_special_key_sends_keydown[ENTER-expected43]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD8-expected60]": {
+            "test_special_key_sends_keydown[CANCEL-expected44]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD8-expected60]": {
+            "test_special_key_sends_keydown[NUMPAD6-expected45]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD5-expected61]": {
+            "test_special_key_sends_keydown[F11-expected47]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[NUMPAD5-expected61]": {
+            "test_special_key_sends_keydown[R_END-expected48]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_HOME-expected63]": {
+            "test_special_key_sends_keydown[NUMPAD7-expected49]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_HOME-expected63]": {
+            "test_special_key_sends_keydown[NUMPAD2-expected50]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
+            "test_special_key_sends_keydown[F5-expected55]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
+            "test_special_key_sends_keydown[NUMPAD8-expected60]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SEPARATOR-expected66]": {
+            "test_special_key_sends_keydown[NUMPAD5-expected61]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[SEPARATOR-expected66]": {
+            "test_special_key_sends_keydown[R_HOME-expected63]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
+            "test_special_key_sends_keydown[ZENKAKUHANKAKU-expected64]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_webdriver_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
+            "test_special_key_sends_keydown[SEPARATOR-expected66]": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
             },
-            "test_multiple_codepoint_keys_behave_correctly[\\u0ba8\\u0bbf]": {
+            "test_special_key_sends_keydown[R_ARROWDOWN-expected68]": {
                 "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]": {
+            "test_sequence_of_keydown_printable_keys_sends_events": {
                 "expected": {"all": {"status": ["FAIL"], "bug": "webkit.org/b/184967"}}
-            },
-            "test_invalid_multiple_codepoint_keys_fail[\\u0ba8\\u0bbf\\u0ba8]": {
+            }
+        }
+    },
+    "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_invalid_multiple_codepoint_keys_fail[\\u1100\\u1161\\u11a8c]": {
+            }
+        }
+    },
+    "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_invalid_multiple_codepoint_keys_fail[\\u1100\\u1161\\u11a8c]": {
+            }
+        }
+    },
+    "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"}}
             }
         }
     },
+    "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": {
             }
         }
     },
-    "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": {
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/__init__.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/conftest.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/conftest.py
deleted file mode 100644 (file)
index 47aad72..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-import pytest
-
-
-@pytest.fixture
-def key_chain(session):
-    return session.actions.sequence("key", "keyboard_id")
-
-
-@pytest.fixture
-def mouse_chain(session):
-    return session.actions.sequence(
-        "pointer",
-        "pointer_id",
-        {"pointerType": "mouse"})
-
-
-@pytest.fixture(autouse=True)
-def release_actions(session, request):
-    # release all actions after each test
-    # equivalent to a teardown_function, but with access to session fixture
-    request.addfinalizer(session.actions.release)
-
-
-@pytest.fixture
-def key_reporter(session, test_actions_page, request):
-    """Represents focused input element from `test_keys_page` fixture."""
-    input_el = session.find.css("#keys", all=False)
-    input_el.click()
-    session.execute_script("resetEvents();")
-    return input_el
-
-
-@pytest.fixture
-def test_actions_page(session, url):
-    session.url = url("/webdriver/tests/actions/support/test_actions_wdspec.html")
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/control_click.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/control_click.py
deleted file mode 100644 (file)
index 2ec819b..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-import pytest
-
-from tests.actions.support.refine import filter_dict, get_events
-from tests.actions.support.keys import Keys
-
-
-@pytest.mark.parametrize("modifier, prop", [
-    (Keys.CONTROL, "ctrlKey"),
-    (Keys.R_CONTROL, "ctrlKey"),
-])
-def test_control_click(session, test_actions_page, key_chain, mouse_chain, modifier, prop):
-    os = session.capabilities["platformName"]
-    key_chain \
-        .pause(0) \
-        .key_down(modifier) \
-        .pause(200) \
-        .key_up(modifier)
-    outer = session.find.css("#outer", all=False)
-    mouse_chain.click(element=outer)
-    session.actions.perform([key_chain.dict, mouse_chain.dict])
-    if os == "windows":
-        expected = [
-            {"type": "mousemove"},
-            {"type": "mousedown"},
-            {"type": "mouseup"},
-            {"type": "click"},
-        ]
-    else:
-        expected = [
-            {"type": "mousemove"},
-            {"type": "mousedown"},
-            {"type": "contextmenu"},
-            {"type": "mouseup"},
-        ]
-    defaults = {
-        "altKey": False,
-        "metaKey": False,
-        "shiftKey": False,
-        "ctrlKey": False
-    }
-    for e in expected:
-        e.update(defaults)
-        if e["type"] != "mousemove":
-            e[prop] = True
-    filtered_events = [filter_dict(e, expected[0]) for e in get_events(session)]
-    assert expected == filtered_events
-
-
-def test_release_control_click(session, key_reporter, key_chain, mouse_chain):
-    # The context menu stays visible during subsequent tests so let's not
-    # display it in the first place.
-    session.execute_script("""
-        var keyReporter = document.getElementById("keys");
-        document.addEventListener("contextmenu", function(e) {
-          e.preventDefault();
-        });
-    """)
-    key_chain \
-        .pause(0) \
-        .key_down(Keys.CONTROL)
-    mouse_chain \
-        .pointer_move(0, 0, origin=key_reporter) \
-        .pointer_down()
-    session.actions.perform([key_chain.dict, mouse_chain.dict])
-    session.execute_script("""
-        var keyReporter = document.getElementById("keys");
-        keyReporter.addEventListener("mousedown", recordPointerEvent);
-        keyReporter.addEventListener("mouseup", recordPointerEvent);
-        resetEvents();
-    """)
-    session.actions.release()
-    expected = [
-        {"type": "mouseup"},
-        {"type": "keyup"},
-    ]
-    events = [filter_dict(e, expected[0]) for e in get_events(session)]
-    assert events == expected
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/key.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/key.py
deleted file mode 100644 (file)
index 50c4ed9..0000000
+++ /dev/null
@@ -1,193 +0,0 @@
-import pytest
-
-from webdriver.error import NoSuchWindowException
-
-from tests.actions.support.keys import Keys
-from tests.actions.support.refine import filter_dict, get_keys, get_events
-
-
-def test_null_response_value(session, key_chain):
-    value = key_chain.key_up("a").perform()
-    assert value is None
-
-    value = session.actions.release()
-    assert value is None
-
-
-def test_no_browsing_context(session, closed_window, key_chain):
-    with pytest.raises(NoSuchWindowException):
-        key_chain.key_up("a").perform()
-
-
-def test_lone_keyup_sends_no_events(session, key_reporter, key_chain):
-    key_chain.key_up("a").perform()
-    assert len(get_keys(key_reporter)) == 0
-    assert len(get_events(session)) == 0
-    session.actions.release()
-    assert len(get_keys(key_reporter)) == 0
-    assert len(get_events(session)) == 0
-
-
-@pytest.mark.parametrize("value,code", [
-    (u"a", "KeyA",),
-    ("a", "KeyA",),
-    (u"\"", "Quote"),
-    (u",", "Comma"),
-    (u"\u00E0", ""),
-    (u"\u0416", ""),
-    (u"@", "Digit2"),
-    (u"\u2603", ""),
-    (u"\uF6C2", ""),  # PUA
-])
-def test_single_printable_key_sends_correct_events(session,
-                                                   key_reporter,
-                                                   key_chain,
-                                                   value,
-                                                   code):
-    key_chain \
-        .key_down(value) \
-        .key_up(value) \
-        .perform()
-    expected = [
-        {"code": code, "key": value, "type": "keydown"},
-        {"code": code, "key": value, "type": "keypress"},
-        {"code": code, "key": value, "type": "keyup"},
-    ]
-    all_events = get_events(session)
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    assert events == expected
-    assert get_keys(key_reporter) == value
-
-
-@pytest.mark.parametrize("value", [
-    (u"\U0001F604"),
-    (u"\U0001F60D"),
-])
-def test_single_emoji_records_correct_key(session, key_reporter, key_chain, value):
-    # Not using key_chain.send_keys() because we always want to treat value as
-    # one character here. `len(value)` varies by platform for non-BMP characters,
-    # so we don't want to iterate over value.
-    key_chain \
-        .key_down(value) \
-        .key_up(value) \
-        .perform()
-    # events sent by major browsers are inconsistent so only check key value
-    assert get_keys(key_reporter) == value
-
-
-@pytest.mark.parametrize("value,code,key", [
-    (u"\uE050", "ShiftRight", "Shift"),
-    (u"\uE053", "OSRight", "Meta"),
-    (Keys.CONTROL, "ControlLeft", "Control"),
-])
-def test_single_modifier_key_sends_correct_events(session,
-                                                  key_reporter,
-                                                  key_chain,
-                                                  value,
-                                                  code,
-                                                  key):
-    key_chain \
-        .key_down(value) \
-        .key_up(value) \
-        .perform()
-    all_events = get_events(session)
-    expected = [
-        {"code": code, "key": key, "type": "keydown"},
-        {"code": code, "key": key, "type": "keyup"},
-    ]
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    assert events == expected
-    assert len(get_keys(key_reporter)) == 0
-
-
-@pytest.mark.parametrize("value,code,key", [
-    (Keys.ESCAPE, "Escape", "Escape"),
-    (Keys.RIGHT, "ArrowRight", "ArrowRight"),
-])
-def test_single_nonprintable_key_sends_events(session,
-                                              key_reporter,
-                                              key_chain,
-                                              value,
-                                              code,
-                                              key):
-    key_chain \
-        .key_down(value) \
-        .key_up(value) \
-        .perform()
-    expected = [
-        {"code": code, "key": key, "type": "keydown"},
-        {"code": code, "key": key, "type": "keypress"},
-        {"code": code, "key": key, "type": "keyup"},
-    ]
-    all_events = get_events(session)
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    if len(events) == 2:
-        # most browsers don't send a keypress for non-printable keys
-        assert events == [expected[0], expected[2]]
-    else:
-        assert events == expected
-    assert len(get_keys(key_reporter)) == 0
-
-
-def test_sequence_of_keydown_printable_keys_sends_events(session,
-                                                         key_reporter,
-                                                         key_chain):
-    key_chain \
-        .key_down("a") \
-        .key_down("b") \
-        .perform()
-    expected = [
-        {"code": "KeyA", "key": "a", "type": "keydown"},
-        {"code": "KeyA", "key": "a", "type": "keypress"},
-        {"code": "KeyB", "key": "b", "type": "keydown"},
-        {"code": "KeyB", "key": "b", "type": "keypress"},
-    ]
-    all_events = get_events(session)
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    assert events == expected
-    assert get_keys(key_reporter) == "ab"
-
-
-def test_sequence_of_keydown_character_keys(session, key_reporter, key_chain):
-    key_chain.send_keys("ef").perform()
-    expected = [
-        {"code": "KeyE", "key": "e", "type": "keydown"},
-        {"code": "KeyE", "key": "e", "type": "keypress"},
-        {"code": "KeyE", "key": "e", "type": "keyup"},
-        {"code": "KeyF", "key": "f", "type": "keydown"},
-        {"code": "KeyF", "key": "f", "type": "keypress"},
-        {"code": "KeyF", "key": "f", "type": "keyup"},
-    ]
-    all_events = get_events(session)
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    assert events == expected
-    assert get_keys(key_reporter) == "ef"
-
-
-def test_backspace_erases_keys(session, key_reporter, key_chain):
-    key_chain \
-        .send_keys("efcd") \
-        .send_keys([Keys.BACKSPACE, Keys.BACKSPACE]) \
-        .perform()
-    assert get_keys(key_reporter) == "ef"
-
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/key_shortcuts.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/key_shortcuts.py
deleted file mode 100644 (file)
index ec062f7..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-from tests.actions.support.keys import Keys, MODIFIER_KEY
-from tests.actions.support.refine import get_keys
-
-
-def test_mod_a_and_backspace_deletes_all_text(session, key_reporter, key_chain):
-    key_chain.send_keys("abc d") \
-             .key_down(MODIFIER_KEY) \
-             .key_down("a") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("a") \
-             .key_down(Keys.BACKSPACE) \
-             .perform()
-    assert get_keys(key_reporter) == ""
-
-
-def test_mod_a_mod_c_right_mod_v_pastes_text(session, key_reporter, key_chain):
-    initial = "abc d"
-    key_chain.send_keys(initial) \
-             .key_down(MODIFIER_KEY) \
-             .key_down("a") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("a") \
-             .key_down(MODIFIER_KEY) \
-             .key_down("c") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("c") \
-             .send_keys([Keys.RIGHT]) \
-             .key_down(MODIFIER_KEY) \
-             .key_down("v") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("v") \
-             .perform()
-    assert get_keys(key_reporter) == initial * 2
-
-
-def test_mod_a_mod_x_deletes_all_text(session, key_reporter, key_chain):
-    key_chain.send_keys("abc d") \
-             .key_down(MODIFIER_KEY) \
-             .key_down("a") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("a") \
-             .key_down(MODIFIER_KEY) \
-             .key_down("x") \
-             .key_up(MODIFIER_KEY) \
-             .key_up("x") \
-             .perform()
-    assert get_keys(key_reporter) == ""
-
-
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/modifier_click.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/modifier_click.py
deleted file mode 100644 (file)
index fbfd837..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-import pytest
-
-from tests.actions.support.refine import filter_dict, get_events
-from tests.actions.support.keys import Keys
-
-
-@pytest.mark.parametrize("modifier, prop", [
-   (Keys.ALT, "altKey"),
-   (Keys.R_ALT, "altKey"),
-   (Keys.META, "metaKey"),
-   (Keys.R_META, "metaKey"),
-   (Keys.SHIFT, "shiftKey"),
-   (Keys.R_SHIFT, "shiftKey"),
-])
-def test_modifier_click(session, test_actions_page, key_chain, mouse_chain, modifier, prop):
-    key_chain \
-        .pause(200) \
-        .key_down(modifier) \
-        .pause(200) \
-        .key_up(modifier)
-    outer = session.find.css("#outer", all=False)
-    mouse_chain.click(element=outer)
-    session.actions.perform([key_chain.dict, mouse_chain.dict])
-    expected = [
-        {"type": "mousemove"},
-        {"type": "mousedown"},
-        {"type": "mouseup"},
-        {"type": "click"},
-    ]
-    defaults = {
-        "altKey": False,
-        "metaKey": False,
-        "shiftKey": False,
-        "ctrlKey": False
-    }
-    for e in expected:
-        e.update(defaults)
-        if e["type"] != "mousemove":
-            e[prop] = True
-    filtered_events = [filter_dict(e, expected[0]) for e in get_events(session)]
-    assert expected == filtered_events
-
-
-def test_many_modifiers_click(session, test_actions_page, key_chain, mouse_chain):
-    outer = session.find.css("#outer", all=False)
-    dblclick_timeout = 800
-    key_chain \
-        .pause(0) \
-        .key_down(Keys.ALT) \
-        .key_down(Keys.SHIFT) \
-        .pause(dblclick_timeout) \
-        .key_up(Keys.ALT) \
-        .key_up(Keys.SHIFT)
-    mouse_chain \
-        .pointer_move(0, 0, origin=outer) \
-        .pause(0) \
-        .pointer_down() \
-        .pointer_up() \
-        .pause(0) \
-        .pause(0) \
-        .pointer_down()
-    session.actions.perform([key_chain.dict, mouse_chain.dict])
-    expected = [
-        {"type": "mousemove"},
-        # shift and alt pressed
-        {"type": "mousedown"},
-        {"type": "mouseup"},
-        {"type": "click"},
-        # no modifiers pressed
-        {"type": "mousedown"},
-    ]
-    defaults = {
-        "altKey": False,
-        "metaKey": False,
-        "shiftKey": False,
-        "ctrlKey": False
-    }
-    for e in expected:
-        e.update(defaults)
-    for e in expected[1:4]:
-        e["shiftKey"] = True
-        e["altKey"] = True
-    events = [filter_dict(e, expected[0]) for e in get_events(session)]
-    assert events == expected
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse.py
deleted file mode 100644 (file)
index ca8bffc..0000000
+++ /dev/null
@@ -1,144 +0,0 @@
-import pytest
-
-from webdriver.error import NoSuchWindowException
-
-from tests.actions.support.mouse import get_inview_center, get_viewport_rect
-from tests.actions.support.refine import get_events, filter_dict
-from tests.support.asserts import assert_move_to_coordinates
-from tests.support.inline import inline
-from tests.support.wait import wait
-
-
-def link_doc(dest):
-    content = "<a href=\"{}\" id=\"link\">destination</a>".format(dest)
-    return inline(content)
-
-
-def test_null_response_value(session, mouse_chain):
-    value = mouse_chain.click().perform()
-    assert value is None
-
-    value = session.actions.release()
-    assert value is None
-
-
-def test_no_browsing_context(session, closed_window, mouse_chain):
-    with pytest.raises(NoSuchWindowException):
-        mouse_chain.click().perform()
-
-
-def test_click_at_coordinates(session, test_actions_page, mouse_chain):
-    div_point = {
-        "x": 82,
-        "y": 187,
-    }
-    mouse_chain \
-        .pointer_move(div_point["x"], div_point["y"], duration=1000) \
-        .click() \
-        .perform()
-    events = get_events(session)
-    assert len(events) == 4
-    assert_move_to_coordinates(div_point, "outer", events)
-    for e in events:
-        if e["type"] != "mousedown":
-            assert e["buttons"] == 0
-        assert e["button"] == 0
-    expected = [
-        {"type": "mousedown", "buttons": 1},
-        {"type": "mouseup", "buttons": 0},
-        {"type": "click", "buttons": 0},
-    ]
-    filtered_events = [filter_dict(e, expected[0]) for e in events]
-    assert expected == filtered_events[1:]
-
-
-def test_context_menu_at_coordinates(session, test_actions_page, mouse_chain):
-    div_point = {
-        "x": 82,
-        "y": 187,
-    }
-    mouse_chain \
-        .pointer_move(div_point["x"], div_point["y"]) \
-        .pointer_down(button=2) \
-        .pointer_up(button=2) \
-        .perform()
-    events = get_events(session)
-    expected = [
-        {"type": "mousedown", "button": 2},
-        {"type": "contextmenu", "button": 2},
-    ]
-    assert len(events) == 4
-    filtered_events = [filter_dict(e, expected[0]) for e in events]
-    mousedown_contextmenu_events = [
-        x for x in filtered_events
-        if x["type"] in ["mousedown", "contextmenu"]
-    ]
-    assert expected == mousedown_contextmenu_events
-
-
-def test_click_element_center(session, test_actions_page, mouse_chain):
-    outer = session.find.css("#outer", all=False)
-    center = get_inview_center(outer.rect, get_viewport_rect(session))
-    mouse_chain.click(element=outer).perform()
-    events = get_events(session)
-    assert len(events) == 4
-    event_types = [e["type"] for e in events]
-    assert ["mousemove", "mousedown", "mouseup", "click"] == event_types
-    for e in events:
-        if e["type"] != "mousemove":
-            assert pytest.approx(e["pageX"], center["x"])
-            assert pytest.approx(e["pageY"], center["y"])
-            assert e["target"] == "outer"
-
-
-def test_click_navigation(session, url, release_actions):
-    destination = url("/webdriver/tests/actions/support/test_actions_wdspec.html")
-    start = link_doc(destination)
-
-    def click(link):
-        mouse_chain = session.actions.sequence(
-            "pointer", "pointer_id", {"pointerType": "mouse"})
-        mouse_chain.click(element=link).perform()
-
-    session.url = start
-    error_message = "Did not navigate to %s" % destination
-
-    click(session.find.css("#link", all=False))
-    wait(session, lambda s: s.url == destination, error_message)
-    # repeat steps to check behaviour after document unload
-    session.url = start
-    click(session.find.css("#link", all=False))
-    wait(session, lambda s: s.url == destination, error_message)
-
-
-@pytest.mark.parametrize("drag_duration", [0, 300, 800])
-@pytest.mark.parametrize("dx, dy", [
-    (20, 0), (0, 15), (10, 15), (-20, 0), (10, -15), (-10, -15)
-])
-def test_drag_and_drop(session,
-                       test_actions_page,
-                       mouse_chain,
-                       dx,
-                       dy,
-                       drag_duration):
-    drag_target = session.find.css("#dragTarget", all=False)
-    initial_rect = drag_target.rect
-    initial_center = get_inview_center(initial_rect, get_viewport_rect(session))
-    # Conclude chain with extra move to allow time for last queued
-    # coordinate-update of drag_target and to test that drag_target is "dropped".
-    mouse_chain \
-        .pointer_move(0, 0, origin=drag_target) \
-        .pointer_down() \
-        .pointer_move(dx, dy, duration=drag_duration, origin="pointer") \
-        .pointer_up() \
-        .pointer_move(80, 50, duration=100, origin="pointer") \
-        .perform()
-    # mouseup that ends the drag is at the expected destination
-    e = get_events(session)[1]
-    assert e["type"] == "mouseup"
-    assert pytest.approx(e["pageX"], initial_center["x"] + dx)
-    assert pytest.approx(e["pageY"], initial_center["y"] + dy)
-    # check resulting location of the dragged element
-    final_rect = drag_target.rect
-    assert initial_rect["x"] + dx == final_rect["x"]
-    assert initial_rect["y"] + dy == final_rect["y"]
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_dblclick.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_dblclick.py
deleted file mode 100644 (file)
index fc53a51..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-import pytest
-
-from tests.actions.support.refine import get_events, filter_dict
-from tests.support.asserts import assert_move_to_coordinates
-
-
-@pytest.mark.parametrize("click_pause", [0, 200])
-def test_dblclick_at_coordinates(session, test_actions_page, mouse_chain, click_pause):
-    div_point = {
-        "x": 82,
-        "y": 187,
-    }
-    mouse_chain \
-        .pointer_move(div_point["x"], div_point["y"]) \
-        .click() \
-        .pause(click_pause) \
-        .click() \
-        .perform()
-    events = get_events(session)
-    assert_move_to_coordinates(div_point, "outer", events)
-    expected = [
-        {"type": "mousedown", "button": 0},
-        {"type": "mouseup", "button": 0},
-        {"type": "click", "button": 0},
-        {"type": "mousedown", "button": 0},
-        {"type": "mouseup", "button": 0},
-        {"type": "click", "button": 0},
-        {"type": "dblclick", "button": 0},
-    ]
-    assert len(events) == 8
-    filtered_events = [filter_dict(e, expected[0]) for e in events]
-    assert expected == filtered_events[1:]
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_pause_dblclick.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/mouse_pause_dblclick.py
deleted file mode 100644 (file)
index ad17967..0000000
+++ /dev/null
@@ -1,52 +0,0 @@
-from tests.actions.support.mouse import get_inview_center, get_viewport_rect
-from tests.actions.support.refine import get_events, filter_dict
-
-_DBLCLICK_INTERVAL = 640
-
-
-def test_dblclick_with_pause_after_second_pointerdown(session, test_actions_page, mouse_chain):
-        outer = session.find.css("#outer", all=False)
-        center = get_inview_center(outer.rect, get_viewport_rect(session))
-        mouse_chain \
-            .pointer_move(int(center["x"]), int(center["y"])) \
-            .click() \
-            .pointer_down() \
-            .pause(_DBLCLICK_INTERVAL + 10) \
-            .pointer_up() \
-            .perform()
-        events = get_events(session)
-        expected = [
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "dblclick", "button": 0},
-        ]
-        assert len(events) == 8
-        filtered_events = [filter_dict(e, expected[0]) for e in events]
-        assert expected == filtered_events[1:]
-
-
-def test_no_dblclick(session, test_actions_page, mouse_chain):
-        outer = session.find.css("#outer", all=False)
-        center = get_inview_center(outer.rect, get_viewport_rect(session))
-        mouse_chain \
-            .pointer_move(int(center["x"]), int(center["y"])) \
-            .click() \
-            .pause(_DBLCLICK_INTERVAL + 10) \
-            .click() \
-            .perform()
-        events = get_events(session)
-        expected = [
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-            {"type": "mousedown", "button": 0},
-            {"type": "mouseup", "button": 0},
-            {"type": "click", "button": 0},
-        ]
-        assert len(events) == 7
-        filtered_events = [filter_dict(e, expected[0]) for e in events]
-        assert expected == filtered_events[1:]
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/pointer_origin.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/pointer_origin.py
deleted file mode 100644 (file)
index cad59f0..0000000
+++ /dev/null
@@ -1,129 +0,0 @@
-import pytest
-
-from webdriver import MoveTargetOutOfBoundsException
-
-from tests.actions.support.mouse import get_inview_center, get_viewport_rect
-from tests.support.inline import inline
-
-
-def origin_doc(inner_style, outer_style=""):
-    return inline("""
-      <div id="outer" style="{1}"
-           onmousemove="window.coords = {{x: event.clientX, y: event.clientY}}">
-        <div id="inner" style="{0}"></div>
-      </div>
-    """.format(inner_style, outer_style))
-
-
-def get_click_coordinates(session):
-    return session.execute_script("return window.coords;")
-
-
-def test_viewport_inside(session, mouse_chain):
-    point = {"x": 50, "y": 50}
-
-    session.url = origin_doc("width: 100px; height: 50px; background: green;")
-    mouse_chain \
-        .pointer_move(point["x"], point["y"], origin="viewport") \
-        .perform()
-
-    click_coords = session.execute_script("return window.coords;")
-    assert pytest.approx(click_coords["x"], point["x"])
-    assert pytest.approx(click_coords["y"], point["y"])
-
-
-def test_viewport_outside(session, mouse_chain):
-    with pytest.raises(MoveTargetOutOfBoundsException):
-        mouse_chain \
-            .pointer_move(-50, -50, origin="viewport") \
-            .perform()
-
-
-def test_pointer_inside(session, mouse_chain):
-    start_point = {"x": 50, "y": 50}
-    offset = {"x": 10, "y": 5}
-
-    session.url = origin_doc("width: 100px; height: 50px; background: green;")
-    mouse_chain \
-        .pointer_move(start_point["x"], start_point["y"]) \
-        .pointer_move(offset["x"], offset["y"], origin="pointer") \
-        .perform()
-
-    click_coords = session.execute_script("return window.coords;")
-    assert pytest.approx(click_coords["x"], start_point["x"] + offset["x"])
-    assert pytest.approx(click_coords["y"], start_point["y"] + offset["y"])
-
-
-def test_pointer_outside(session, mouse_chain):
-    with pytest.raises(MoveTargetOutOfBoundsException):
-        mouse_chain \
-            .pointer_move(-50, -50, origin="pointer") \
-            .perform()
-
-
-def test_element_center_point(session, mouse_chain):
-    session.url = origin_doc("width: 100px; height: 50px; background: green;")
-    elem = session.find.css("#inner", all=False)
-    center = get_inview_center(elem.rect, get_viewport_rect(session))
-
-    mouse_chain \
-        .pointer_move(0, 0, origin=elem) \
-        .perform()
-
-    click_coords = get_click_coordinates(session)
-    assert pytest.approx(click_coords["x"], center["x"])
-    assert pytest.approx(click_coords["y"], center["y"])
-
-
-def test_element_center_point_with_offset(session, mouse_chain):
-    session.url = origin_doc("width: 100px; height: 50px; background: green;")
-    elem = session.find.css("#inner", all=False)
-    center = get_inview_center(elem.rect, get_viewport_rect(session))
-
-    mouse_chain \
-        .pointer_move(10, 15, origin=elem) \
-        .perform()
-
-    click_coords = get_click_coordinates(session)
-    assert pytest.approx(click_coords["x"], center["x"] + 10)
-    assert pytest.approx(click_coords["y"], center["y"] + 15)
-
-
-def test_element_in_view_center_point_partly_visible(session, mouse_chain):
-    session.url = origin_doc("""width: 100px; height: 50px; background: green;
-                                position: relative; left: -50px; top: -25px;""")
-    elem = session.find.css("#inner", all=False)
-    center = get_inview_center(elem.rect, get_viewport_rect(session))
-
-    mouse_chain \
-        .pointer_move(0, 0, origin=elem) \
-        .perform()
-
-    click_coords = get_click_coordinates(session)
-    assert pytest.approx(click_coords["x"], center["x"])
-    assert pytest.approx(click_coords["y"], center["y"])
-
-
-def test_element_larger_than_viewport(session, mouse_chain):
-    session.url = origin_doc("width: 300vw; height: 300vh; background: green;")
-    elem = session.find.css("#inner", all=False)
-    center = get_inview_center(elem.rect, get_viewport_rect(session))
-
-    mouse_chain \
-        .pointer_move(0, 0, origin=elem) \
-        .perform()
-
-    click_coords = get_click_coordinates(session)
-    assert pytest.approx(click_coords["x"], center["x"])
-    assert pytest.approx(click_coords["y"], center["y"])
-
-
-def test_element_outside_of_view_port(session, mouse_chain):
-    session.url = origin_doc("""width: 100px; height: 50px; background: green;
-                                position: relative; left: -200px; top: -100px;""")
-    elem = session.find.css("#inner", all=False)
-
-    with pytest.raises(MoveTargetOutOfBoundsException):
-        mouse_chain \
-            .pointer_move(0, 0, origin=elem) \
-            .perform()
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/sequence.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/sequence.py
deleted file mode 100644 (file)
index 426dbe8..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-# META: timeout=long
-
-from tests.actions.support.refine import get_keys, filter_dict, get_events
-from tests.actions.support.keys import Keys
-
-
-def test_no_actions_send_no_events(session, key_reporter, key_chain):
-    key_chain.perform()
-    assert len(get_keys(key_reporter)) == 0
-    assert len(get_events(session)) == 0
-
-
-def test_release_char_sequence_sends_keyup_events_in_reverse(session,
-                                                             key_reporter,
-                                                             key_chain):
-    key_chain \
-        .key_down("a") \
-        .key_down("b") \
-        .perform()
-    # reset so we only see the release events
-    session.execute_script("resetEvents();")
-    session.actions.release()
-    expected = [
-        {"code": "KeyB", "key": "b", "type": "keyup"},
-        {"code": "KeyA", "key": "a", "type": "keyup"},
-    ]
-    all_events = get_events(session)
-    events = [filter_dict(e, expected[0]) for e in all_events]
-    if len(events) > 0 and events[0]["code"] == None:
-        # Remove 'code' entry if browser doesn't support it
-        expected = [filter_dict(e, {"key": "", "type": ""}) for e in expected]
-        events = [filter_dict(e, expected[0]) for e in events]
-    assert events == expected
-
-
-def test_release_no_actions_sends_no_events(session, key_reporter):
-    session.actions.release()
-    assert len(get_keys(key_reporter)) == 0
-    assert len(get_events(session)) == 0
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/special_keys.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/special_keys.py
deleted file mode 100644 (file)
index d2a4422..0000000
+++ /dev/null
@@ -1,83 +0,0 @@
-# META: timeout=long
-
-import pytest
-import time
-from tests.support.fixtures import configuration
-from tests.actions.support.keys import ALL_EVENTS, Keys
-from tests.actions.support.refine import filter_dict, get_keys, get_events
-from webdriver import error
-
-@pytest.mark.parametrize("name,expected", ALL_EVENTS.items())
-def test_webdriver_special_key_sends_keydown(session,
-                                             key_reporter,
-                                             key_chain,
-                                             name,
-                                             expected):
-    if name.startswith("F"):
-        # Prevent default behavior for F1, etc., but only after keydown
-        # bubbles up to body. (Otherwise activated browser menus/functions
-        # may interfere with subsequent tests.)
-        session.execute_script("""
-            document.body.addEventListener("keydown",
-                    function(e) { e.preventDefault() });
-        """)
-    if (session.capabilities["browserName"] == 'internet explorer'):
-        key_reporter.click()
-        session.execute_script("resetEvents();")
-    key_chain.key_down(getattr(Keys, name)).perform()
-
-    # only interested in keydown
-    first_event = get_events(session)[0]
-    # make a copy so we can throw out irrelevant keys and compare to events
-    expected = dict(expected)
-
-    del expected["value"]
-
-    # check and remove keys that aren't in expected
-    assert first_event["type"] == "keydown"
-    assert first_event["repeat"] == False
-    first_event = filter_dict(first_event, expected)
-    if first_event["code"] == None:
-        del first_event["code"]
-        del expected["code"]
-    assert first_event == expected
-    # only printable characters should be recorded in input field
-    entered_keys = get_keys(key_reporter)
-    if len(expected["key"]) == 1:
-        assert entered_keys == expected["key"]
-    else:
-        assert len(entered_keys) == 0
-
-
-@pytest.mark.parametrize("value", [
-    (u"f"),
-    (u"\u0BA8\u0BBF"),
-    (u"\u1100\u1161\u11A8"),
-])
-def test_multiple_codepoint_keys_behave_correctly(session,
-                                                  key_reporter,
-                                                  key_chain,
-                                                  value):
-    key_chain \
-        .key_down(value) \
-        .key_up(value) \
-        .perform()
-
-    assert get_keys(key_reporter) == value
-
-
-@pytest.mark.parametrize("value", [
-    (u"fa"),
-    (u"\u0BA8\u0BBFb"),
-    (u"\u0BA8\u0BBF\u0BA8"),
-    (u"\u1100\u1161\u11A8c")
-])
-def test_invalid_multiple_codepoint_keys_fail(session,
-                                              key_reporter,
-                                              key_chain,
-                                              value):
-    with pytest.raises(error.InvalidArgumentException):
-        key_chain \
-            .key_down(value) \
-            .key_up(value) \
-            .perform()
\ No newline at end of file
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/support/__init__.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/support/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/support/keys.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/support/keys.py
deleted file mode 100644 (file)
index 5131324..0000000
+++ /dev/null
@@ -1,746 +0,0 @@
-# Licensed to the Software Freedom Conservancy (SFC) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The SFC licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-"""The Keys implementation."""
-
-from inspect import getmembers
-import sys
-
-
-class Keys(object):
-    """
-    Set of special keys codes.
-
-    See also https://w3c.github.io/webdriver/#h-keyboard-actions
-    """
-
-    NULL = u"\ue000"
-    CANCEL = u"\ue001"  # ^break
-    HELP = u"\ue002"
-    BACKSPACE = u"\ue003"
-    TAB = u"\ue004"
-    CLEAR = u"\ue005"
-    RETURN = u"\ue006"
-    ENTER = u"\ue007"
-    SHIFT = u"\ue008"
-    CONTROL = u"\ue009"
-    ALT = u"\ue00a"
-    PAUSE = u"\ue00b"
-    ESCAPE = u"\ue00c"
-    SPACE = u"\ue00d"
-    PAGE_UP = u"\ue00e"
-    PAGE_DOWN = u"\ue00f"
-    END = u"\ue010"
-    HOME = u"\ue011"
-    LEFT = u"\ue012"
-    UP = u"\ue013"
-    RIGHT = u"\ue014"
-    DOWN = u"\ue015"
-    INSERT = u"\ue016"
-    DELETE = u"\ue017"
-    SEMICOLON = u"\ue018"
-    EQUALS = u"\ue019"
-
-    NUMPAD0 = u"\ue01a"  # number pad keys
-    NUMPAD1 = u"\ue01b"
-    NUMPAD2 = u"\ue01c"
-    NUMPAD3 = u"\ue01d"
-    NUMPAD4 = u"\ue01e"
-    NUMPAD5 = u"\ue01f"
-    NUMPAD6 = u"\ue020"
-    NUMPAD7 = u"\ue021"
-    NUMPAD8 = u"\ue022"
-    NUMPAD9 = u"\ue023"
-    MULTIPLY = u"\ue024"
-    ADD = u"\ue025"
-    SEPARATOR = u"\ue026"
-    SUBTRACT = u"\ue027"
-    DECIMAL = u"\ue028"
-    DIVIDE = u"\ue029"
-
-    F1 = u"\ue031"  # function  keys
-    F2 = u"\ue032"
-    F3 = u"\ue033"
-    F4 = u"\ue034"
-    F5 = u"\ue035"
-    F6 = u"\ue036"
-    F7 = u"\ue037"
-    F8 = u"\ue038"
-    F9 = u"\ue039"
-    F10 = u"\ue03a"
-    F11 = u"\ue03b"
-    F12 = u"\ue03c"
-
-    META = u"\ue03d"
-
-    # More keys from webdriver spec
-    ZENKAKUHANKAKU = u"\uE040"
-    R_SHIFT = u"\uE050"
-    R_CONTROL = u"\uE051"
-    R_ALT = u"\uE052"
-    R_META = u"\uE053"
-    R_PAGEUP = u"\uE054"
-    R_PAGEDOWN = u"\uE055"
-    R_END = u"\uE056"
-    R_HOME = u"\uE057"
-    R_ARROWLEFT = u"\uE058"
-    R_ARROWUP = u"\uE059"
-    R_ARROWRIGHT = u"\uE05A"
-    R_ARROWDOWN = u"\uE05B"
-    R_INSERT = u"\uE05C"
-    R_DELETE = u"\uE05D"
-
-
-ALL_KEYS = getmembers(Keys, lambda x: type(x) == unicode)
-
-ALL_EVENTS = {
-    "ADD": {
-        "code": "",
-        "ctrl": False,
-        "key": "+",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue025",
-    },
-    "ALT": {
-        "code": "AltLeft",
-        "ctrl": False,
-        "key": "Alt",
-        "location": 1,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00a",
-    },
-    "BACKSPACE": {
-        "code": "Backspace",
-        "ctrl": False,
-        "key": "Backspace",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue003",
-    },
-    "CANCEL": {
-        "code": "",
-        "ctrl": False,
-        "key": "Cancel",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue001",
-    },
-    "CLEAR": {
-        "code": "",
-        "ctrl": False,
-        "key": "Clear",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue005",
-    },
-    "CONTROL": {
-        "code": "ControlLeft",
-        "ctrl": True,
-        "key": "Control",
-        "location": 1,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue009",
-    },
-    "DECIMAL": {
-        "code": "NumpadDecimal",
-        "ctrl": False,
-        "key": ".",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue028",
-    },
-    "DELETE": {
-        "code": "Delete",
-        "ctrl": False,
-        "key": "Delete",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue017",
-    },
-    "DIVIDE": {
-        "code": "NumpadDivide",
-        "ctrl": False,
-        "key": "/",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue029",
-    },
-    "DOWN": {
-        "code": "ArrowDown",
-        "ctrl": False,
-        "key": "ArrowDown",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue015",
-    },
-    "END": {
-        "code": "End",
-        "ctrl": False,
-        "key": "End",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue010",
-    },
-    "ENTER": {
-        "code": "NumpadEnter",
-        "ctrl": False,
-        "key": "Enter",
-        "location": 1,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue007",
-    },
-    "EQUALS": {
-        "code": "",
-        "ctrl": False,
-        "key": "=",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue019",
-    },
-    "ESCAPE": {
-        "code": "Escape",
-        "ctrl": False,
-        "key": "Escape",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00c",
-    },
-    "F1": {
-        "code": "F1",
-        "ctrl": False,
-        "key": "F1",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue031",
-    },
-    "F10": {
-        "code": "F10",
-        "ctrl": False,
-        "key": "F10",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue03a",
-    },
-    "F11": {
-        "code": "F11",
-        "ctrl": False,
-        "key": "F11",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue03b",
-    },
-    "F12": {
-        "code": "F12",
-        "ctrl": False,
-        "key": "F12",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue03c",
-    },
-    "F2": {
-        "code": "F2",
-        "ctrl": False,
-        "key": "F2",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue032",
-    },
-    "F3": {
-        "code": "F3",
-        "ctrl": False,
-        "key": "F3",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue033",
-    },
-    "F4": {
-        "code": "F4",
-        "ctrl": False,
-        "key": "F4",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue034",
-    },
-    "F5": {
-        "code": "F5",
-        "ctrl": False,
-        "key": "F5",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue035",
-    },
-    "F6": {
-        "code": "F6",
-        "ctrl": False,
-        "key": "F6",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue036",
-    },
-    "F7": {
-        "code": "F7",
-        "ctrl": False,
-        "key": "F7",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue037",
-    },
-    "F8": {
-        "code": "F8",
-        "ctrl": False,
-        "key": "F8",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue038",
-    },
-    "F9": {
-        "code": "F9",
-        "ctrl": False,
-        "key": "F9",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue039",
-    },
-    "HELP": {
-        "code": "Help",
-        "ctrl": False,
-        "key": "Help",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue002",
-    },
-    "HOME": {
-        "code": "Home",
-        "ctrl": False,
-        "key": "Home",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue011",
-    },
-    "INSERT": {
-        "code": "Insert",
-        "ctrl": False,
-        "key": "Insert",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue016",
-    },
-    "LEFT": {
-        "code": "ArrowLeft",
-        "ctrl": False,
-        "key": "ArrowLeft",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue012",
-    },
-    "META": {
-        "code": "OSLeft",
-        "ctrl": False,
-        "key": "Meta",
-        "location": 1,
-        "meta": True,
-        "shift": False,
-        "value": u"\ue03d",
-    },
-    "MULTIPLY": {
-        "code": "NumpadMultiply",
-        "ctrl": False,
-        "key": "*",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue024",
-    },
-    "NULL": {
-        "code": "",
-        "ctrl": False,
-        "key": "Unidentified",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue000",
-    },
-    "NUMPAD0": {
-        "code": "Numpad0",
-        "ctrl": False,
-        "key": "0",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01a",
-    },
-    "NUMPAD1": {
-        "code": "Numpad1",
-        "ctrl": False,
-        "key": "1",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01b",
-    },
-    "NUMPAD2": {
-        "code": "Numpad2",
-        "ctrl": False,
-        "key": "2",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01c",
-    },
-    "NUMPAD3": {
-        "code": "Numpad3",
-        "ctrl": False,
-        "key": "3",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01d",
-    },
-    "NUMPAD4": {
-        "code": "PageDown",
-        "ctrl": False,
-        "key": "4",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01e",
-    },
-    "NUMPAD5": {
-        "code": "PageUp",
-        "ctrl": False,
-        "key": "5",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue01f",
-    },
-    "NUMPAD6": {
-        "code": "Numpad6",
-        "ctrl": False,
-        "key": "6",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue020",
-    },
-    "NUMPAD7": {
-        "code": "Numpad7",
-        "ctrl": False,
-        "key": "7",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue021",
-    },
-    "NUMPAD8": {
-        "code": "Numpad8",
-        "ctrl": False,
-        "key": "8",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue022",
-    },
-    "NUMPAD9": {
-        "code": "Numpad9",
-        "ctrl": False,
-        "key": "9",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue023",
-    },
-    "PAGE_DOWN": {
-        "code": "",
-        "ctrl": False,
-        "key": "PageDown",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00f",
-    },
-    "PAGE_UP": {
-        "code": "",
-        "ctrl": False,
-        "key": "PageUp",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00e",
-    },
-    "PAUSE": {
-        "code": "",
-        "ctrl": False,
-        "key": "Pause",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00b",
-    },
-    "RETURN": {
-        "code": "Enter",
-        "ctrl": False,
-        "key": "Enter",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue006",
-    },
-    "RIGHT": {
-        "code": "ArrowRight",
-        "ctrl": False,
-        "key": "ArrowRight",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue014",
-    },
-    "R_ALT": {
-        "code": "AltRight",
-        "ctrl": False,
-        "key": "Alt",
-        "location": 2,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue052",
-    },
-    "R_ARROWDOWN": {
-        "code": "Numpad2",
-        "ctrl": False,
-        "key": "ArrowDown",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue05b",
-    },
-    "R_ARROWLEFT": {
-        "code": "Numpad4",
-        "ctrl": False,
-        "key": "ArrowLeft",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue058",
-    },
-    "R_ARROWRIGHT": {
-        "code": "Numpad6",
-        "ctrl": False,
-        "key": "ArrowRight",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue05a",
-    },
-    "R_ARROWUP": {
-        "code": "Numpad8",
-        "ctrl": False,
-        "key": "ArrowUp",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue059",
-    },
-    "R_CONTROL": {
-        "code": "ControlRight",
-        "ctrl": True,
-        "key": "Control",
-        "location": 2,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue051",
-    },
-    "R_DELETE": {
-        "code": "NumpadDecimal",
-        "ctrl": False,
-        "key": "Delete",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue05d",
-    },
-    "R_END": {
-        "code": "Numpad1",
-        "ctrl": False,
-        "key": "End",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue056",
-    },
-    "R_HOME": {
-        "code": "Numpad7",
-        "ctrl": False,
-        "key": "Home",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue057",
-    },
-    "R_INSERT": {
-        "code": "Numpad0",
-        "ctrl": False,
-        "key": "Insert",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue05c",
-    },
-    "R_META": {
-        "code": "OSRight",
-        "ctrl": False,
-        "key": "Meta",
-        "location": 2,
-        "meta": True,
-        "shift": False,
-        "value": u"\ue053",
-    },
-    "R_PAGEDOWN": {
-        "code": "Numpad3",
-        "ctrl": False,
-        "key": "PageDown",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue055",
-    },
-    "R_PAGEUP": {
-        "code": "Numpad9",
-        "ctrl": False,
-        "key": "PageUp",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue054",
-    },
-    "R_SHIFT": {
-        "code": "ShiftRight",
-        "ctrl": False,
-        "key": "Shift",
-        "location": 2,
-        "meta": False,
-        "shift": True,
-        "value": u"\ue050",
-    },
-    "SEMICOLON": {
-        "code": "",
-        "ctrl": False,
-        "key": ";",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue018",
-    },
-    "SEPARATOR": {
-        "code": "NumpadSubtract",
-        "ctrl": False,
-        "key": ",",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue026",
-    },
-    "SHIFT": {
-        "code": "ShiftLeft",
-        "ctrl": False,
-        "key": "Shift",
-        "location": 1,
-        "meta": False,
-        "shift": True,
-        "value": u"\ue008",
-    },
-    "SPACE": {
-        "code": "Space",
-        "ctrl": False,
-        "key": " ",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue00d",
-    },
-    "SUBTRACT": {
-        "code": "",
-        "ctrl": False,
-        "key": "-",
-        "location": 3,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue027",
-    },
-    "TAB": {
-        "code": "Tab",
-        "ctrl": False,
-        "key": "Tab",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue004",
-    },
-    "UP": {
-        "code": "ArrowUp",
-        "ctrl": False,
-        "key": "ArrowUp",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue013",
-    },
-    "ZENKAKUHANKAKU": {
-        "code": "",
-        "ctrl": False,
-        "key": "ZenkakuHankaku",
-        "location": 0,
-        "meta": False,
-        "shift": False,
-        "value": u"\ue040",
-    }
-}
-
-if sys.platform == "mac":
-    MODIFIER_KEY = Keys.META
-else:
-    MODIFIER_KEY = Keys.CONTROL
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/support/mouse.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/support/mouse.py
deleted file mode 100644 (file)
index b3672eb..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-def get_viewport_rect(session):
-    return session.execute_script("""
-        return {
-          height: window.innerHeight || document.documentElement.clientHeight,
-          width: window.innerWidth || document.documentElement.clientWidth,
-        };
-    """)
-
-
-def get_inview_center(elem_rect, viewport_rect):
-    x = {
-        "left": max(0, min(elem_rect["x"], elem_rect["x"] + elem_rect["width"])),
-        "right": min(viewport_rect["width"], max(elem_rect["x"],
-                                                 elem_rect["x"] + elem_rect["width"])),
-    }
-
-    y = {
-        "top": max(0, min(elem_rect["y"], elem_rect["y"] + elem_rect["height"])),
-        "bottom": min(viewport_rect["height"], max(elem_rect["y"],
-                                                   elem_rect["y"] + elem_rect["height"])),
-    }
-
-    return {
-        "x": (x["left"] + x["right"]) / 2,
-        "y": (y["top"] + y["bottom"]) / 2,
-    }
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/support/refine.py b/WebDriverTests/imported/w3c/webdriver/tests/actions/support/refine.py
deleted file mode 100644 (file)
index 3a6d63e..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-def get_events(session):
-    """Return list of key events recorded in the test_keys_page fixture."""
-    events = session.execute_script("return allEvents.events;") or []
-    # `key` values in `allEvents` may be escaped (see `escapeSurrogateHalf` in
-    # test_keys_wdspec.html), so this converts them back into unicode literals.
-    for e in events:
-        # example: turn "U+d83d" (6 chars) into u"\ud83d" (1 char)
-        if "key" in e and e["key"].startswith(u"U+"):
-            key = e["key"]
-            hex_suffix = key[key.index("+") + 1:]
-            e["key"] = unichr(int(hex_suffix, 16))
-    return events
-
-
-def get_keys(input_el):
-    """Get printable characters entered into `input_el`.
-
-    :param input_el: HTML input element.
-    """
-    rv = input_el.property("value")
-    if rv is None:
-        return ""
-    else:
-        return rv
-
-
-def filter_dict(source, d):
-    """Filter `source` dict to only contain same keys as `d` dict.
-
-    :param source: dictionary to filter.
-    :param d: dictionary whose keys determine the filtering.
-    """
-    return {k: source[k] for k in d.keys()}
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/actions/support/test_actions_wdspec.html b/WebDriverTests/imported/w3c/webdriver/tests/actions/support/test_actions_wdspec.html
deleted file mode 100644 (file)
index 6f844cd..0000000
+++ /dev/null
@@ -1,197 +0,0 @@
-<!doctype html>
-<meta charset=utf-8>
-<html>
-<head>
-    <title>Test Actions</title>
-    <style>
-      div { padding:0px; margin: 0px; }
-      #trackPointer { position: fixed; }
-      #resultContainer { width: 600px; height: 60px; }
-      .area { width: 100px; height: 50px; background-color: #ccc; }
-      .block { width: 5px; height: 5px; border: solid 1px red; }
-      #dragArea { position: relative; }
-      #dragTarget { position: absolute; top:22px; left:47px;}
-    </style>
-    <script>
-        "use strict";
-        var els = {};
-        var allEvents = { events: [] };
-        function displayMessage(message) {
-            document.getElementById("events").innerHTML = "<p>" + message + "</p>";
-        }
-
-        function appendMessage(message) {
-            document.getElementById("events").innerHTML += "<p>" + message + "</p>";
-        }
-
-        /**
-         * Escape |key| if it's in a surrogate-half character range.
-         *
-         * Example: given "\ud83d" return "U+d83d".
-         *
-         * Otherwise JSON.stringify will convert it to U+FFFD (REPLACEMENT CHARACTER)
-         * when returning a value from executeScript, for example.
-         */
-        function escapeSurrogateHalf(key) {
-          if (typeof key !== "undefined" && key.length === 1) {
-            var charCode = key.charCodeAt(0);
-            var highSurrogate = charCode >= 0xD800 && charCode <= 0xDBFF;
-            var surrogate = highSurrogate || (charCode >= 0xDC00 && charCode <= 0xDFFF);
-            if (surrogate) {
-              key = "U+" + charCode.toString(16);
-            }
-          }
-          return key;
-        }
-
-        function recordKeyboardEvent(event) {
-          var key = escapeSurrogateHalf(event.key);
-          allEvents.events.push({
-            "code": event.code,
-            "key": key,
-            "which": event.which,
-            "location": event.location,
-            "ctrl": event.ctrlKey,
-            "meta": event.metaKey,
-            "shift": event.shiftKey,
-            "repeat": event.repeat,
-            "type": event.type
-          });
-          appendMessage(event.type + " " +
-              "code: " + event.code + ", " +
-              "key: " + key + ", " +
-              "which: " + event.which + ", " +
-              "keyCode: " + event.keyCode);
-        }
-
-        function recordPointerEvent(event) {
-          if (event.type === "contextmenu") {
-            event.preventDefault();
-          }
-          allEvents.events.push({
-            "type": event.type,
-            "button": event.button,
-            "buttons": event.buttons,
-            "pageX": event.pageX,
-            "pageY": event.pageY,
-            "ctrlKey": event.ctrlKey,
-            "metaKey": event.metaKey,
-            "altKey": event.altKey,
-            "shiftKey": event.shiftKey,
-            "target": event.target.id
-          });
-          appendMessage(event.type + " " +
-              "button: " + event.button + ", " +
-              "pageX: " + event.pageX + ", " +
-              "pageY: " + event.pageY + ", " +
-              "button: " + event.button + ", " +
-              "buttons: " + event.buttons + ", " +
-              "ctrlKey: " + event.ctrlKey + ", " +
-              "altKey: " + event.altKey + ", " +
-              "metaKey: " + event.metaKey + ", " +
-              "shiftKey: " + event.shiftKey + ", " +
-              "target id: " + event.target.id);
-        }
-
-        function recordFirstPointerMove(event) {
-          recordPointerEvent(event);
-          window.removeEventListener("mousemove", recordFirstPointerMove);
-        }
-
-        function grabOnce(event) {
-          grab(event);
-          els.dragTarget.removeEventListener("mousedown", grabOnce);
-        }
-
-        function dropOnce(moveHandler) {
-          return function (event) {
-            moveHandler(event);
-            els.dragArea.removeEventListener("mouseup", dropOnce);
-          }
-        }
-
-        function resetEvents() {
-          allEvents.events.length = 0;
-          displayMessage("");
-        }
-
-        function drop(moveHandler) {
-          return function (event) {
-            els.dragArea.removeEventListener("mousemove", moveHandler);
-            els.dragTarget.style.backgroundColor = "yellow";
-            els.dragTarget.addEventListener("mousedown", grab);
-            recordPointerEvent(event);
-          };
-        }
-
-        function move(el, offsetX, offsetY, timeout) {
-          return function(event) {
-            setTimeout(function() {
-              el.style.top = event.clientY + offsetY + "px";
-              el.style.left = event.clientX + offsetX + "px";
-            }, timeout);
-          };
-        }
-
-        function grab(event) {
-          event.target.style.backgroundColor = "red";
-          let boxRect = event.target.getBoundingClientRect();
-          let areaRect = event.target.parentElement.getBoundingClientRect();
-          let moveHandler = move(
-              event.target,
-              // coordinates of dragTarget must be relative to dragArea such that
-              // dragTarget remains under the pointer
-              -(areaRect.left + (event.clientX - boxRect.left)),
-              -(areaRect.top + (event.clientY - boxRect.top)),
-              20);
-          els.dragArea.addEventListener("mousemove", moveHandler);
-          els.dragArea.addEventListener("mouseup", dropOnce(drop(moveHandler)));
-        }
-
-        document.addEventListener("DOMContentLoaded", function() {
-          var keyReporter = document.getElementById("keys");
-          keyReporter.addEventListener("keyup", recordKeyboardEvent);
-          keyReporter.addEventListener("keypress", recordKeyboardEvent);
-          keyReporter.addEventListener("keydown", recordKeyboardEvent);
-
-          var outer = document.getElementById("outer");
-          outer.addEventListener("click", recordPointerEvent);
-          outer.addEventListener("dblclick", recordPointerEvent);
-          outer.addEventListener("mousedown", recordPointerEvent);
-          outer.addEventListener("mouseup", recordPointerEvent);
-          outer.addEventListener("contextmenu", recordPointerEvent);
-
-          window.addEventListener("mousemove", recordFirstPointerMove);
-          //visual cue for mousemove
-          var pointer = document.getElementById("trackPointer");
-          window.addEventListener("mousemove", move(pointer, 15, 15, 30));
-          // drag and drop
-          els.dragArea = document.getElementById("dragArea");
-          els.dragTarget = document.getElementById("dragTarget");
-          els.dragTarget.addEventListener("mousedown", grabOnce);
-        });
-    </script>
-</head>
-<body>
-  <div id="trackPointer" class="block"></div>
-  <div>
-    <h2>KeyReporter</h2>
-    <input type="text" id="keys" size="80">
-  </div>
-  <div>
-    <h2>ClickReporter</h2>
-    <div id="outer" class="area">
-    </div>
-  </div>
-  <div>
-    <h2>DragReporter</h2>
-    <div id="dragArea" class="area">
-      <div id="dragTarget" class="block"></div>
-    </div>
-  </div>
-  <div id="resultContainer">
-    <h2>Events</h2>
-    <div id="events"></div>
-  </div>
-</body>
-</html>
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/page_source/__init__.py b/WebDriverTests/imported/w3c/webdriver/tests/page_source/__init__.py
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/page_source/source.py b/WebDriverTests/imported/w3c/webdriver/tests/page_source/source.py
deleted file mode 100644 (file)
index 0deb1b4..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-from tests.support.asserts import assert_error, assert_success
-from tests.support.inline import inline
-
-
-def get_page_source(session):
-    return session.transport.send(
-        "GET", "session/{session_id}/source".format(**vars(session)))
-
-
-def test_no_browsing_context(session, closed_window):
-    response = get_page_source(session)
-    assert_error(response, "no such window")
-
-
-def test_source_matches_outer_html(session):
-    session.url = inline("<html><head><title>Cheese</title><body>Peas")
-
-    expected = session.execute_script("return document.documentElement.outerHTML")
-
-    response = get_page_source(session)
-    assert_success(response, expected)
diff --git a/WebDriverTests/imported/w3c/webdriver/tests/support/wait.py b/WebDriverTests/imported/w3c/webdriver/tests/support/wait.py
deleted file mode 100644 (file)
index 6f439ec..0000000
+++ /dev/null
@@ -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))