Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
e7b4ec08
Commit
e7b4ec08
authored
Jan 30, 2015
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove hack in AnnotationUIController
This was fixed by 8e1c52f7 and moving bootstrap into app.coffee
parent
a5b69f7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
11 deletions
+0
-11
controllers-test.coffee
tests/js/controllers-test.coffee
+0
-11
No files found.
tests/js/controllers-test.coffee
View file @
e7b4ec08
...
...
@@ -87,7 +87,6 @@ describe 'AnnotationUIController', ->
$scope
=
null
$rootScope
=
null
fakeAnnotationUI
=
null
cacheAsyncQueue
=
null
beforeEach
module
(
'h'
)
beforeEach
inject
(
_$rootScope_
,
AnnotationUIController
)
->
...
...
@@ -100,18 +99,8 @@ describe 'AnnotationUIController', ->
focusedAnnotationsMap
:
null
removeSelectedAnnotation
:
sandbox
.
stub
()
# FIXME: No idea why, but we cannot call $digest() here without angular
# attempting to make an ajax request to an undefined url. This causes
# an internal angular method to throw an exception as it tries to read
# the url protocol. I'm assuming this is caused by a call to $evalAsync
# somewhere in the application.
cacheAsyncQueue
=
$rootScope
.
$
$asyncQueue
$rootScope
.
$
$asyncQueue
=
[]
new
AnnotationUIController
(
fakeAnnotationUI
,
$rootScope
,
$scope
)
afterEach
->
$rootScope
.
$
$asyncQueue
=
cacheAsyncQueue
it
'updates the view when the selection changes'
,
->
fakeAnnotationUI
.
selectedAnnotationMap
=
{
1
:
true
,
2
:
true
}
$rootScope
.
$digest
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment