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
7d9ac533
Commit
7d9ac533
authored
Jan 29, 2015
by
Aron Carroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken unit tests due to event API changes
parent
b4b2eec5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
karma.config.js
karma.config.js
+10
-8
annotation-sync-test.coffee
tests/js/annotation-sync-test.coffee
+2
-1
No files found.
karma.config.js
View file @
7d9ac533
...
@@ -18,14 +18,6 @@ module.exports = function(config) {
...
@@ -18,14 +18,6 @@ module.exports = function(config) {
'h/static/scripts/vendor/polyfills/bind.js'
,
'h/static/scripts/vendor/polyfills/bind.js'
,
'h/static/scripts/vendor/polyfills/url.js'
,
'h/static/scripts/vendor/polyfills/url.js'
,
'h/static/scripts/vendor/jquery.js'
,
'h/static/scripts/vendor/jquery.js'
,
'h/static/scripts/vendor/angular.js'
,
'h/static/scripts/vendor/angular-mocks.js'
,
'h/static/scripts/vendor/angular-animate.js'
,
'h/static/scripts/vendor/angular-bootstrap.js'
,
'h/static/scripts/vendor/angular-resource.js'
,
'h/static/scripts/vendor/angular-route.js'
,
'h/static/scripts/vendor/angular-sanitize.js'
,
'h/static/scripts/vendor/ng-tags-input.js'
,
'h/static/scripts/vendor/jschannel.js'
,
'h/static/scripts/vendor/jschannel.js'
,
'h/static/scripts/vendor/jwz.js'
,
'h/static/scripts/vendor/jwz.js'
,
'h/static/scripts/vendor/moment-with-langs.js'
,
'h/static/scripts/vendor/moment-with-langs.js'
,
...
@@ -43,6 +35,16 @@ module.exports = function(config) {
...
@@ -43,6 +35,16 @@ module.exports = function(config) {
'h/static/scripts/annotator/plugin/threading.js'
,
'h/static/scripts/annotator/plugin/threading.js'
,
'h/static/scripts/vendor/dom_text_mapper.js'
,
'h/static/scripts/vendor/dom_text_mapper.js'
,
'h/static/scripts/annotator/annotator.anchoring.js'
,
'h/static/scripts/annotator/annotator.anchoring.js'
,
// Angular needs to be included after annotator to avoid the
// CrossFrame dependencies in Bridge picking up the angular object.
'h/static/scripts/vendor/angular.js'
,
'h/static/scripts/vendor/angular-mocks.js'
,
'h/static/scripts/vendor/angular-animate.js'
,
'h/static/scripts/vendor/angular-bootstrap.js'
,
'h/static/scripts/vendor/angular-resource.js'
,
'h/static/scripts/vendor/angular-route.js'
,
'h/static/scripts/vendor/angular-sanitize.js'
,
'h/static/scripts/vendor/ng-tags-input.js'
,
'h/static/scripts/app.js'
,
'h/static/scripts/app.js'
,
'h/static/scripts/account.js'
,
'h/static/scripts/account.js'
,
'h/static/scripts/helpers.js'
,
'h/static/scripts/helpers.js'
,
...
...
tests/js/annotation-sync-test.coffee
View file @
7d9ac533
...
@@ -30,7 +30,8 @@ describe 'AnnotationSync', ->
...
@@ -30,7 +30,8 @@ describe 'AnnotationSync', ->
# TODO: Fix this hack to remove pre-existing bound listeners.
# TODO: Fix this hack to remove pre-existing bound listeners.
$rootScope
.
$
$listeners
=
[]
$rootScope
.
$
$listeners
=
[]
options
=
options
=
on
:
sandbox
.
spy
(
$rootScope
.
$on
.
bind
(
$rootScope
))
on
:
sandbox
.
spy
(
event
,
fn
)
->
$rootScope
.
$on
(
event
,
(
evt
,
args
...)
->
fn
(
args
...))
emit
:
sandbox
.
spy
(
$rootScope
.
$emit
.
bind
(
$rootScope
))
emit
:
sandbox
.
spy
(
$rootScope
.
$emit
.
bind
(
$rootScope
))
createAnnotationSync
=
->
createAnnotationSync
=
->
...
...
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