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

Add 'get' canvas functions to ranges #79

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

MImranAsghar
Copy link

  • Add getCanvases, getCanvasById, getCanvasByIndex functions for the range type

@stephenwf
Copy link
Member

I'm not sure why, but 3 tests appear to be failing now:

195 passing (2s)
  3 failing
  1) pres3 presentation 3 range has a canvas:
     TypeError: Cannot read property '__jsonld' of undefined
      at context.<anonymous> (test/tests/pres3.js:48:96)
  2) pres3 presentation 3 has an annotation body:
     TypeError: Cannot read property 'getContent' of undefined
      at context.<anonymous> (test/tests/pres3.js:54:26)
  3) pres3 presentation 3 has a label:
     TypeError: Cannot read property 'getLabel' of undefined
      at context.<anonymous> (test/tests/pres3.js:62:26)

@MImranAsghar
Copy link
Author

Ah interesting, looking into it 👍

@MImranAsghar
Copy link
Author

Hi @stephenwf , fixed the tests

- Create getCanvases, getCanvasById, getCanvasByIndex functions for the range type
sequence to range as well
- Add test for getCanvasById range
... index to each canvas in range
... ranges when getting canvases
@MImranAsghar
Copy link
Author

Hi @stephenwf , I was wondering if you got a chance to take a look at the changes. do you think this can be merged? 🤔

@stephenwf
Copy link
Member

Sorry yes I think so 👍 @edsilv ?

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.

2 participants