Bug 1687052 - Part 2: Remove test_wpt_pointerevent_releasepointercapture_onpointerup_mouse-manual.html; r=masayuki

pointerevent_releasepointercapture_onpointerup_mouse-manual.html are no longer a
manual test in wpt after using web-driver, and we could pass the wpt one,
- https://wpt.fyi/results/pointerevents/pointerevent_releasepointercapture_onpointerup_mouse.html?label=experimental&label=master&aligned

Depends on D102047

Differential Revision: https://phabricator.services.mozilla.com/D102048
This commit is contained in:
Edgar Chen 2021-01-15 23:33:59 +00:00
Родитель 16481bafe5
Коммит a1cdfafa0c
3 изменённых файлов: 0 добавлений и 108 удалений

Просмотреть файл

@ -71,8 +71,6 @@ support-files = wpt/pointerevent_pointerout_pen-manual.html
support-files = wpt/pointerevent_releasepointercapture_events_to_original_target-manual.html
[test_wpt_pointerevent_releasepointercapture_onpointercancel_touch-manual.html]
support-files = wpt/pointerevent_releasepointercapture_onpointercancel_touch-manual.html
[test_wpt_pointerevent_releasepointercapture_onpointerup_mouse-manual.html]
support-files = wpt/pointerevent_releasepointercapture_onpointerup_mouse-manual.html
[test_wpt_pointerevent_releasepointercapture_release_right_after_capture-manual.html]
support-files = wpt/pointerevent_releasepointercapture_release_right_after_capture-manual.html
[test_wpt_pointerevent_sequence_at_implicit_release_on_drag-manual.html]

Просмотреть файл

@ -1,27 +0,0 @@
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
-->
<head>
<meta charset="utf-8">
<title>Test for Bug 1000870</title>
<meta name="author" content="Maksim Lebedev" />
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script type="text/javascript" src="mochitest_support_external.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
runTestInNewWindow("wpt/pointerevent_releasepointercapture_onpointerup_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "btnCapture", "mousedown");
sendMouseEvent(int_win, "btnCapture", "mouseup");
}
</script>
</head>
<body>
</body>
</html>

Просмотреть файл

@ -1,79 +0,0 @@
<!doctype html>
<html>
<head>
<title>Release capture on pointerup</title>
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="pointerevent_support.js"></script>
</head>
<body>
<h1>Pointer Events Capture Test - release capture on pointerup</h1>
<h4>
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
<ol>
<li> Press and hold left mouse button over "Set Capture" button
<li> Release left mouse button anywhere over the document. "lostpointercapture" should be logged inside of the black rectangle immediately after "pointerup"
</ol>
</h4>
Test passes if the proper behavior of the events is observed.
<div id="target0" style="background:black; color:white"></div>
<br>
<input type="button" id="btnCapture" value="Set Capture">
<script type='text/javascript'>
var isPointerCapture = false;
var pointerupGot = false;
var count=0;
var detected_pointertypes = {};
add_completion_callback(showPointerTypes);
var target0 = document.getElementById('target0');
var captureButton = document.getElementById('btnCapture');
setup({ explicit_done: true });
window.onload = function() {
on_event(captureButton, 'pointerdown', function(e) {
detected_pointertypes[e.pointerType] = true;
if(isPointerCapture == false) {
isPointerCapture = true;
sPointerCapture(e);
pointerupGot = false;
}
});
on_event(target0, 'gotpointercapture', function(e) {
log("gotpointercapture", document.getElementById('target0'));
});
// If the setPointerCapture method has been invoked on the pointer specified by pointerId,
// and the releasePointerCapture method has not been invoked,a lostpointercapture event must be
// dispatched to the element on which the setPointerCapture method was invoked. Furthermore,
// subsequent events for the specified pointer must follow normal hit testing mechanisms for
// determining the event target.
// TA: 3.7
on_event(target0, 'lostpointercapture', function(e) {
test(function() {
assert_true(pointerupGot, "pointerup was received before lostpointercapture")
}, "pointerup was received before lostpointercapture");
log("lostpointercapture", document.getElementById('target0'));
isPointerCapture = false;
done();
});
on_event(target0, 'pointerup', function(e) {
log("pointerup", target0);
pointerupGot = true;
});
}
</script>
<h1>Pointer Events Capture Test</h1>
<div id="complete-notice">
<p>Test complete: Scroll to Summary to view Pass/Fail Results.</p>
<p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
</div>
<div id="log"></div>
</body>
</html>