Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Annotation enhancements needed to support multiple selectors and target sources #3232

Merged
merged 2 commits into from
Jul 27, 2020

Conversation

mejackreed
Copy link
Collaborator

@@ -124,6 +130,10 @@ describe('AnnotationItem', () => {
expect(new AnnotationItem({ target: 'www.example.com/#xywh=10,10,100,200' })
.fragmentSelector).toEqual([10, 10, 100, 200]);
});
it('multiple selectors', () => {
expect(new AnnotationItem({ target: { selector: [{ type: 'FragmentSelector', value: 'www.example.com/#xywh=10,10,100,200' }] } })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AFAIK the value of a FragmentSelector is just the fragment, i.e. value: 'xywh=10,10,100,200' ;-)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that @robcast. I've updated the test to reflect that.

@mejackreed mejackreed force-pushed the annotation-enhancements branch from 56b4409 to b1a03c8 Compare July 24, 2020 17:35
@codecov-commenter
Copy link

codecov-commenter commented Jul 24, 2020

Codecov Report

Merging #3232 into master will increase coverage by 0.09%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3232      +/-   ##
==========================================
+ Coverage   90.54%   90.64%   +0.09%     
==========================================
  Files         187      187              
  Lines        3153     3152       -1     
==========================================
+ Hits         2855     2857       +2     
+ Misses        298      295       -3     
Impacted Files Coverage Δ
src/lib/AnnotationItem.js 89.18% <100.00%> (+7.61%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 92da6c3...b1a03c8. Read the comment docs.

@cbeer cbeer merged commit 773893a into master Jul 27, 2020
@cbeer cbeer deleted the annotation-enhancements branch July 27, 2020 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants