aboutsummaryrefslogtreecommitdiffstats
path: root/docs/component-spec/annotationsSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/component-spec/annotationsSpec.js')
-rw-r--r--docs/component-spec/annotationsSpec.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/docs/component-spec/annotationsSpec.js b/docs/component-spec/annotationsSpec.js
index d84bd5bd..f1acd64e 100644
--- a/docs/component-spec/annotationsSpec.js
+++ b/docs/component-spec/annotationsSpec.js
@@ -118,15 +118,13 @@ describe('Docs Annotations', function() {
expect(foldout.html()).toContain('loading');
}));
- it('should download a foldout HTML page and animate the contents', inject(function($httpBackend, $timeout) {
+ it('should download a foldout HTML page and animate the contents', inject(function($httpBackend, $timeout, $sniffer) {
$httpBackend.expect('GET', url).respond('hello');
element.triggerHandler('click');
$httpBackend.flush();
$timeout.flushNext(0);
- $timeout.flushNext(1);
- $timeout.flushNext(0);
$timeout.flushNext(1000);
var kids = body.children();
@@ -134,27 +132,22 @@ describe('Docs Annotations', function() {
expect(foldout.text()).toContain('hello');
}));
- it('should hide then show when clicked again', inject(function($httpBackend, $timeout) {
+ it('should hide then show when clicked again', inject(function($httpBackend, $timeout, $sniffer) {
$httpBackend.expect('GET', url).respond('hello');
//enter
element.triggerHandler('click');
$httpBackend.flush();
$timeout.flushNext(0);
- $timeout.flushNext(1);
- $timeout.flushNext(0);
$timeout.flushNext(1000);
//hide
element.triggerHandler('click');
- $timeout.flushNext(1);
$timeout.flushNext(0);
$timeout.flushNext(200);
- $timeout.flushNext(0);
//show
element.triggerHandler('click');
- $timeout.flushNext(1);
$timeout.flushNext(0);
$timeout.flushNext(500);
$timeout.flushNext(0);