mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Start fixing npm test warnings.
This commit is contained in:
parent
78839ba2e4
commit
342890e884
4 changed files with 6 additions and 4 deletions
|
@ -238,7 +238,8 @@ module.exports = syrup.serial()
|
|||
})
|
||||
|
||||
conn.on('formatchange', function(format) {
|
||||
var same = os.endianness() === 'BE' === !!format.bigEndianFlag
|
||||
var same = os.endianness() === 'BE'
|
||||
=== Boolean(format.bigEndianFlag)
|
||||
switch (format.bitsPerPixel) {
|
||||
case 8:
|
||||
connState.frameConfig = {
|
||||
|
|
|
@ -14,7 +14,7 @@ module.exports = syrup.serial()
|
|||
.dependency(require('../support/properties'))
|
||||
.dependency(require('../support/abi'))
|
||||
.define(function(options, adb, properties, abi) {
|
||||
var log = logger.createLogger('device:resources:minicap')
|
||||
logger.createLogger('device:resources:minicap')
|
||||
|
||||
var resources = {
|
||||
bin: {
|
||||
|
|
|
@ -5,7 +5,7 @@ var Promise = require('bluebird')
|
|||
var logger = require('../../../util/logger')
|
||||
var wireutil = require('../../../wire/util')
|
||||
var srv = require('../../../util/srv')
|
||||
var lifecycle = require('../../../util/lifecycle')
|
||||
require('../../../util/lifecycle')
|
||||
var zmqutil = require('../../../util/zmqutil')
|
||||
|
||||
module.exports = syrup.serial()
|
||||
|
|
|
@ -2,7 +2,8 @@ var crypto = require('crypto')
|
|||
|
||||
// See http://graphics.stanford.edu/~seander/bithacks.html#ReverseByteWith32Bits
|
||||
function reverseByteBits(b) {
|
||||
return ((b * 0x0802 & 0x22110) | (b * 0x8020 & 0x88440)) * 0x10101 >> 16 & 0xFF
|
||||
return (((b * 0x0802 & 0x22110) |
|
||||
(b * 0x8020 & 0x88440)) * 0x10101 >> 16 & 0xFF)
|
||||
}
|
||||
|
||||
function reverseBufferByteBits(b) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue