mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 122a4672fa0dc554a6e7528fa3487fd907c792ee
This commit is contained in:
parent
fb1123495f
commit
93d826f7ba
301 changed files with 4775 additions and 1769 deletions
|
@ -1,9 +0,0 @@
|
|||
[actionsWithKeyPressed.html]
|
||||
expected:
|
||||
if product == "safari" or product == "firefox": ERROR
|
||||
|
||||
|
||||
[TestDriver actions: actions with key pressed]
|
||||
expected:
|
||||
if product == "chrome": FAIL
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<meta charset="utf-8">
|
||||
<title>TestDriver actions: actions with key pressed</title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script src="/resources/testdriver.js"></script>
|
||||
<script src="/resources/testdriver-actions.js"></script>
|
||||
<script src="/resources/testdriver-vendor.js"></script>
|
||||
|
||||
<style>
|
||||
div#test1, div#test2 {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: blue;
|
||||
}
|
||||
|
||||
div#test2 {
|
||||
position: fixed;
|
||||
top: 100px;
|
||||
left: 0;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
background-color: green;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="test1">
|
||||
</div>
|
||||
|
||||
<div id="test2">
|
||||
</div>
|
||||
|
||||
<script>
|
||||
let keys = [];
|
||||
|
||||
async_test(t => {
|
||||
let test1 = document.getElementById("test1");
|
||||
let test2 = document.getElementById("test2");
|
||||
document.getElementById("test1").addEventListener("click",
|
||||
e => {keys.push(e.getModifierState("Control"))});
|
||||
document.getElementById("test2").addEventListener("click",
|
||||
e => {keys.push(e.getModifierState("Control"))});
|
||||
|
||||
let actions = new test_driver.Actions()
|
||||
.keyDown("\uE009")
|
||||
.addTick()
|
||||
.pointerMove(0, 0, {origin: test1})
|
||||
.pointerDown()
|
||||
.pointerUp()
|
||||
.pointerMove(0, 0, {origin: test2})
|
||||
.pointerDown()
|
||||
.pointerUp()
|
||||
.addTick()
|
||||
.keyUp("\uE009")
|
||||
.addTick()
|
||||
.pointerMove(0, 0, {origin: test1})
|
||||
.pointerDown()
|
||||
.pointerUp();
|
||||
|
||||
actions.send()
|
||||
.then(t.step_func_done(() => assert_array_equals(keys, [true, true, false])))
|
||||
.catch(e => t.step_func(() => assert_unreached("Actions sequence failed " + e)));
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue