зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1000870 - Change official tests for pointer events to auto mochitest system. r=smaug
This commit is contained in:
Родитель
59ce3c3dd5
Коммит
7bc8350b3d
|
@ -4,7 +4,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
MOCHITEST_MANIFESTS += ['test/mochitest.ini']
|
||||
MOCHITEST_MANIFESTS += [
|
||||
'test/mochitest.ini',
|
||||
'test/pointerevents/mochitest.ini',
|
||||
]
|
||||
|
||||
MOCHITEST_CHROME_MANIFESTS += ['test/chrome.ini']
|
||||
|
||||
XPIDL_SOURCES += [
|
||||
|
|
|
@ -0,0 +1,165 @@
|
|||
[DEFAULT]
|
||||
skip-if = (toolkit == 'gonk') || (os == 'android') # Bug 1178701 - Issue on 'B2G ICS Emulator' and 'Android'
|
||||
support-files =
|
||||
mochitest_support_external.js
|
||||
mochitest_support_internal.js
|
||||
pointerevent_styles.css
|
||||
pointerevent_support.js
|
||||
|
||||
[test_pointerevent_button_attribute_mouse-manual.html]
|
||||
support-files = pointerevent_button_attribute_mouse-manual.html
|
||||
[test_pointerevent_capture_mouse-manual.html]
|
||||
support-files = pointerevent_capture_mouse-manual.html
|
||||
[test_pointerevent_capture_suppressing_mouse-manual.html]
|
||||
support-files = pointerevent_capture_suppressing_mouse-manual.html
|
||||
[test_pointerevent_change-touch-action-onpointerdown_touch-manual.html]
|
||||
support-files = pointerevent_change-touch-action-onpointerdown_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_constructor.html]
|
||||
support-files = pointerevent_constructor.html
|
||||
[test_pointerevent_gotpointercapture_before_first_pointerevent-manual.html]
|
||||
support-files = pointerevent_gotpointercapture_before_first_pointerevent-manual.html
|
||||
disabled = should be investigated
|
||||
[test_pointerevent_lostpointercapture_for_disconnected_node-manual.html]
|
||||
support-files = pointerevent_lostpointercapture_for_disconnected_node-manual.html
|
||||
[test_pointerevent_lostpointercapture_is_first-manual.html]
|
||||
support-files = pointerevent_lostpointercapture_is_first-manual.html
|
||||
[test_pointerevent_pointercancel_touch-manual.html]
|
||||
support-files = pointerevent_pointercancel_touch-manual.html
|
||||
[test_pointerevent_pointerdown-manual.html]
|
||||
support-files = pointerevent_pointerdown-manual.html
|
||||
disabled = should be investigated
|
||||
[test_pointerevent_pointerenter_does_not_bubble-manual.html]
|
||||
support-files = pointerevent_pointerenter_does_not_bubble-manual.html
|
||||
[test_pointerevent_pointerenter_nohover-manual.html]
|
||||
support-files = pointerevent_pointerenter_nohover-manual.html
|
||||
[test_pointerevent_pointerenter-manual.html]
|
||||
support-files = pointerevent_pointerenter-manual.html
|
||||
[test_pointerevent_pointerleave_after_pointercancel_touch-manual.html]
|
||||
support-files = pointerevent_pointerleave_after_pointercancel_touch-manual.html
|
||||
[test_pointerevent_pointerleave_after_pointerup_nohover-manual.html]
|
||||
support-files = pointerevent_pointerleave_after_pointerup_nohover-manual.html
|
||||
[test_pointerevent_pointerleave_descendant_over-manual.html]
|
||||
support-files = pointerevent_pointerleave_descendant_over-manual.html
|
||||
skip-if = (os == 'linux') # Bug 1180188 - Issue on Linux
|
||||
[test_pointerevent_pointerleave_descendants-manual.html]
|
||||
support-files = pointerevent_pointerleave_descendants-manual.html
|
||||
[test_pointerevent_pointerleave_does_not_bubble-manual.html]
|
||||
support-files = pointerevent_pointerleave_does_not_bubble-manual.html
|
||||
[test_pointerevent_pointerleave_mouse-manual.html]
|
||||
support-files = pointerevent_pointerleave_mouse-manual.html
|
||||
[test_pointerevent_pointerleave_pen-manual.html]
|
||||
support-files = pointerevent_pointerleave_pen-manual.html
|
||||
disabled = should be investigated
|
||||
[test_pointerevent_pointerleave_touch-manual.html]
|
||||
support-files = pointerevent_pointerleave_touch-manual.html
|
||||
skip-if = (os == 'linux') # Bug 1180188 - Issue on Linux
|
||||
[test_pointerevent_pointermove-manual.html]
|
||||
support-files = pointerevent_pointermove-manual.html
|
||||
[test_pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html]
|
||||
support-files = pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html
|
||||
[test_pointerevent_pointermove_pointertype-manual.html]
|
||||
support-files = pointerevent_pointermove_pointertype-manual.html
|
||||
[test_pointerevent_pointerout-manual.html]
|
||||
support-files = pointerevent_pointerout-manual.html
|
||||
[test_pointerevent_pointerout_after_pointercancel_touch-manual.html]
|
||||
support-files = pointerevent_pointerout_after_pointercancel_touch-manual.html
|
||||
[test_pointerevent_pointerout_after_pointerup_nohover-manual.html]
|
||||
support-files = pointerevent_pointerout_after_pointerup_nohover-manual.html
|
||||
[test_pointerevent_pointerout_pen-manual.html]
|
||||
support-files = pointerevent_pointerout_pen-manual.html
|
||||
disabled = should be investigated
|
||||
[test_pointerevent_pointerout_received_once-manual.html]
|
||||
support-files = pointerevent_pointerout_received_once-manual.html
|
||||
[test_pointerevent_pointerover-manual.html]
|
||||
support-files = pointerevent_pointerover-manual.html
|
||||
[test_pointerevent_pointertype_mouse-manual.html]
|
||||
support-files = pointerevent_pointertype_mouse-manual.html
|
||||
[test_pointerevent_pointertype_pen-manual.html]
|
||||
support-files = pointerevent_pointertype_pen-manual.html
|
||||
[test_pointerevent_pointertype_touch-manual.html]
|
||||
support-files = pointerevent_pointertype_touch-manual.html
|
||||
[test_pointerevent_pointerup-manual.html]
|
||||
support-files = pointerevent_pointerup-manual.html
|
||||
[test_pointerevent_pointerup_isprimary_same_as_pointerdown-manual.html]
|
||||
support-files = pointerevent_pointerup_isprimary_same_as_pointerdown-manual.html
|
||||
[test_pointerevent_pointerup_pointertype-manual.html]
|
||||
support-files = pointerevent_pointerup_pointertype-manual.html
|
||||
[test_pointerevent_releasepointercapture_events_to_original_target-manual.html]
|
||||
support-files = pointerevent_releasepointercapture_events_to_original_target-manual.html
|
||||
[test_pointerevent_releasepointercapture_invalid_pointerid-manual.html]
|
||||
support-files = pointerevent_releasepointercapture_invalid_pointerid-manual.html
|
||||
[test_pointerevent_releasepointercapture_onpointercancel_touch-manual.html]
|
||||
support-files = pointerevent_releasepointercapture_onpointercancel_touch-manual.html
|
||||
[test_pointerevent_releasepointercapture_onpointerup_mouse-manual.html]
|
||||
support-files = pointerevent_releasepointercapture_onpointerup_mouse-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 = (os == 'linux') && e10s # Bug 1180188 - Issue on Linux
|
||||
[test_pointerevent_setpointercapture_invalid_pointerid-manual.html]
|
||||
support-files = pointerevent_setpointercapture_invalid_pointerid-manual.html
|
||||
[test_pointerevent_setpointercapture_relatedtarget-manual.html]
|
||||
support-files = pointerevent_setpointercapture_relatedtarget-manual.html
|
||||
[test_pointerevent_touch-action-auto-css_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-auto-css_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-button-test_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-button-test_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-illegal.html]
|
||||
support-files = pointerevent_touch-action-illegal.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_child-auto-child-none_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_child-auto-child-none_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_child-none_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_child-none_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_child-pan-x-child-pan-x_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_child-pan-x-child-pan-x_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_child-pan-x-child-pan-y_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_child-pan-x-child-pan-y_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_highest-parent-none_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_highest-parent-none_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-inherit_parent-none_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-inherit_parent-none_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-keyboard-manual.html]
|
||||
support-files = pointerevent_touch-action-keyboard-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-mouse-manual.html]
|
||||
support-files = pointerevent_touch-action-mouse-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-none-css_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-none-css_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-pan-x-css_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-pan-x-css_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-pan-x-pan-y-pan-y_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-pan-x-pan-y-pan-y_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-pan-x-pan-y_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-pan-x-pan-y_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-pan-y-css_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-pan-y-css_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-span-test_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-span-test_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-svg-test_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-svg-test_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-table-test_touch-manual.html]
|
||||
support-files = pointerevent_touch-action-table-test_touch-manual.html
|
||||
disabled = disabled
|
||||
[test_pointerevent_touch-action-verification.html]
|
||||
support-files = pointerevent_touch-action-verification.html
|
||||
[test_empty_file.html]
|
||||
disabled = disabled # Bug 1150091 - Issue with support-files
|
|
@ -0,0 +1,93 @@
|
|||
// This file supports translating W3C tests
|
||||
// to tests on auto MochiTest system with minimum changes.
|
||||
// Author: Maksim Lebedev <alessarik@gmail.com>
|
||||
|
||||
// Function allows to prepare our tests after load document
|
||||
addEventListener("load", function(event) {
|
||||
console.log("OnLoad external document");
|
||||
prepareTest();
|
||||
}, false);
|
||||
|
||||
// Function allows to initialize prerequisites before testing
|
||||
function prepareTest() {
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
SimpleTest.requestCompleteLog();
|
||||
turnOnPointerEvents(startTest);
|
||||
}
|
||||
|
||||
function turnOnPointerEvents(callback) {
|
||||
console.log("SET dom.w3c_pointer_events.enabled as TRUE");
|
||||
console.log("SET layout.css.touch_action.enabled as TRUE");
|
||||
SpecialPowers.pushPrefEnv({
|
||||
"set": [
|
||||
["dom.w3c_pointer_events.enabled", true],
|
||||
["layout.css.touch_action.enabled", true]
|
||||
]
|
||||
}, callback);
|
||||
}
|
||||
|
||||
// Function checks that test should have status PASS
|
||||
function result_function(testObj) {
|
||||
if(testObj["status"] != testObj["PASS"])
|
||||
console.log(testObj["status"] + " = " + testObj["PASS"] + ". " + testObj["name"]);
|
||||
is(testObj["status"], testObj["PASS"], testObj["name"]);
|
||||
}
|
||||
|
||||
// Function allows to correct finish test in mochitest system
|
||||
function completion_function() {
|
||||
console.log("w3c tests have been finished");
|
||||
if(!SimpleTest._stopOnLoad) {
|
||||
console.log("Finishing Mochitest system");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
}
|
||||
|
||||
// Helper function to send PointerEvent with different parameters
|
||||
function sendPointerEvent(int_win, elemId, pointerEventType, inputSource, params) {
|
||||
var elem = int_win.document.getElementById(elemId);
|
||||
if(!!elem) {
|
||||
var rect = elem.getBoundingClientRect();
|
||||
var eventObj = {type: pointerEventType, inputSource: inputSource};
|
||||
if(params && "button" in params)
|
||||
eventObj.button = params.button;
|
||||
if(params && "isPrimary" in params)
|
||||
eventObj.isPrimary = params.isPrimary;
|
||||
else if(MouseEvent.MOZ_SOURCE_MOUSE == inputSource)
|
||||
eventObj.isPrimary = true;
|
||||
console.log(elemId, eventObj);
|
||||
var salt = ("pointermove" == pointerEventType) ? 1 : 2;
|
||||
synthesizePointer(elem, rect.width*salt/5, rect.height/2, eventObj, int_win);
|
||||
} else {
|
||||
is(!!elem, true, "Document should have element with id: " + elemId);
|
||||
}
|
||||
}
|
||||
|
||||
// Helper function to send MouseEvent with different parameters
|
||||
function sendMouseEvent(int_win, elemId, mouseEventType, params) {
|
||||
var elem = int_win.document.getElementById(elemId);
|
||||
if(!!elem) {
|
||||
var rect = elem.getBoundingClientRect();
|
||||
var eventObj = {type: mouseEventType};
|
||||
if(params && "button" in params)
|
||||
eventObj.button = params.button;
|
||||
if(params && "inputSource" in params)
|
||||
eventObj.inputSource = params.inputSource;
|
||||
console.log(elemId, eventObj);
|
||||
synthesizeMouse(elem, rect.width/4, rect.height/2, eventObj, int_win);
|
||||
} else {
|
||||
is(!!elem, true, "Document should have element with id: " + elemId);
|
||||
}
|
||||
}
|
||||
|
||||
// Helper function to send TouchEvent with different parameters
|
||||
function sendTouchEvent(int_win, elemId, touchEventType, params) {
|
||||
var elem = int_win.document.getElementById(elemId);
|
||||
if(!!elem) {
|
||||
var rect = elem.getBoundingClientRect();
|
||||
var eventObj = {type: touchEventType};
|
||||
console.log(elemId, eventObj);
|
||||
synthesizeTouch(elem, rect.width/4, rect.height/2, eventObj, int_win);
|
||||
} else {
|
||||
is(!!elem, true, "Document should have element with id: " + elemId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
// This file supports translating W3C tests
|
||||
// to tests on auto MochiTest system with minimum changes.
|
||||
// Author: Maksim Lebedev <alessarik@gmail.com>
|
||||
|
||||
// Function allows to prepare our tests after load document
|
||||
addEventListener("load", function(event) {
|
||||
console.log("OnLoad internal document");
|
||||
addListeners(document.getElementById("target0"));
|
||||
addListeners(document.getElementById("target1"));
|
||||
preExecute();
|
||||
}, false);
|
||||
|
||||
// Function allows to initialize prerequisites before testing
|
||||
// and adds some callbacks to support mochitest system.
|
||||
function preExecute() {
|
||||
add_result_callback(parent.result_function);
|
||||
add_completion_callback(parent.completion_function);
|
||||
parent.turnOnPointerEvents(window.callExecute);
|
||||
}
|
||||
|
||||
// The main function allows to execute tests in auto mode
|
||||
function callExecute() {
|
||||
console.log("Run 'executeTest' function");
|
||||
if(!!parent.executeTest)
|
||||
parent.executeTest(window);
|
||||
else
|
||||
parent.is(!!parent.executeTest, true, "parent-document should have function 'executeTest'");
|
||||
}
|
||||
|
||||
function addListeners(elem) {
|
||||
if(!elem)
|
||||
return;
|
||||
var All_Events = ["pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout",
|
||||
"pointerenter","pointerleave","gotpointercapture","lostpointercapture"];
|
||||
All_Events.forEach(function(name) {
|
||||
elem.addEventListener(name, function(event) {
|
||||
console.log('('+event.type+')-('+event.pointerType+')');
|
||||
}, false);
|
||||
});
|
||||
}
|
|
@ -5,18 +5,22 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Button attribute test for mouse</h1>
|
||||
<!--
|
||||
<h2>This test is for mouse only</h2>
|
||||
<h4>
|
||||
Test Description: This test checks if button attribute for mouse handled properly.
|
||||
<p>Put your mouse over the black rectangle</p>
|
||||
</h4>
|
||||
<p>
|
||||
-->
|
||||
<div id="target0" style="background:black"></div>
|
||||
<div id="target1" style="background:yellow"></div>
|
||||
<script>
|
||||
var eventTested = false;
|
||||
var detected_pointertypes = {};
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
<h1>Pointer Events capture test</h1>
|
||||
<h4>
|
||||
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
|
||||
|
@ -24,6 +26,7 @@
|
|||
</ol>
|
||||
</h4>
|
||||
Test passes if the proper behaviour of the events is observed.
|
||||
-->
|
||||
<div id="target0"></div>
|
||||
<br>
|
||||
<div id="target1"></div>
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
<h1>Pointer Events capture test</h1>
|
||||
<h4>
|
||||
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
|
||||
|
@ -26,6 +28,7 @@
|
|||
</ol>
|
||||
</h4>
|
||||
Test passes if the proper behaviour of the events is observed.
|
||||
-->
|
||||
<div id="target0"></div>
|
||||
<br>
|
||||
<div id="target1"></div>
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
background: black;
|
||||
|
@ -21,10 +22,12 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Events touch-action attribute support</h1>
|
||||
<!--
|
||||
<h4>Test Description: Press and hold your touch. Try to scroll text in any direction.
|
||||
Then release your touch and try to scroll again. Expected: no panning.
|
||||
</h4>
|
||||
<p>Note: this test is for touch-devices only</p>
|
||||
-->
|
||||
<div id="target0" style="touch-action: auto;">
|
||||
<p>
|
||||
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diem
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>PointerEvent: Dispatch custom event</h1>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("gotpointercapture event"); // set up test harness
|
||||
|
@ -78,11 +79,13 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch gotpointercapture event</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
After pointer capture is set for a pointer, and prior to dispatching the first event for the pointer, the gotpointercapture
|
||||
event must be dispatched to the element that is receiving the pointer capture. The gotpointercapture event must be dispatched asynchronously.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Use the mouse, touch or pen to tap/click this box.
|
||||
</div>
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
<h1>Pointer Events - lostpointercapture when capturing element is removed</h1>
|
||||
<h4>
|
||||
Test Description:
|
||||
|
@ -19,6 +21,7 @@
|
|||
<li>"lostpointercapture" should be logged inside of the black rectangle after a short delay.
|
||||
</ol>
|
||||
</h4>
|
||||
-->
|
||||
<div id="target0"></div>
|
||||
<div id="target1" style="background:black; color:white"></div>
|
||||
<br>
|
||||
|
|
|
@ -6,11 +6,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Events capture test - lostpointercapture order</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
This test checks if lostpointercapture is handled asynchronously and prior to all subsequent events.
|
||||
|
@ -21,6 +23,7 @@
|
|||
</ol>
|
||||
</h4>
|
||||
Test passes if lostpointercapture is dispatched after releasing the mouse button and before any additional pointer events.
|
||||
-->
|
||||
<div id="target0" style="background:black; color:white"></div>
|
||||
<br>
|
||||
<input type="button" id="btnCapture" value="Set Capture">
|
||||
|
|
|
@ -4,19 +4,22 @@
|
|||
<title>PointerCancel - touch</title>
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<!--script src="/resources/testharnessreport.js"></script-->
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body class="scrollable" onload="run()">
|
||||
<h1>pointercancel test</h1>
|
||||
<!--
|
||||
<h3>Warning: this test works properly only for devices that have touchscreen</h3>
|
||||
<h4>
|
||||
Test Description: This test checks if pointercancel event triggers.
|
||||
<p>Start touch over the black rectangle and then move your finger to scroll the page.</p>
|
||||
</h4>
|
||||
<p>
|
||||
-->
|
||||
<div id="target0" style="background: black"></div>
|
||||
<script>
|
||||
var detected_pointertypes = {};
|
||||
|
|
|
@ -10,9 +10,10 @@ http://www.w3.org/wiki/PointerEvents/TestAssertions
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script>
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerdown event received");
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerenter event"); // set up test harness
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerEnter event does not bubble"); // set up test harness
|
||||
|
@ -68,6 +69,7 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1> Pointer Event: pointerenter does not bubble</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
The pointerenter event must not bubble up to parent elements.
|
||||
|
@ -75,6 +77,7 @@
|
|||
<div id="instructions">
|
||||
Use the mouse or pen to hover over then out of the purple box nested in the black box. Or with touch, tap on the purple box.
|
||||
</div>
|
||||
-->
|
||||
<div id="parent0">
|
||||
<div id="target0"></div>
|
||||
</div>
|
||||
|
|
|
@ -9,9 +9,10 @@ or one of its descendants as a result of a pointerdown event, the pointerenter e
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerenter event"); // set up test harness
|
||||
|
@ -56,12 +57,14 @@ or one of its descendants as a result of a pointerdown event, the pointerenter e
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch pointerenter (nohover)</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
When a pointing device that does not support hover is moved into the hit test boundaries of an element or one of its
|
||||
descendants as a result of a pointerdown event, the pointerenter event must be dispatched.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Tap here.
|
||||
</div>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body class="scrollable" onload="run()">
|
||||
<h2>pointerleave after pointercancel</h2>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>pointerleave after pointerup</h2>
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>pointerleave</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description: This test checks if pointerleave event works properly.
|
||||
<ol>
|
||||
|
@ -20,6 +22,7 @@
|
|||
Note: when you entered the black rectangle once don't leave it before the end of the test to get proper results.
|
||||
</h4>
|
||||
<p>
|
||||
-->
|
||||
<div id="target0" style="background:black">
|
||||
<div id="target1" style="background:purple"></div>
|
||||
</div>
|
||||
|
|
|
@ -5,16 +5,19 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>pointerleave</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description: This test checks if pointerleave event works properly.
|
||||
<p>Put your mouse over the black rectangle and then move it out through purple rectangle boundaries.</p>
|
||||
</h4>
|
||||
<p>
|
||||
-->
|
||||
<div id="target0" style="background:black; height: 47px;">
|
||||
<div style="background:purple; height: 35px; width: 90%; position: absolute"></div>
|
||||
</div>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerLeave event does not bubble"); // set up test harness
|
||||
|
@ -57,6 +58,7 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1> Pointer Event: pointerleave does not bubble</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
The pointerleave event must not bubble up to parent elements.
|
||||
|
@ -64,6 +66,7 @@
|
|||
<div id="instructions">
|
||||
Use the mouse or pen to hover over then out of the purple box nested in the black box. Or with touch, tap on the purple box.
|
||||
</div>
|
||||
-->
|
||||
<div id="parent0">
|
||||
<div id="target0"></div>
|
||||
</div>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerleave event"); // set up test harness;
|
||||
|
@ -36,11 +37,13 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch pointerleave (mouse)</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
When a pointing device that has continuous position (such as a mouse) leaves the hit test boundaries of an element, the pointerleave event must be dispatched.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Use a mouse to move over then out of this element
|
||||
</div>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerleave event"); // set up test harness
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerleave event");
|
||||
|
|
|
@ -6,9 +6,10 @@
|
|||
<meta name="assert" content="When a pointer changes coordinates, the pointermove event must be dispatched."/>
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>PointerMove</h2>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointermove has same isPrimary as last pointerdown"); // set up test harness
|
||||
|
@ -50,6 +51,7 @@
|
|||
</script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<!--
|
||||
<h1>Pointer Event: pointermove has the same isPrimary as last pointerdown with the same pointerId</h1>
|
||||
<h4>Test Description:
|
||||
The isPrimary attribute of a pointermove event must have the same value as the isPrimary attribute of the last pointerdown event with the same pointerId attribute.
|
||||
|
@ -58,6 +60,7 @@
|
|||
Press and hold a mouse button, touch contact or pen contact on this element. Move around inside the element while maintaining contact/button down. Only use one device per test run.
|
||||
<p>Lift off of the element to complete the test.</p>
|
||||
</div>
|
||||
-->
|
||||
<div id="target0" style="touch-action: none;">
|
||||
</div>
|
||||
<div id="complete-notice">
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<!--
|
||||
<h1>pointerType conservation</h1>
|
||||
<h4>Test Description: This test checks if pointerType attribute defined properly.</h4>
|
||||
<div id="instructions">
|
||||
|
@ -16,6 +18,7 @@
|
|||
</div>
|
||||
<p>Note: This test may be run with different pointer devices, however only one device should be used per test run.
|
||||
<p>
|
||||
-->
|
||||
<div id="target0"></div>
|
||||
<script>
|
||||
var eventTested = false;
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>pointerout</h2>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body class="scrollable" onload="run()">
|
||||
<h2>pointerout</h2>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>pointerout</h2>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h2>pointerout</h2>
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<!--script src="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>pointerout received just once</h1>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerover is dispatched"); // set up test harness;
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointer event have pointerType as mouse"); // set up test harness
|
||||
|
@ -47,10 +48,12 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch pointer events with pointerType equal to "mouse"</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
If a pointer event is initiated by a mouse device, then the pointerType must be 'mouse'.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Using the mouse, click this element.
|
||||
</div>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointer event has pointerType as pen"); // set up test harness
|
||||
|
@ -23,6 +24,8 @@
|
|||
function eventHandler(event) {
|
||||
detected_pointertypes[event.pointerType] = true;
|
||||
if(!eventTested) {
|
||||
if("pen" != event.pointerType)
|
||||
return;
|
||||
check_PointerEvent(event);
|
||||
test_pointerEvent.step(function () {
|
||||
assert_equals(event.pointerType, "pen", "Verify event.pointerType is 'pen'.");
|
||||
|
@ -45,10 +48,12 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch pointer events with pointerType equal to "pen"</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
If a pointer event is initiated by a pen device, then the pointerType must be 'pen'.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Using pen, tap here.
|
||||
</div>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointer event has pointerType as touch"); // set up test harness
|
||||
|
@ -23,6 +24,8 @@
|
|||
function eventHandler(event) {
|
||||
detected_pointertypes[event.pointerType] = true;
|
||||
if(!eventTested) {
|
||||
if("touch" != event.pointerType)
|
||||
return;
|
||||
check_PointerEvent(event);
|
||||
test_pointerEvent.step(function () {
|
||||
assert_equals(event.pointerType, "touch", "Verify event.pointerType is 'touch'.");
|
||||
|
@ -46,10 +49,12 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: Dispatch pointer events with pointerType equal to "touch"</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
If a pointer event is initiated by a touch device, then the pointerType must be 'touch'.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Using touch, tap here.
|
||||
</div>
|
||||
|
|
|
@ -5,9 +5,10 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<!-- Additional helper script for common checks across event types -->
|
||||
<script type="text/javascript" src="pointerevent_support.js"></script>
|
||||
<script type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>pointerup</h1>
|
||||
|
|
|
@ -8,9 +8,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("pointerup has same isPrimary as last pointerdown"); // set up test harness
|
||||
|
@ -45,12 +46,14 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: pointerup has the same isPrimary as last pointerdown with the same pointerId</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
The isPrimary attribute of a pointerup event must have the same value as the isPrimary attribute of the last pointerdown event with the same pointerId attribute.
|
||||
</h4>
|
||||
<div id="instructions">
|
||||
Press and release a mouse button, touch contact or pen contact on this element. Only use one device per test run.
|
||||
</div>
|
||||
-->
|
||||
<div id="target0" style="touch-action: none;">
|
||||
</div>
|
||||
<div id="complete-notice">
|
||||
|
|
|
@ -5,17 +5,20 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>pointerType conservation</h1>
|
||||
<!--
|
||||
<h4>Test Description: This test checks if pointerType attribute defined properly.</h4>
|
||||
<div id="instructions">
|
||||
Press and release a mouse button, touch contact or pen contact on the black rectangle. Only use one device per test run.
|
||||
</div>
|
||||
<p>Note: This test may be run with different pointer devices, however only one device should be used per test run.
|
||||
<p>
|
||||
-->
|
||||
<div id="target0"></div>
|
||||
<script>
|
||||
var eventTested = false;
|
||||
|
|
|
@ -7,9 +7,10 @@
|
|||
<meta name="assert" content="After invoking the releasePointerCapture method on an element, subsequent events for the specified pointer must follow normal hit testing mechanisms for determining the event target"/>
|
||||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("lostpointercapture: subsequent events to target."); // set up test harness
|
||||
|
@ -97,12 +98,14 @@
|
|||
<body onload="run()">
|
||||
<div id="listener"></div>
|
||||
<h1>Pointer Event: releasePointerCapture() - subsequent events follow normal hitting testing mechanisms</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
After invoking the releasePointerCapture method on an element, subsequent events for the specified
|
||||
pointer must follow normal hit testing mechanisms for determining the event target
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Use mouse, touch or pen to contact here and move around.
|
||||
</div>
|
||||
|
|
|
@ -10,9 +10,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("releasePointerCapture: DOMException InvalidPointerId"); // set up test harness
|
||||
|
@ -57,12 +58,14 @@
|
|||
<body onload="run()">
|
||||
<div id="listener"></div>
|
||||
<h1> Pointer Event: releasePointerCapture() DOMException - InvalidPointerId</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description:
|
||||
Upon invocation of the releasePointerCapture method, if the provided pointerId value does not match any of the
|
||||
active pointers, a DOMException with the name InvalidPointerId must be thrown.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Use the mouse, touch or pen to move over or contact this box.
|
||||
</div>
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body class="scrollable">
|
||||
<h1>Pointer Events Capture Test - release capture on pointercancel</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
|
||||
<ol>
|
||||
|
@ -18,6 +20,7 @@
|
|||
</ol>
|
||||
</h4>
|
||||
Test passes if the proper behavior of the events is observed.
|
||||
-->
|
||||
<div id="target0" style="background:black; color:white"></div>
|
||||
|
||||
<script type='text/javascript'>
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.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>
|
||||
|
@ -18,6 +20,7 @@
|
|||
</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">
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
add_completion_callback(showPointerTypes);
|
||||
|
@ -39,10 +40,12 @@
|
|||
</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>
|
||||
|
|
|
@ -5,11 +5,13 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<meta name="viewport" content="width=device-width">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<!--script src="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<h1>setPointerCapture</h1>
|
||||
<!--
|
||||
<h4>
|
||||
Test Description: This test checks if setPointerCapture works properly.
|
||||
<ol>
|
||||
|
@ -18,7 +20,9 @@
|
|||
</ol>
|
||||
</h4>
|
||||
<p>
|
||||
-->
|
||||
<div id="target0" style="background:black; color:white;"></div>
|
||||
<div id="target1" style="background:yellow;"></div>
|
||||
<script>
|
||||
var detected_pointertypes = {};
|
||||
|
||||
|
|
|
@ -9,9 +9,10 @@
|
|||
<link rel="stylesheet" type="text/css" href="pointerevent_styles.css">
|
||||
<!-- /resources/testharness.js -->
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.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 type="text/javascript" src="mochitest_support_internal.js"></script>
|
||||
<script type="text/javascript">
|
||||
var detected_pointertypes = {};
|
||||
var test_pointerEvent = async_test("setPointerCapture: DOMException InvalidPointerId"); // set up test harness
|
||||
|
@ -48,10 +49,12 @@
|
|||
</head>
|
||||
<body onload="run()">
|
||||
<h1>Pointer Event: DOMException InvalidPointerId</h1>
|
||||
<!--
|
||||
<h4>Test Description:
|
||||
When the setPointerCapture method is invoked, if the provided pointerId value does not match any of the active pointers, a DOMException with the name InvalidPointerId must be thrown.
|
||||
</h4>
|
||||
<br />
|
||||
-->
|
||||
<div id="target0">
|
||||
Use the mouse, touch or pen to contact this box.
|
||||
</div>
|
||||
|
|
|
@ -5,10 +5,12 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<!--
|
||||
<h1>Pointer Events Capture Test - capture and relatedTarget</h1>
|
||||
<h4>
|
||||
Test Description: This test checks if setCapture/releaseCapture functions works properly. Complete the following actions:
|
||||
|
@ -20,7 +22,7 @@
|
|||
</ol>
|
||||
</h4>
|
||||
Test passes if the proper behavior of the events is observed.
|
||||
|
||||
-->
|
||||
<div id="target0" style="background:black; color:white"></div>
|
||||
<br>
|
||||
<div id="target1" style="background:purple; color:white"></div>
|
||||
|
|
|
@ -154,17 +154,35 @@ function objectScroller(target, direction, value) {
|
|||
|
||||
function sPointerCapture(e) {
|
||||
try {
|
||||
target0.setPointerCapture(e.pointerId);
|
||||
if(target0.setPointerCapture)
|
||||
target0.setPointerCapture(e.pointerId);
|
||||
else
|
||||
test(function() {
|
||||
assert_equals(typeof(target0.setPointerCapture), "function", "target0 should have function setPointerCapture");
|
||||
}, "target0 should have function setPointerCapture");
|
||||
}
|
||||
catch(e) {
|
||||
console.log("catch exception: " + e);
|
||||
test(function() {
|
||||
assert_true(false, "Exception in function setPointerCapture");
|
||||
}, "Exception in function setPointerCapture");
|
||||
}
|
||||
}
|
||||
|
||||
function rPointerCapture(e) {
|
||||
try {
|
||||
captureButton.value = 'Set Capture';
|
||||
target0.releasePointerCapture(e.pointerId);
|
||||
if(target0.releasePointerCapture)
|
||||
target0.releasePointerCapture(e.pointerId);
|
||||
else
|
||||
test(function() {
|
||||
assert_equals(typeof(target0.releasePointerCapture), "function", "target0 should have function releasePointerCapture");
|
||||
}, "target0 should have function releasePointerCapture");
|
||||
}
|
||||
catch(e) {
|
||||
console.log("catch exception: " + e);
|
||||
test(function() {
|
||||
assert_true(false, "Exception in function releasePointerCapture");
|
||||
}, "Exception in function releasePointerCapture");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
height: 150px;
|
||||
|
@ -26,9 +27,11 @@
|
|||
</style>
|
||||
</head>
|
||||
<body onload="run()">
|
||||
<!--
|
||||
<h2>Pointer Events touch-action attribute support</h2>
|
||||
<h4 id="desc">Test Description: Try to scroll black element DOWN moving your touch outside of the red border. Wait for description update.</h4>
|
||||
<p>Note: this test is for touch only</p>
|
||||
-->
|
||||
<div id="target0">
|
||||
<button>Test Button</button>
|
||||
</div>
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller > div {
|
||||
touch-action: auto;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller > div {
|
||||
touch-action: none;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller > div {
|
||||
touch-action: pan-x;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller > div {
|
||||
touch-action: pan-x;
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#divParent {
|
||||
touch-action: none;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller {
|
||||
touch-action: none;
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
.scroller > div {
|
||||
touch-action: pan-x pan-y;
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
height: 150px;
|
||||
|
|
|
@ -5,8 +5,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
height: 350px;
|
||||
|
|
|
@ -6,8 +6,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
height: 150px;
|
||||
|
|
|
@ -11,8 +11,9 @@
|
|||
<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="/resources/testharnessreport.js"></script-->
|
||||
<script src="pointerevent_support.js"></script>
|
||||
<script src="mochitest_support_internal.js"></script>
|
||||
<style>
|
||||
#target0 {
|
||||
width: 700px;
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
This file should exist until bug 1150091 will be fixed.
|
||||
[manifestparser] Adding support-files under tests overwrites DEFAULT instead of appending.
|
||||
-->
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_button_attribute_mouse-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE, {button:-1});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,34 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_capture_mouse-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendPointerEvent(int_win, "btnCapture", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "btnCapture", "pointerdown", MouseEvent.MOZ_SOURCE_MOUSE, {button:1});
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointerup", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,35 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_capture_suppressing_mouse-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "btnCapture", "pointerdown", MouseEvent.MOZ_SOURCE_MOUSE, {button:1});
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointerup", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "target1", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,39 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_change-touch-action-onpointerdown_touch-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
const WM_VSCROLL = 0x0115;
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchmove");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
//sendTouchEvent(int_win, "target0", "touchstart");
|
||||
//sendTouchEvent(int_win, "target0", "touchmove");
|
||||
//sendTouchEvent(int_win, "target0", "touchend");
|
||||
var utils = _getDOMWindowUtils(int_win);
|
||||
var target0 = int_win.document.getElementById("target0");
|
||||
utils.sendNativeMouseScrollEvent(target0.getBoundingClientRect().left + 5,
|
||||
target0.getBoundingClientRect().top + 5,
|
||||
WM_VSCROLL, 10, 10, 0, 0, 0, target0);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_constructor.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
// Function should be, but can be empty
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_gotpointercapture_before_first_pointerevent-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendPointerEvent(int_win, "complete-notice", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE, {button:0});
|
||||
sendMouseEvent(int_win, "target0", "mousedown", {button:1});
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE, {button:0});
|
||||
sendPointerEvent(int_win, "complete-notice", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE, {button:0});
|
||||
sendPointerEvent(int_win, "target0", "pointerdown", MouseEvent.MOZ_SOURCE_MOUSE, {button:1});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,33 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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();
|
||||
SimpleTest.requestFlakyTimeout("Official test uses timeout");
|
||||
function startTest() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_lostpointercapture_for_disconnected_node-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "btnCapture", "mousedown");
|
||||
sendMouseEvent(int_win, "btnCapture", "mousemove");
|
||||
setTimeout(function() {
|
||||
sendMouseEvent(int_win, "target1", "mousemove");
|
||||
}, 500);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_lostpointercapture_is_first-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "btnCapture", "mousedown");
|
||||
sendMouseEvent(int_win, "btnCapture", "mouseup");
|
||||
sendMouseEvent(int_win, "btnCapture", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointercancel_touch-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchcancel");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerdown-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "log", "mousemove");
|
||||
sendMouseEvent(int_win, "target0", "mousedown", {button:1});
|
||||
sendMouseEvent(int_win, "target0", "mouseup");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerenter-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerenter_does_not_bubble-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
sendMouseEvent(int_win, "log", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerenter_nohover-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "log", "mousemove");
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_after_pointercancel_touch-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchcancel");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_after_pointerup_nohover-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_descendant_over-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
sendMouseEvent(int_win, "target1", "mousedown");
|
||||
sendMouseEvent(int_win, "target1", "mouseup");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_descendants-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendPointerEvent(int_win, "target0", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
sendPointerEvent(int_win, "log", "pointermove", MouseEvent.MOZ_SOURCE_MOUSE);
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_does_not_bubble-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_mouse-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
sendMouseEvent(int_win, "log", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_pen-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
sendMouseEvent(int_win, "target0", "mouseup", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
sendMouseEvent(int_win, "target0", "mouseleave", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerleave_touch-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointermove-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown");
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
sendMouseEvent(int_win, "target0", "mouseup");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointermove_pointertype-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown");
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerout-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerout_after_pointercancel_touch-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchcancel");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerout_after_pointerup_nohover-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,30 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerout_pen-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousedown", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
sendMouseEvent(int_win, "target0", "mouseup", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
sendMouseEvent(int_win, "target0", "mouseout", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,29 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerout_received_once-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendTouchEvent(int_win, "target0", "touchstart");
|
||||
sendTouchEvent(int_win, "target0", "touchend");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,28 @@
|
|||
<!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 type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="text/javascript" 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() {
|
||||
var iframe = document.getElementById("testFrame");
|
||||
iframe.src = "pointerevent_pointerover-manual.html";
|
||||
}
|
||||
function executeTest(int_win) {
|
||||
sendMouseEvent(int_win, "target0", "mousemove");
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="testFrame" height="800" width="1000"></iframe>
|
||||
</body>
|
||||
</html>
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче