ghosture:在单元测试中模拟触摸手势

时间:2021-06-03 23:16:49
【文件属性】:
文件名称:ghosture:在单元测试中模拟触摸手势
文件大小:152KB
文件格式:ZIP
更新时间:2021-06-03 23:16:49
JavaScript ghosture.js 在用户界面单元测试中模拟和自动化触摸手势。 专为与一起使用而设计。 安装 npm install ghosture 用法 // "swipe left" ghosture.start(200, 50) .moveTo(100, 50, '500ms') .end() .run(); // "tap" ghosture.start(50, 50) .hold('50ms') .end() .run(); // execute functions between ghosture.start(50, 50) .then(function () { console.log('started'); }) .moveBy(50, 50) .then(function () { console.log('moved to (100, 1
【文件预览】:
ghosture-master
----ghosture.js(104KB)
----lib()
--------GTouchEvent.js(2KB)
--------GTouch.js(1KB)
--------GTouchManager.js(6KB)
--------GTouchEmitter.js(3KB)
--------touchSupport.js(898B)
--------GTouchList.js(736B)
--------ObjectMap.js(754B)
--------version.js(26B)
--------GMouseManager.js(737B)
----example()
--------assets()
--------basic.html(1KB)
----LICENSE(1KB)
----test()
--------ghosture.mocha.js(314B)
--------ghosture.phantom.js(7KB)
--------assets()
--------testrunner.html(982B)
----README.md(5KB)
----.gitignore(647B)
----index.js(5KB)
----package.json(1KB)

网友评论