mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-24 23:05:22 +02:00
Fix all res/ files with ESLint rules with 0 errors.
This commit is contained in:
@@ -8,15 +8,15 @@ module.exports = function deviceContextMenuDirective($window) {
|
||||
//},
|
||||
transclude: true,
|
||||
template: require('./device-context-menu.jade'),
|
||||
link: function (scope) {
|
||||
link: function(scope) {
|
||||
//var device = scope.device()
|
||||
//var control = scope.control()
|
||||
scope.windowClose = function () {
|
||||
scope.windowClose = function() {
|
||||
$window.close()
|
||||
}
|
||||
|
||||
scope.saveScreenShot = function () {
|
||||
scope.control.screenshot().then(function (result) {
|
||||
scope.saveScreenShot = function() {
|
||||
scope.control.screenshot().then(function(result) {
|
||||
location.href = result.body.href + '?download'
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
describe('deviceContextMenu', function () {
|
||||
describe('deviceContextMenu', function() {
|
||||
|
||||
beforeEach(angular.mock.module(require('./').name))
|
||||
|
||||
var scope, compile
|
||||
|
||||
beforeEach(inject(function ($rootScope, $compile) {
|
||||
beforeEach(inject(function($rootScope, $compile) {
|
||||
scope = $rootScope.$new()
|
||||
compile = $compile
|
||||
}))
|
||||
|
||||
it('should ...', function () {
|
||||
it('should ...', function() {
|
||||
|
||||
/*
|
||||
To test your directive, you need to create some html that would use your directive,
|
||||
|
||||
Reference in New Issue
Block a user