Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed

This commit is contained in:
WPT Sync Bot 2018-07-22 21:05:03 -04:00
parent 4997ec26c2
commit a5af9a106a
192 changed files with 3943 additions and 1927 deletions

View file

@ -18,7 +18,7 @@ def test_control_click(session, test_actions_page, key_chain, mouse_chain, modif
outer = session.find.css("#outer", all=False)
mouse_chain.click(element=outer)
session.actions.perform([key_chain.dict, mouse_chain.dict])
if os == "windows_nt":
if os == "windows":
expected = [
{"type": "mousemove"},
{"type": "mousedown"},

View file

@ -15,9 +15,7 @@
# specific language governing permissions and limitations
# under the License.
"""
The Keys implementation.
"""
"""The Keys implementation."""
from inspect import getmembers
import sys
@ -27,7 +25,7 @@ class Keys(object):
"""
Set of special keys codes.
See also https://w3c.github.io/webdriver/webdriver-spec.html#h-keyboard-actions
See also https://w3c.github.io/webdriver/#h-keyboard-actions
"""
NULL = u"\ue000"
@ -742,7 +740,7 @@ ALL_EVENTS = {
}
}
if sys.platform == 'darwin':
if sys.platform == "mac":
MODIFIER_KEY = Keys.META
else:
MODIFIER_KEY = Keys.CONTROL

View file

@ -334,7 +334,7 @@ def test_negative_x_y(session):
# On macOS, windows can only be moved off the screen on the
# horizontal axis. The system menu bar also blocks windows from
# being moved to (0,0).
elif os == "darwin":
elif os == "mac":
assert_success(response, {"x": -8,
"y": 23,
"width": original["width"],
@ -342,7 +342,7 @@ def test_negative_x_y(session):
# It turns out that Windows is the only platform on which the
# window can be reliably positioned off-screen.
elif os == "windows_nt":
elif os == "windows":
assert_success(response, {"x": -8,
"y": -8,
"width": original["width"],