-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Show answer for imageresponse #1914
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed.
|
👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add example of answers of different types to docstring
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added.
|
The unit testing approach seems reasonable, as long as @jtauber says it's okay to use the new library. The change itself isn't well covered by the acceptance test suite, so please make sure you test this in all supported browsers on stage before we deploy in the next release. |
|
js-imagediff license is fine. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polesye Instead of putting all this HTML markup here, why not put it in a separate html file in the fixtures directory and load it with 'read' function of jasmine-jquery?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not a full template, just a responsetype specific part, that will be prepended below in the code.
Also, I did so in style that is used in this spec.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polesye I know. The read function will return a string ,not append a fixture to the DOM. And sure, you are consistent with the style in the spec. I just find that chunk a bit ugly and distracting.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmclaus Ok, I will fix that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@polesye Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jmclaus Done.
|
@jmclaus Short notation for regions was intended by product owner. Because rectangles are used more widely. May be we can improve it by having same internal and different externals formats? |
|
@auraz I think that whatever format we choose, it should be consistent between rectangles, defined by a set of two point, and regions, defined by a set of three or more points. In rectangles, point coordinates are surrounded by parenthesis. In regions, it's brackets. Different rectangles are separated by semi-columns. In regions, it's commas. (100,20)-(30,110)-(40, 50); (200,25)-(130,110)-(40, 50) |
|
@polesye As discussed on HipChat, these tests, that are specific to image input, should not be added to common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee |
|
@jmclaus please continue review. |
|
@polesye We finally decided against "As discussed on HipChat, these tests, that are specific to image input, should not be added to common/lib/xmodule/xmodule/js/spec/capa/display_spec.coffee" And my comment on format should be done in another PR, if ever, as it implies a significant amount of code change. So, 👍 once Jenkins agrees. |
|
@polesye 👍 good to merge! |
BLD-21
"Show answer" on imageresponse should highlight the area that would have earned full credit if the student had left her marker there.
Example of XML:
@jmclaus and @auraz please review.