mirror of
https://github.com/servo/servo.git
synced 2025-09-12 07:58:20 +01:00
Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985
This commit is contained in:
parent
43a4f01647
commit
64e0a52537
12717 changed files with 59835 additions and 59820 deletions
17
tests/wpt/web-platform-tests/css/cssom-view/mouseEvent.html
Normal file
17
tests/wpt/web-platform-tests/css/cssom-view/mouseEvent.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!doctype html>
|
||||
<meta charset=utf-8>
|
||||
<head>
|
||||
<title>CSSOM MouseEvent tests</title>
|
||||
<script src=/resources/testharness.js></script>
|
||||
<script src=/resources/testharnessreport.js></script>
|
||||
<script>
|
||||
test(function () {
|
||||
var mouseEvent = new MouseEvent('mousedown', {clientX: 10, clientY: 20});
|
||||
assert_equals(mouseEvent.x, 10);
|
||||
assert_equals(mouseEvent.y, 20);
|
||||
mouseEvent = new MouseEvent('mousedown', {clientX: 30, clientY: 40});
|
||||
assert_equals(mouseEvent.x, 30);
|
||||
assert_equals(mouseEvent.y, 40);
|
||||
}, 'MouseEvent\'s x and y must be equal to clientX and clientY.');
|
||||
</script>
|
||||
</head>
|
Loading…
Add table
Add a link
Reference in a new issue