1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
This commit is contained in:
Gunther Brunner 2014-09-02 12:24:07 +09:00
parent 12eaf5182f
commit a0e0d2228a
14 changed files with 31 additions and 31 deletions

View file

@ -235,8 +235,8 @@ module.exports = syrup.serial()
.then(function() {
return service.pressKey('enter')
})
case '4.3': // tested: 4.3
case '4.4': // tested: 4.4.2
//case '4.3': // tested: 4.3
//case '4.4': // tested: 4.4.2
default:
return service.pressKey('tab').delay(1000)
.then(function() {

View file

@ -562,7 +562,8 @@ module.exports = syrup.serial()
var response = apk.wire.GetRingerModeResponse.decode(data)
// Reflection to decode enums to their string values, otherwise
// we only get an integer
var ringerMode = apk.builder.lookup('jp.co.cyberagent.stf.proto.RingerMode')
var ringerMode = apk.builder.lookup(
'jp.co.cyberagent.stf.proto.RingerMode')
.children[response.mode].name
if (response.success) {
return ringerMode

View file

@ -13,7 +13,8 @@ module.exports = syrup.serial()
.dependency(require('../support/adb'))
.define(function(options, adb) {
var log = logger.createLogger('device:resources:service')
var builder = ProtoBuf.loadProtoFile(pathutil.vendor('STFService/wire.proto'))
var builder = ProtoBuf.loadProtoFile(
pathutil.vendor('STFService/wire.proto'))
var resource = {
requiredVersion: '0.7.21'

View file

@ -1,7 +1,7 @@
module.exports = function adminModeDirective($rootScope, SettingsService) {
return {
restrict: 'AE',
link: function (scope) {
link: function () {
SettingsService.bind($rootScope, {
target: 'adminMode',
defaultValue: false

View file

@ -1,6 +1,8 @@
var _ = require('lodash')
module.exports = function angularPackeryDirective(PackeryService, DraggabillyService, $timeout, $parse) {
module.exports = function angularPackeryDirective(PackeryService,
DraggabillyService, $timeout, $parse) {
return {
restrict: 'AE',
link: function (scope, element, attrs) {

View file

@ -1,3 +1,3 @@
module.exports = function AdvancedCtrl($scope) {
module.exports = function AdvancedCtrl() {
}

View file

@ -1,3 +1,3 @@
module.exports = function CpuCtrl($scope) {
module.exports = function CpuCtrl() {
}

View file

@ -1,3 +1,3 @@
module.exports = function DashboardCtrl($scope) {
module.exports = function DashboardCtrl() {
}

View file

@ -1,6 +1,7 @@
var _ = require('lodash')
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService, $location, $timeout, gettext, $filter) {
module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$location, $timeout) {
$scope.showScreen = true
@ -44,7 +45,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.$digest()
})
}
} catch(e) {
} catch (e) {
alert(e.message)
}
}
@ -87,7 +88,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.currentRotation = 'portrait'
$scope.$watch('device.display.rotation', function (newValue, oldValue) {
$scope.$watch('device.display.rotation', function (newValue) {
if (isPortrait(newValue)) {
$scope.currentRotation = 'portrait'
} else if (isLandscape(newValue)) {

View file

@ -1,3 +1,3 @@
module.exports = function InspectCtrl($scope) {
module.exports = function InspectCtrl() {
}

View file

@ -12,7 +12,7 @@ module.exports = function LogsCtrl($scope, LogcatService) {
if (newValue !== oldValue) {
LogcatService.started = newValue
if (newValue) {
$scope.control.startLogcat([]).then(function (result) {
$scope.control.startLogcat([]).then(function () {
})
} else {
$scope.control.stopLogcat()

View file

@ -1,3 +1,3 @@
module.exports = function ResourcesCtrl($scope) {
module.exports = function ResourcesCtrl() {
}

View file

@ -1,6 +1,5 @@
module.exports = function DeviceListStatsDirective(
UserService
, $timeout
) {
return {
restrict: 'E'

View file

@ -1,13 +1,8 @@
module.exports = function MenuCtrl(
$scope
, $rootScope
, SettingsService
, $location
, ExternalUrlModalService
) {
module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$location, ExternalUrlModalService) {
SettingsService.bind($rootScope, {
target: 'platform'
, defaultValue: 'native'
target: 'platform', defaultValue: 'native'
})
$scope.$on('$routeChangeSuccess', function () {
@ -15,7 +10,8 @@ module.exports = function MenuCtrl(
})
$scope.openChat = function () {
var hipChatUrl = 'https://cyberagent.hipchat.com/chat?focus_jid=44808_stf@conf.hipchat.com&minimal=true'
var hipChatUrl = 'https://cyberagent.hipchat.com/chat?focus_jid=' +
'44808_stf@conf.hipchat.com&minimal=true'
ExternalUrlModalService.open(hipChatUrl, 'HipChat #STF', 'fa-comment')
}
}