Bug 1332279 - Test key actions backspace behaviour; r=ato
authorMaja Frydrychowicz <mjzffr@gmail.com>
Sat, 01 Apr 2017 02:41:56 -0400
changeset 350888 4a7345bdd3d47094acb8434581906393349ff99d
parent 350887 e5a01985b6ce5f59f737fcea36272ad6b3862bb6
child 350889 a8e661d8591cdfa2afa3b5753c18ab2317a8f9fa
push id39972
push usermjzffr@gmail.com
push dateMon, 03 Apr 2017 03:34:06 +0000
treeherderautoland@4a7345bdd3d4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1332279
milestone55.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1332279 - Test key actions backspace behaviour; r=ato MozReview-Commit-ID: DhQvVnHTHZk
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/webdriver/actions/key.py
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -208141,17 +208141,17 @@
    "da39a3ee5e6b4b0d3255bfef95601890afd80709",
    "support"
   ],
   "webdriver/actions/conftest.py": [
    "78b6434a88021b7f56e5a7bf3e858fc9558a7c19",
    "wdspec"
   ],
   "webdriver/actions/key.py": [
-   "7d3308182ea94f37c221a8f88392f129bb6d328c",
+   "918bcadf034657dfcb679fd92c8a11efe34bfedf",
    "wdspec"
   ],
   "webdriver/actions/mouse.py": [
    "640ae3074200938ad63f77627d6645efa8c5716e",
    "wdspec"
   ],
   "webdriver/actions/sequence.py": [
    "d80f382863e52ff223db735a2a551197e570774f",
--- a/testing/web-platform/tests/webdriver/actions/key.py
+++ b/testing/web-platform/tests/webdriver/actions/key.py
@@ -138,8 +138,17 @@ def test_sequence_of_keydown_character_k
         {"code": "KeyE", "key": "e", "type": "keyup"},
         {"code": "KeyF", "key": "f", "type": "keydown"},
         {"code": "KeyF", "key": "f", "type": "keypress"},
         {"code": "KeyF", "key": "f", "type": "keyup"},
     ]
     events = [filter_dict(e, expected[0]) for e in get_events(session)]
     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"
+