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
1cadf902
Commit
1cadf902
authored
Jun 23, 2016
by
Robert Knight
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Give several annotation tests clearer names
parent
5408f2f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
annotation-test.js
h/static/scripts/directive/test/annotation-test.js
+5
-6
No files found.
h/static/scripts/directive/test/annotation-test.js
View file @
1cadf902
...
@@ -377,7 +377,7 @@ describe('annotation', function() {
...
@@ -377,7 +377,7 @@ describe('annotation', function() {
});
});
});
});
describe
(
'
.
isHighlight()'
,
function
()
{
describe
(
'
#
isHighlight()'
,
function
()
{
it
(
'returns true for new highlights'
,
function
()
{
it
(
'returns true for new highlights'
,
function
()
{
var
annotation
=
fixtures
.
newHighlight
();
var
annotation
=
fixtures
.
newHighlight
();
...
@@ -906,8 +906,8 @@ describe('annotation', function() {
...
@@ -906,8 +906,8 @@ describe('annotation', function() {
});
});
});
});
describe
(
'
onGroupFocused()
'
,
function
()
{
describe
(
'
when the focused group changes
'
,
function
()
{
it
(
'
updates domainModel.group if the annotation is new
'
,
function
()
{
it
(
'
moves new annotations to the focused group
'
,
function
()
{
var
annotation
=
fixtures
.
newAnnotation
();
var
annotation
=
fixtures
.
newAnnotation
();
annotation
.
group
=
'old-group-id'
;
annotation
.
group
=
'old-group-id'
;
createDirective
(
annotation
);
createDirective
(
annotation
);
...
@@ -918,7 +918,7 @@ describe('annotation', function() {
...
@@ -918,7 +918,7 @@ describe('annotation', function() {
assert
.
equal
(
annotation
.
group
,
'new-group-id'
);
assert
.
equal
(
annotation
.
group
,
'new-group-id'
);
});
});
it
(
'does not
update domainModel.group if the annotation is not new
'
,
it
(
'does not
modify the group of saved annotations
'
,
function
()
{
function
()
{
var
annotation
=
fixtures
.
oldAnnotation
();
var
annotation
=
fixtures
.
oldAnnotation
();
annotation
.
group
=
'old-group-id'
;
annotation
.
group
=
'old-group-id'
;
...
@@ -932,7 +932,6 @@ describe('annotation', function() {
...
@@ -932,7 +932,6 @@ describe('annotation', function() {
);
);
});
});
describe
(
'reverting edits'
,
function
()
{
describe
(
'reverting edits'
,
function
()
{
it
(
'removes the current draft'
,
function
()
{
it
(
'removes the current draft'
,
function
()
{
var
controller
=
createDirective
(
fixtures
.
defaultAnnotation
()).
controller
;
var
controller
=
createDirective
(
fixtures
.
defaultAnnotation
()).
controller
;
...
@@ -950,7 +949,7 @@ describe('annotation', function() {
...
@@ -950,7 +949,7 @@ describe('annotation', function() {
});
});
describe
(
'tag display'
,
function
()
{
describe
(
'tag display'
,
function
()
{
it
(
'displays
annotation tags
'
,
function
()
{
it
(
'displays
links to tags on the stream
'
,
function
()
{
var
directive
=
createDirective
({
var
directive
=
createDirective
({
id
:
'1234'
,
id
:
'1234'
,
tags
:
[
'atag'
]
tags
:
[
'atag'
]
...
...
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