Bug 1693194 - Split wpt pointerevent_attributes_hoverable_pointers.html; r=jgraham

Differential Revision: https://phabricator.services.mozilla.com/D105376
This commit is contained in:
Edgar Chen 2021-02-18 15:41:06 +00:00
parent c068c92afd
commit 6cf20e1a61
2 changed files with 264 additions and 15 deletions

View File

@ -1,2 +1,256 @@
[pointerevent_attributes_hoverable_pointers.html]
[pointerevent_attributes_hoverable_pointers.html?pen]
expected: ERROR
[pointerevent_attributes_hoverable_pointers.html?mouse]
[ mouse pointerover.fromElement attribute exists]
expected: FAIL
[ mouse pointerover.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerover.fromElement value is null.]
expected: FAIL
[ mouse pointerover.toElement attribute exists]
expected: FAIL
[ mouse pointerover.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerover.toElement value is null.]
expected: FAIL
[ mouse pointerenter.fromElement attribute exists]
expected: FAIL
[ mouse pointerenter.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerenter.fromElement value is null.]
expected: FAIL
[ mouse pointerenter.toElement attribute exists]
expected: FAIL
[ mouse pointerenter.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerenter.toElement value is null.]
expected: FAIL
[ mouse pointermove.fromElement attribute exists]
expected: FAIL
[ mouse pointermove.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointermove.fromElement value is null.]
expected: FAIL
[ mouse pointermove.toElement attribute exists]
expected: FAIL
[ mouse pointermove.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointermove.toElement value is null.]
expected: FAIL
[ mouse pointerdown.fromElement attribute exists]
expected: FAIL
[ mouse pointerdown.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerdown.fromElement value is null.]
expected: FAIL
[ mouse pointerdown.toElement attribute exists]
expected: FAIL
[ mouse pointerdown.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerdown.toElement value is null.]
expected: FAIL
[ mouse pointerup.fromElement attribute exists]
expected: FAIL
[ mouse pointerup.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerup.fromElement value is null.]
expected: FAIL
[ mouse pointerup.toElement attribute exists]
expected: FAIL
[ mouse pointerup.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerup.toElement value is null.]
expected: FAIL
[ mouse pointerout.fromElement attribute exists]
expected: FAIL
[ mouse pointerout.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerout.fromElement value is null.]
expected: FAIL
[ mouse pointerout.toElement attribute exists]
expected: FAIL
[ mouse pointerout.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerout.toElement value is null.]
expected: FAIL
[ mouse pointerleave.fromElement attribute exists]
expected: FAIL
[ mouse pointerleave.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerleave.fromElement value is null.]
expected: FAIL
[ mouse pointerleave.toElement attribute exists]
expected: FAIL
[ mouse pointerleave.toElement IDL type object (JS type was undefined)]
expected: FAIL
[ mouse pointerleave.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerover.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerover.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerover.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerover.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerover.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerover.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerenter.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerenter.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerenter.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerenter.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerenter.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerenter.toElement value is null.]
expected: FAIL
[Inner frame mouse pointermove.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointermove.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointermove.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointermove.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointermove.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointermove.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerdown.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerdown.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerdown.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerdown.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerdown.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerdown.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerup.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerup.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerup.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerup.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerup.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerup.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerout.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerout.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerout.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerout.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerout.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerout.toElement value is null.]
expected: FAIL
[Inner frame mouse pointerleave.fromElement attribute exists]
expected: FAIL
[Inner frame mouse pointerleave.fromElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerleave.fromElement value is null.]
expected: FAIL
[Inner frame mouse pointerleave.toElement attribute exists]
expected: FAIL
[Inner frame mouse pointerleave.toElement IDL type object (JS type was undefined)]
expected: FAIL
[Inner frame mouse pointerleave.toElement value is null.]
expected: FAIL

View File

@ -3,6 +3,8 @@
<head>
<title>Pointer Events properties tests</title>
<meta name="viewport" content="width=device-width">
<meta name="variant" content="?mouse">
<meta name="variant" content="?pen">
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
@ -12,6 +14,7 @@
<!-- Additional helper script for common checks across event types -->
<script type="text/javascript" src="pointerevent_support.js"></script>
<script>
var input = location.search.substring(1);
var detected_pointertypes = {};
var detected_eventTypes = {};
var eventList = ['pointerover', 'pointerenter', 'pointermove', 'pointerdown', 'pointerup', 'pointerout', 'pointerleave'];
@ -92,7 +95,7 @@
}
function run() {
var test_pointerEvent = setup_pointerevent_test("pointerevent attributes", HOVERABLE_POINTERS);
var test_pointerEvent = setup_pointerevent_test("pointerevent attributes", [input]);
var square1 = document.getElementById("square1");
var rectSquare1 = square1.getBoundingClientRect();
var innerFrame = document.getElementById('innerFrame');
@ -124,23 +127,15 @@
});
});
// Inject mouse and pen inputs.
actions_promise = clickInTarget("mouse", square1).then(function() {
return moveToDocument("mouse");
// Inject mouse or pen inputs.
actions_promise = clickInTarget(input, square1).then(function() {
return moveToDocument(input);
}).then(function() {
return clickInTarget("mouse", square2);
return clickInTarget(input, square2);
}).then(function() {
return moveToDocument("mouse");
return moveToDocument(input);
}).then(function() {
test_pointerEvent.done();
}).then(function() {
return clickInTarget("pen", square1);
}).then(function() {
return moveToDocument("pen");
}).then(function() {
return clickInTarget("pen", square2);
}).then(function() {
return moveToDocument("pen");
});
}
</script>