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() { .then(function() {
return service.pressKey('enter') return service.pressKey('enter')
}) })
case '4.3': // tested: 4.3 //case '4.3': // tested: 4.3
case '4.4': // tested: 4.4.2 //case '4.4': // tested: 4.4.2
default: default:
return service.pressKey('tab').delay(1000) return service.pressKey('tab').delay(1000)
.then(function() { .then(function() {

View file

@ -562,7 +562,8 @@ module.exports = syrup.serial()
var response = apk.wire.GetRingerModeResponse.decode(data) var response = apk.wire.GetRingerModeResponse.decode(data)
// Reflection to decode enums to their string values, otherwise // Reflection to decode enums to their string values, otherwise
// we only get an integer // 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 .children[response.mode].name
if (response.success) { if (response.success) {
return ringerMode return ringerMode

View file

@ -13,7 +13,8 @@ module.exports = syrup.serial()
.dependency(require('../support/adb')) .dependency(require('../support/adb'))
.define(function(options, adb) { .define(function(options, adb) {
var log = logger.createLogger('device:resources:service') 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 = { var resource = {
requiredVersion: '0.7.21' requiredVersion: '0.7.21'

View file

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

View file

@ -1,6 +1,8 @@
var _ = require('lodash') var _ = require('lodash')
module.exports = function angularPackeryDirective(PackeryService, DraggabillyService, $timeout, $parse) { module.exports = function angularPackeryDirective(PackeryService,
DraggabillyService, $timeout, $parse) {
return { return {
restrict: 'AE', restrict: 'AE',
link: function (scope, element, attrs) { 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') 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 $scope.showScreen = true
@ -44,7 +45,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.$digest() $scope.$digest()
}) })
} }
} catch(e) { } catch (e) {
alert(e.message) alert(e.message)
} }
} }
@ -87,7 +88,7 @@ module.exports = function DeviceControlCtrl($scope, DeviceService, GroupService,
$scope.currentRotation = 'portrait' $scope.currentRotation = 'portrait'
$scope.$watch('device.display.rotation', function (newValue, oldValue) { $scope.$watch('device.display.rotation', function (newValue) {
if (isPortrait(newValue)) { if (isPortrait(newValue)) {
$scope.currentRotation = 'portrait' $scope.currentRotation = 'portrait'
} else if (isLandscape(newValue)) { } 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) { if (newValue !== oldValue) {
LogcatService.started = newValue LogcatService.started = newValue
if (newValue) { if (newValue) {
$scope.control.startLogcat([]).then(function (result) { $scope.control.startLogcat([]).then(function () {
}) })
} else { } else {
$scope.control.stopLogcat() $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( module.exports = function DeviceListStatsDirective(
UserService UserService
, $timeout
) { ) {
return { return {
restrict: 'E' restrict: 'E'

View file

@ -1,13 +1,8 @@
module.exports = function MenuCtrl( module.exports = function MenuCtrl($scope, $rootScope, SettingsService,
$scope $location, ExternalUrlModalService) {
, $rootScope
, SettingsService
, $location
, ExternalUrlModalService
) {
SettingsService.bind($rootScope, { SettingsService.bind($rootScope, {
target: 'platform' target: 'platform', defaultValue: 'native'
, defaultValue: 'native'
}) })
$scope.$on('$routeChangeSuccess', function () { $scope.$on('$routeChangeSuccess', function () {
@ -15,7 +10,8 @@ module.exports = function MenuCtrl(
}) })
$scope.openChat = function () { $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') ExternalUrlModalService.open(hipChatUrl, 'HipChat #STF', 'fa-comment')
} }
} }