mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Update web-platform-tests to revision 3f9178031eec5374c9a7d5709a7e11ba4a1955ed
This commit is contained in:
parent
4997ec26c2
commit
a5af9a106a
192 changed files with 3943 additions and 1927 deletions
|
@ -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"},
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue