mirror of
https://github.com/openstf/stf
synced 2025-10-05 10:39:25 +02:00
Fix touch coordinates on Yoga Tablet 8.
This commit is contained in:
parent
758e43e2e8
commit
33d4c70820
2 changed files with 44 additions and 5 deletions
16
lib/units/device/plugins/flags.js
Normal file
16
lib/units/device/plugins/flags.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
var syrup = require('syrup')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
.dependency(require('./data'))
|
||||
.define(function(options, data) {
|
||||
return {
|
||||
has: function(flag) {
|
||||
return data && data.flags && !!data.flags[flag]
|
||||
}
|
||||
, get: function(flag, defaultValue) {
|
||||
return data && data.flags && data.flags[flag] !== void 0
|
||||
? data.flags[flag]
|
||||
: defaultValue
|
||||
}
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue