Fix all res/ files with ESLint rules with 0 errors.

This commit is contained in:
Gunther Brunner
2016-01-19 23:08:33 +09:00
parent 1006564ae7
commit a3f815c118
258 changed files with 1634 additions and 1634 deletions

View File

@@ -1,57 +1,57 @@
describe('Control Page', function () {
describe('Control Page', function() {
var DeviceListPage = require('../devices')
var deviceListPage = new DeviceListPage()
var ControlPage = function () {
this.get = function () {
var ControlPage = function() {
this.get = function() {
browser.get(protractor.getInstance().baseUrl + 'control')
}
this.kickDeviceButton = element.all(by.css('.kick-device')).first()
this.kickDevice = function () {
this.kickDevice = function() {
this.openDevicesDropDown()
this.kickDeviceButton.click()
}
this.devicesDropDown = element(by.css('.device-name-text'))
this.openDevicesDropDown = function () {
this.openDevicesDropDown = function() {
this.devicesDropDown.click()
}
}
var controlPage = new ControlPage()
it('should control an usable device', function () {
it('should control an usable device', function() {
deviceListPage.controlAvailableDevice()
waitUrl(/control/)
browser.sleep(500)
browser.getLocationAbsUrl().then(function (newUrl) {
browser.getLocationAbsUrl().then(function(newUrl) {
expect(newUrl).toMatch(protractor.getInstance().baseUrl + 'control')
})
})
it('should have a kick button', function () {
it('should have a kick button', function() {
expect(controlPage.kickDeviceButton.isPresent()).toBeTruthy()
})
describe('Remote Control', function () {
describe('Remote Control', function() {
//var RemoteCtrl = function () {
// this.paneHandleHorizontal = element(by.css('.fa-pane-handle.horizontal'))
//}
it('should resize panel to the right', function () {
it('should resize panel to the right', function() {
})
it('should rotate device', function () {
it('should rotate device', function() {
})
})
describe('Dashboard Tab', function () {
describe('Dashboard Tab', function() {
describe('Shell', function () {
var ShellCtrl = function () {
describe('Shell', function() {
var ShellCtrl = function() {
this.commandInput = element(by.model('command'))
this.results = element.all(by.css('.shell-results')).first()
@@ -60,13 +60,13 @@ describe('Control Page', function () {
this.clearCommand = 'clear'
this.openMenuCommand = 'input keyevent 3'
this.execute = function (command) {
this.execute = function(command) {
this.commandInput.sendKeys(command, protractor.Key.ENTER)
}
}
var shell = new ShellCtrl()
it('should echo "hello adb" to the adb shell', function () {
it('should echo "hello adb" to the adb shell', function() {
expect(shell.commandInput.isPresent()).toBe(true)
shell.execute(shell.echoCommand)
@@ -74,29 +74,29 @@ describe('Control Page', function () {
expect(shell.results.getText()).toBe(shell.helloString)
})
it('should clear adb shell input', function () {
it('should clear adb shell input', function() {
shell.execute(shell.clearCommand)
expect(shell.results.getText()).toBeFalsy()
})
it('should open and close the menu button trough adb shell', function () {
it('should open and close the menu button trough adb shell', function() {
shell.execute(shell.openMenuCommand)
shell.execute(shell.openMenuCommand)
})
})
describe('Navigation', function () {
var NavigationCtrl = function () {
describe('Navigation', function() {
var NavigationCtrl = function() {
this.urlInput = element(by.model('textURL'))
this.goToUrl = function (url) {
this.goToUrl = function(url) {
this.urlInput.sendKeys(url, protractor.Key.ENTER)
}
this.resetButton = element(by.css('[ng-click="clearSettings()"]'))
}
var navigation = new NavigationCtrl()
it('should go to an URL', function () {
it('should go to an URL', function() {
var url = 'google.com'
navigation.goToUrl(url)
expect(navigation.urlInput.getAttribute('value')).toBe(url)
@@ -104,40 +104,40 @@ describe('Control Page', function () {
browser.sleep(500)
})
it('should clear the URL input', function () {
it('should clear the URL input', function() {
navigation.urlInput.clear()
expect(navigation.urlInput.getAttribute('value')).toBeFalsy()
})
it('should reset browser settings', function () {
it('should reset browser settings', function() {
navigation.resetButton.click()
})
})
})
describe('Screenshots Tab', function () {
describe('Screenshots Tab', function() {
})
describe('Automation Tab', function () {
describe('Automation Tab', function() {
})
describe('Advanced Tab', function () {
describe('Advanced Tab', function() {
})
describe('Logs Tab', function () {
describe('Logs Tab', function() {
})
it('should stop controlling an usable device', function () {
it('should stop controlling an usable device', function() {
controlPage.kickDevice()
waitUrl(/devices/)
browser.getLocationAbsUrl().then(function (newUrl) {
browser.getLocationAbsUrl().then(function(newUrl) {
expect(newUrl).toBe(protractor.getInstance().baseUrl + 'devices')
})
})