Bug 1304290 - Part 1: Add a helper function to run test in a new window. r=smaug

MozReview-Commit-ID: 4nLTUSbkYlH

--HG--
extra : rebase_source : 7e3de68f808a8c248feae0b85f44eac191809b92
extra : histedit_source : 82dc7190b9436f2ac6c730176dff0aac7cd35070
This commit is contained in:
Stone Shih 2016-09-21 14:46:44 +08:00
Родитель 1612d05501
Коммит e64b507923
58 изменённых файлов: 101 добавлений и 196 удалений

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

@ -35,22 +35,6 @@ function turnOnPointerEvents(callback) {
}, 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 MouseEvent with different parameters
function sendMouseEvent(int_win, elemId, mouseEventType, params) {
var elem = int_win.document.getElementById(elemId);
@ -82,3 +66,45 @@ function sendTouchEvent(int_win, elemId, touchEventType, params) {
is(!!elem, true, "Document should have element with id: " + elemId);
}
}
// Helper function to run Point Event test in a new tab.
function runTestInNewWindow(aFile) {
var w = window.open('', "_blank");
w.is = function(a, b, msg) { return is(a, b, aFile + " | " + msg); };
w.ok = function(cond, name, diag) { return ok(cond, aFile + " | " + name, diag); };
w.location = location.href.substring(0, location.href.lastIndexOf('/') + 1) + aFile;
w.testContext = {
result_callback: (aTestObj) => {
if(aTestObj["status"] != aTestObj["PASS"]) {
console.log(aTestObj["status"] + " = " + aTestObj["PASS"] + ". " + aTestObj["name"]);
}
is(aTestObj["status"], aTestObj["PASS"], aTestObj["name"]);
},
completion_callback: () => {
if (!!w.testContext.executionPromise) {
// We need to wait tests done and execute finished then we can close the window
w.testContext.executionPromise.then(() => {
w.close();
SimpleTest.finish();
});
} else {
// execute may synchronous trigger tests done. In that case executionPromise
// is not yet assigned
w.close();
SimpleTest.finish();
}
},
execute: (aWindow) => {
turnOnPointerEvents(() => {
w.testContext.executionPromise = new Promise((aResolve, aReject) => {
executeTest(aWindow);
aResolve();
});
});
}
};
return w;
}

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

@ -13,18 +13,9 @@ addEventListener("load", function(event) {
// 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'");
add_result_callback(testContext.result_callback);
add_completion_callback(testContext.completion_callback);
testContext.execute(window);
}
function addListeners(elem) {

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

@ -13,8 +13,7 @@
setImplicitPointerCapture(true, loadSubFrame);
}
function loadSubFrame() {
var iframe = document.getElementById("testFrame");
iframe.src = "bug1293174_implicit_pointer_capture_for_touch_1.html";
runTestInNewWindow("bug1293174_implicit_pointer_capture_for_touch_1.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -26,7 +25,6 @@
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -13,8 +13,7 @@
setImplicitPointerCapture(false, loadSubFrame);
}
function loadSubFrame() {
var iframe = document.getElementById("testFrame");
iframe.src = "bug1293174_implicit_pointer_capture_for_touch_2.html";
runTestInNewWindow("bug1293174_implicit_pointer_capture_for_touch_2.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -26,7 +25,6 @@
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_attributes_mouse-manual.html";
runTestInNewWindow("pointerevent_attributes_mouse-manual.html");
}
function executeTest(int_win) {
var square1 = int_win.document.getElementById("square1");
@ -31,7 +30,6 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_capture_mouse-manual.html";
runTestInNewWindow("pointerevent_capture_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "btnCapture", "mousemove");
@ -29,6 +28,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_capture_suppressing_mouse-manual.html";
runTestInNewWindow("pointerevent_capture_suppressing_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -30,6 +29,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_change-touch-action-onpointerdown_touch-manual.html";
runTestInNewWindow("pointerevent_change-touch-action-onpointerdown_touch-manual.html");
}
function executeTest(int_win) {
const WM_VSCROLL = 0x0115;
@ -34,6 +33,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_constructor.html";
runTestInNewWindow("pointerevent_constructor.html");
}
function executeTest(int_win) {
// Function should be, but can be empty
@ -23,6 +22,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_element_haspointercapture-manual.html";
runTestInNewWindow("pointerevent_element_haspointercapture-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -29,6 +28,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_element_haspointercapture_release_pending_capture-manual.html";
runTestInNewWindow("pointerevent_element_haspointercapture_release_pending_capture-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -27,6 +26,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_gotpointercapture_before_first_pointerevent-manual.html";
runTestInNewWindow("pointerevent_gotpointercapture_before_first_pointerevent-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {button:0});
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -15,8 +15,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
SimpleTest.waitForExplicitFinish();
SimpleTest.requestFlakyTimeout("Official test uses timeout");
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_lostpointercapture_for_disconnected_node-manual.html";
runTestInNewWindow("pointerevent_lostpointercapture_for_disconnected_node-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "btnCapture", "mousedown");
@ -28,6 +27,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_lostpointercapture_is_first-manual.html";
runTestInNewWindow("pointerevent_lostpointercapture_is_first-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "btnCapture", "mousedown", {button:0});
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_multiple_primary_pointers_boundary_events-manual.html";
runTestInNewWindow("pointerevent_multiple_primary_pointers_boundary_events-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -28,6 +27,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerId_scope-manual.html";
runTestInNewWindow("pointerevent_pointerId_scope-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointercancel_touch-manual.html";
runTestInNewWindow("pointerevent_pointercancel_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerdown-manual.html";
runTestInNewWindow("pointerevent_pointerdown-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "log", "mousemove");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerenter-manual.html";
runTestInNewWindow("pointerevent_pointerenter-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -23,6 +22,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerenter_does_not_bubble-manual.html";
runTestInNewWindow("pointerevent_pointerenter_does_not_bubble-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerenter_nohover-manual.html";
runTestInNewWindow("pointerevent_pointerenter_nohover-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "log", "mousemove");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_after_pointercancel_touch-manual.html";
runTestInNewWindow("pointerevent_pointerleave_after_pointercancel_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_after_pointerup_nohover-manual.html";
runTestInNewWindow("pointerevent_pointerleave_after_pointerup_nohover-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_descendant_over-manual.html";
runTestInNewWindow("pointerevent_pointerleave_descendant_over-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_descendants-manual.html";
runTestInNewWindow("pointerevent_pointerleave_descendants-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_does_not_bubble-manual.html";
runTestInNewWindow("pointerevent_pointerleave_does_not_bubble-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_mouse-manual.html";
runTestInNewWindow("pointerevent_pointerleave_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_pen-manual.html";
runTestInNewWindow("pointerevent_pointerleave_pen-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerleave_touch-manual.html";
runTestInNewWindow("pointerevent_pointerleave_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointermove-manual.html";
runTestInNewWindow("pointerevent_pointermove-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -23,6 +22,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointermove-on-chorded-mouse-button.html";
runTestInNewWindow("pointerevent_pointermove-on-chorded-mouse-button.html");
}
function executeTest(int_win) {
@ -34,6 +33,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html";
runTestInNewWindow("pointerevent_pointermove_isprimary_same_as_pointerdown-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointermove_pointertype-manual.html";
runTestInNewWindow("pointerevent_pointermove_pointertype-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerout-manual.html";
runTestInNewWindow("pointerevent_pointerout-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerout_after_pointercancel_touch-manual.html";
runTestInNewWindow("pointerevent_pointerout_after_pointercancel_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerout_after_pointerup_nohover-manual.html";
runTestInNewWindow("pointerevent_pointerout_after_pointerup_nohover-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerout_pen-manual.html";
runTestInNewWindow("pointerevent_pointerout_pen-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerout_received_once-manual.html";
runTestInNewWindow("pointerevent_pointerout_received_once-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerover-manual.html";
runTestInNewWindow("pointerevent_pointerover-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -23,6 +22,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointertype_mouse-manual.html";
runTestInNewWindow("pointerevent_pointertype_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {button:0});
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointertype_pen-manual.html";
runTestInNewWindow("pointerevent_pointertype_pen-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {inputSource:MouseEvent.MOZ_SOURCE_PEN});
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointertype_touch-manual.html";
runTestInNewWindow("pointerevent_pointertype_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerup-manual.html";
runTestInNewWindow("pointerevent_pointerup-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerup_isprimary_same_as_pointerdown-manual.html";
runTestInNewWindow("pointerevent_pointerup_isprimary_same_as_pointerdown-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {button:0});
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_pointerup_pointertype-manual.html";
runTestInNewWindow("pointerevent_pointerup_pointertype-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_releasepointercapture_events_to_original_target-manual.html";
runTestInNewWindow("pointerevent_releasepointercapture_events_to_original_target-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_releasepointercapture_invalid_pointerid-manual.html";
runTestInNewWindow("pointerevent_releasepointercapture_invalid_pointerid-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_releasepointercapture_onpointercancel_touch-manual.html";
runTestInNewWindow("pointerevent_releasepointercapture_onpointercancel_touch-manual.html");
}
function executeTest(int_win) {
sendTouchEvent(int_win, "target0", "touchstart");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_releasepointercapture_onpointerup_mouse-manual.html";
runTestInNewWindow("pointerevent_releasepointercapture_onpointerup_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "btnCapture", "mousedown");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -13,8 +13,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_releasepointercapture_release_right_after_capture-manual.html";
runTestInNewWindow("pointerevent_releasepointercapture_release_right_after_capture-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -27,6 +26,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_disconnected-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_disconnected-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -24,6 +23,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_inactive_button_mouse-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_inactive_button_mouse-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target1", "mousemove");
@ -25,6 +24,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_invalid_pointerid-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_invalid_pointerid-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown");
@ -23,6 +22,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_override_pending_capture_element-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_override_pending_capture_element-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -28,6 +27,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_relatedtarget-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_relatedtarget-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target1", "mousemove");
@ -26,6 +25,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_setpointercapture_to_same_element_twice-manual.html";
runTestInNewWindow("pointerevent_setpointercapture_to_same_element_twice-manual.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousemove");
@ -28,6 +27,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_suppress_compat_events_on_click.html";
runTestInNewWindow("pointerevent_suppress_compat_events_on_click.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {button:0});
@ -28,6 +27,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>

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

@ -14,8 +14,7 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
function startTest() {
var iframe = document.getElementById("testFrame");
iframe.src = "pointerevent_suppress_compat_events_on_drag_mouse.html";
runTestInNewWindow("pointerevent_suppress_compat_events_on_drag_mouse.html");
}
function executeTest(int_win) {
sendMouseEvent(int_win, "target0", "mousedown", {button:0});
@ -30,6 +29,5 @@ https://bugzilla.mozilla.org/show_bug.cgi?id=1000870
</script>
</head>
<body>
<iframe id="testFrame" height="800" width="1000"></iframe>
</body>
</html>