Bug 1890672 - Remove test_wpt_pointerevent_pointerId_scope-manual.html; r=smaug

This corresponding wpt test is no longer a manual test,
https://wpt.fyi/results/pointerevents/pointerevent_pointerId_scope.html?label=experimental&label=master&aligned.
And we pass the wpt one.

Differential Revision: https://phabricator.services.mozilla.com/D207086
This commit is contained in:
Edgar Chen 2024-04-10 21:33:25 +00:00
parent cbc96eee66
commit 46cdda5158
3 changed files with 0 additions and 113 deletions

View File

@ -147,10 +147,6 @@ skip-if = [
support-files = ["wpt/pointerevent_multiple_primary_pointers_boundary_events-manual.html"]
disabled = "should be investigated"
["test_wpt_pointerevent_pointerId_scope-manual.html"]
support-files = ["wpt/resources/pointerevent_pointerId_scope-iframe.html"]
disabled = "should be investigated"
["test_wpt_pointerevent_pointercancel_touch-manual.html"]
support-files = ["wpt/pointerevent_pointercancel_touch-manual.html"]
skip-if = [

View File

@ -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_pointerId_scope-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
sendTouchEvent(int_win, "target0", "touchend");
}
</script>
</head>
<body>
</body>
</html>

View File

@ -1,82 +0,0 @@
<!doctype html>
<html>
<!--
Test cases for Pointer Events v1 spec
This document references Test Assertions (abbrev TA below) written by Cathy Chan
http://www.w3.org/wiki/PointerEvents/TestAssertions
-->
<head>
<title>Pointer Events pointerdown tests</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>
<!-- Additional helper script for common checks across event types -->
<script type="text/javascript" src="pointerevent_support.js"></script>
<script>
var detected_pointertypes = {};
var test_pointerEvent = async_test("pointerId of an active pointer is the same across iframes");
// showPointerTypes is defined in pointerevent_support.js
// Requirements: the callback function will reference the test_pointerEvent object and
// will fail unless the async_test is created with the var name "test_pointerEvent".
add_completion_callback(showPointerTypes);
var detected_pointertypes = {};
function run() {
var target0 = document.getElementById("target0");
var pointerover_pointerId = null;
var pointerover_pointerType = null;
var eventList = ['pointerenter', 'pointerover', 'pointermove', 'pointerout', 'pointerleave'];
var receivedEvents = {};
var receivedEventsInnerFrame = {};
function checkPointerId(event, inner) {
detected_pointertypes[event.pointerType] = true;
var eventName = (inner ? "inner frame " : "" ) + event.type;
test_pointerEvent.step(function() {
assert_equals(event.pointerId, pointerover_pointerId, "PointerId of " + eventName + " is not correct");
assert_equals(event.pointerType, pointerover_pointerType, "PointerType of " + eventName + " is not correct");
}, eventName + ".pointerId were the same as first pointerover");
}
on_event(window, "message", function(event) {
var pe_event = JSON.parse(event.data);
receivedEventsInnerFrame[pe_event.type] = 1;
checkPointerId(pe_event, true);
if (Object.keys(receivedEvents).length == eventList.length && Object.keys(receivedEventsInnerFrame).length == eventList.length)
test_pointerEvent.done();
});
eventList.forEach(function(eventName) {
on_event(target0, eventName, function (event) {
if (pointerover_pointerId === null && event.type == 'pointerover') {
pointerover_pointerId = event.pointerId;
pointerover_pointerType = event.pointerType;
} else {
checkPointerId(event, false);
}
receivedEvents[event.type] = 1;
});
});
}
</script>
</head>
<body onload="run()">
<h1>Pointer Events pointerdown tests</h1>
Complete the following actions:
<ol>
<li>Start with your pointing device outside of black box, then move it into black box. If using touch just press in black box and don't release.
<li>Move your pointing device into purple box (without leaving the digitizer range if you are using hover supported pen or without releasing touch if using touch). Then move it out of the purple box.
</ol>
<div id="target0" class="touchActionNone">
</div>
<iframe src="resources/pointerevent_pointerId_scope-iframe.html" id="innerframe"></iframe>
<div id="complete-notice">
<p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
<p>Refresh the page to run the tests again with a different pointer type.</p>
</div>
<div id="log"></div>
</body>
</html>