зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1621828 - Remove test_pointerevent_setpointercapture_disconnected-manual.html; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D66560 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
130b9fec28
Коммит
96c57ab3c0
|
@ -96,8 +96,6 @@ support-files = pointerevent_releasepointercapture_onpointerup_mouse-manual.html
|
|||
support-files = pointerevent_releasepointercapture_release_right_after_capture-manual.html
|
||||
[test_pointerevent_sequence_at_implicit_release_on_drag-manual.html]
|
||||
support-files = pointerevent_sequence_at_implicit_release_on_drag-manual.html
|
||||
[test_pointerevent_setpointercapture_disconnected-manual.html]
|
||||
support-files = pointerevent_setpointercapture_disconnected-manual.html
|
||||
[test_pointerevent_setpointercapture_inactive_button_mouse-manual.html]
|
||||
support-files = pointerevent_setpointercapture_inactive_button_mouse-manual.html
|
||||
skip-if = (verify && (os == 'linux' || os == 'mac'))
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<title>setPointerCapture() throws on disconnected node</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>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
add_completion_callback(showPointerTypes);
|
||||
var test_setPointerCapture = async_test("setPointerCapture: DOMException InvalidStateError");
|
||||
|
||||
function run() {
|
||||
var target0 = document.getElementById("target0");
|
||||
var target1 = document.getElementById("target1");
|
||||
|
||||
target1.parentNode.removeChild(target1);
|
||||
|
||||
on_event(target0, "pointerdown", function (event) {
|
||||
detected_pointertypes[ event.pointerType ] = true;
|
||||
try {
|
||||
target1.setPointerCapture(event.pointerId);
|
||||
|
||||
test_setPointerCapture.step(function() {
|
||||
assert_unreached("DOMException: InvalidStateError should have been thrown.");
|
||||
});
|
||||
} catch (e) {
|
||||
// TA: 13.4
|
||||
test_setPointerCapture.step(function() {
|
||||
assert_equals(e.name, "InvalidStateError", "DOMException should be InvalidStateError");
|
||||
});
|
||||
}
|
||||
test_setPointerCapture.done();
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: DOMException InvalidStateError</h1>
|
||||
<h4>Test Description:
|
||||
When the setPointerCapture method is invoked, if the target node does not participate in its ownerDocument's tree, a DOMException with the name InvalidStateError must be thrown.
|
||||
</h4>
|
||||
<br>
|
||||
<div id="target0">
|
||||
Use the mouse, touch or pen to contact this box.
|
||||
</div>
|
||||
<div id="target1"></div>
|
||||
<div id="complete-notice">
|
||||
<p>The following pointer types were detected: <span id="pointertype-log"></span>.</p>
|
||||
</div>
|
||||
<div id="log"></div>
|
||||
</body>
|
||||
</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("pointerevent_setpointercapture_disconnected-manual.html");
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown");
|
||||
sendMouseEvent(int_win, "target0", "mouseup");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче