mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-26 02:35:25 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -3,7 +3,7 @@ require('./remote-debug.css')
|
||||
module.exports = angular.module('stf.remote-debug', [
|
||||
require('gettext').name
|
||||
])
|
||||
.run(["$templateCache", function ($templateCache) {
|
||||
.run(['$templateCache', function($templateCache) {
|
||||
$templateCache.put(
|
||||
'control-panes/advanced/remote-debug/remote-debug.jade',
|
||||
require('./remote-debug.jade')
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
|
||||
function startRemoteConnect() {
|
||||
if ($scope.control) {
|
||||
$scope.control.startRemoteConnect().then(function (result) {
|
||||
$scope.control.startRemoteConnect().then(function(result) {
|
||||
var url = result.lastData
|
||||
$scope.$apply(function () {
|
||||
$scope.$apply(function() {
|
||||
$scope.debugCommand = 'adb connect ' + url
|
||||
})
|
||||
})
|
||||
@@ -15,14 +15,14 @@ module.exports = function RemoteDebugCtrl($scope, $timeout, gettext) {
|
||||
|
||||
// TODO: Remove timeout and fix control initialization
|
||||
if (!startRemoteConnect()) {
|
||||
$timeout(function () {
|
||||
$timeout(function() {
|
||||
if (!startRemoteConnect()) {
|
||||
$timeout(startRemoteConnect, 1000)
|
||||
}
|
||||
}, 200)
|
||||
}
|
||||
|
||||
$scope.$watch('platform', function (newValue) {
|
||||
$scope.$watch('platform', function(newValue) {
|
||||
if (newValue === 'native') {
|
||||
$scope.remoteDebugTooltip =
|
||||
gettext('Run the following on your command line to debug the device from your IDE')
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
describe('RemoteDebugCtrl', function () {
|
||||
describe('RemoteDebugCtrl', function() {
|
||||
|
||||
beforeEach(angular.mock.module(require('./').name));
|
||||
beforeEach(angular.mock.module(require('./').name))
|
||||
|
||||
var scope, ctrl;
|
||||
var scope, ctrl
|
||||
|
||||
beforeEach(inject(function ($rootScope, $controller) {
|
||||
scope = $rootScope.$new();
|
||||
ctrl = $controller('RemoteDebugCtrl', {$scope: scope});
|
||||
}));
|
||||
beforeEach(inject(function($rootScope, $controller) {
|
||||
scope = $rootScope.$new()
|
||||
ctrl = $controller('RemoteDebugCtrl', {$scope: scope})
|
||||
}))
|
||||
|
||||
it('should ...', inject(function () {
|
||||
expect(1).toEqual(1);
|
||||
it('should ...', inject(function() {
|
||||
expect(1).toEqual(1)
|
||||
|
||||
}));
|
||||
}))
|
||||
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user