mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 22:35:25 +02:00
Added screenshot fade-in transition.
This commit is contained in:
23
res/app/components/stf/image-onload/image-onload-spec.js
Normal file
23
res/app/components/stf/image-onload/image-onload-spec.js
Normal file
@@ -0,0 +1,23 @@
|
||||
describe('imageOnload', function () {
|
||||
|
||||
beforeEach(module('stf.image-onload'));
|
||||
|
||||
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 image-onload name="name">hi</div>')(scope);
|
||||
expect(element.text()).toBe('hello, world');
|
||||
*/
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user