Refactored device context menu to its own directive.

Now works in standalone also.
This commit is contained in:
Gunther Brunner
2014-09-25 17:10:31 +09:00
parent f705cd60a7
commit c81cd75a50
10 changed files with 86 additions and 30 deletions

View File

@@ -0,0 +1,23 @@
describe('deviceContextMenu', function () {
beforeEach(angular.mock.module(require('./').name))
var scope, compile
beforeEach(inject(function ($rootScope, $compile) {
scope = $rootScope.$new()
compile = $compile
}))
it('should ...', function () {
/*
To test your directive, you need to create some html that would use your directive,
send that through compile() then compare the results.
var element = compile('<div device-context-menu name="name">hi</div>')(scope)
expect(element.text()).toBe('hello, world')
*/
})
})