mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
17 lines
597 B
HTML
17 lines
597 B
HTML
<!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>
|