зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1685351 [wpt PR 27066] - Each pointer should have different pointer id, a=testonly
Automatic update from web-platform-tests Each pointer should have different pointer id For testdriver Action API, when we create a pointer, we need to give it a pointer id, we need to give different id for different pointer. We need to save the pointer information based on the pointer id, so we need to give them different pointer id. Bug: 1163370 Change-Id: I6533793151a260ff410d11272c547d2d27b4afa6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2611948 Reviewed-by: Liviu Tinta <liviutinta@chromium.org> Commit-Queue: Lan Wei <lanwei@chromium.org> Cr-Commit-Position: refs/heads/master@{#840713} -- wpt-commits: 825155f31728265d283dd56046438115aaf6efac wpt-pr: 27066
This commit is contained in:
Родитель
d863470c7f
Коммит
f47e7e4112
|
@ -31,7 +31,7 @@ function testFunction(test){
|
||||||
|
|
||||||
function run_test(pointerType){
|
function run_test(pointerType){
|
||||||
promise_test((test) => new Promise((resolve, reject) => {
|
promise_test((test) => new Promise((resolve, reject) => {
|
||||||
const testPointer = "TestPointer";
|
const testPointer = pointerType + "TestPointer";
|
||||||
let auxclickFunc = testFunction(test);
|
let auxclickFunc = testFunction(test);
|
||||||
test.add_cleanup(() => {
|
test.add_cleanup(() => {
|
||||||
target.removeEventListener("auxclick", auxclickFunc);
|
target.removeEventListener("auxclick", auxclickFunc);
|
||||||
|
|
|
@ -31,7 +31,7 @@ function testFunction(test){
|
||||||
|
|
||||||
function run_test(pointerType){
|
function run_test(pointerType){
|
||||||
promise_test((test) => new Promise((resolve, reject) => {
|
promise_test((test) => new Promise((resolve, reject) => {
|
||||||
const testPointer = "TestPointer";
|
const testPointer = pointerType + "TestPointer";
|
||||||
let clickFunc = testFunction(test);
|
let clickFunc = testFunction(test);
|
||||||
test.add_cleanup(() => {
|
test.add_cleanup(() => {
|
||||||
target.removeEventListener("click", clickFunc);
|
target.removeEventListener("click", clickFunc);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче