Jeremy Zhang (9670ee90) at 16 Jan 21:55
Fix zip error
Jeremy Zhang (45ff3021) at 13 Jan 20:07
Use tmp dir due to more storage
Jeremy Zhang (f3404b46) at 10 Jan 13:49
Fix typo
Jeremy Zhang (3cbef108) at 09 Jan 20:53
Compressing an html file just to fit ed limits
Jeremy Zhang (33409f81) at 04 Jan 15:10
Rely less on grabbing global variables by id
Jeremy Zhang (0f5126a5) at 04 Jan 14:20
Jeremy Zhang (0f3ea136) at 04 Jan 14:20
Merge branch 'screenshots-diff-tool' into 'master'
... and 4 more commits
Adds a diff tool to the student and grader views for the HTML generated
by screenshots.py
.
Suppose p1
and p2
represent the actual and expected values of some pixel (respectively).
Then, defining Δr = p1.r - p2.r, Δg = p1.g - p2.g, Δb = p1.g - p2.g, Δa = p1.a - p2.a
, if Δr² + Δg² + Δb² + Δa² ≥ tolerance
, then the two pixels are considered different.
Tolerance can be adjusted through the HTML page's URL. For example, if viewing file:///tmp/mozilla_selenite0/Screenshots-3-2.html
, navigate to file:///tmp/mozilla_selenite0/Screenshots-3-2.html?tolerance=256
for a version with tolerance=256
.
LGTM!
Jeremy Zhang (0f5126a5) at 04 Jan 14:19
Update typo
Jeremy Zhang (115d57d8) at 02 Jan 22:01
Out the error if moving files failed
Jeremy Zhang (0573fb50) at 30 Dec 18:23
Only show the first line of failed junit stack trace
Jeremy Zhang (acab46c4) at 30 Dec 18:19
Add start point for html junit output