Bug 135780 - Load the layout test result image diff HTML from a file, rather than having it inline in webkitpy
Summary: Load the layout test result image diff HTML from a file, rather than having i...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-08 17:12 PDT by Simon Fraser (smfr)
Modified: 2014-08-08 17:24 PDT (History)
6 users (show)

See Also:


Attachments
Patch (6.58 KB, patch)
2014-08-08 17:13 PDT, Simon Fraser (smfr)
dbates: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2014-08-08 17:12:40 PDT
Load the layout test result image diff HTML from a file, rather than having it inline in webkitpy
Comment 1 Simon Fraser (smfr) 2014-08-08 17:13:42 PDT
Created attachment 236326 [details]
Patch
Comment 2 Tim Horton 2014-08-08 17:14:58 PDT
Comment on attachment 236326 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=236326&action=review

> LayoutTests/fast/harness/image-diff-template.html:15
> +var preloadedImageCount = 0;

indentationplz

> LayoutTests/fast/harness/image-diff-template.html:26
> +image.addEventListener('load', preloadComplete);

here too
Comment 3 Daniel Bates 2014-08-08 17:15:31 PDT
Comment on attachment 236326 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=236326&action=review

> Tools/ChangeLog:8
> +        Pull the HTML the image diff file into a separate file, for easier hackability.

This sentence doesn't read well.
Comment 4 Daniel Bates 2014-08-08 17:17:08 PDT
Comment on attachment 236326 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=236326&action=review

> LayoutTests/fast/harness/image-diff-template.html:10
> +<div class=imageText></div>
> +<div class=imageContainer data-prefix="%(prefix)s">Loading...</div>

Nit: I know you are just copying and pasting this markup. We should add quotes are the value of the HTML class attribute.
Comment 5 Daniel Bates 2014-08-08 17:17:52 PDT
(In reply to comment #4)
> (From update of attachment 236326 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=236326&action=review
> 
> > LayoutTests/fast/harness/image-diff-template.html:10
> > +<div class=imageText></div>
> > +<div class=imageContainer data-prefix="%(prefix)s">Loading...</div>
> 
> Nit: [...] We should add quotes are the value of the HTML class attribute.

* We should add quotes around the value of the HTML class attribute.
Comment 6 Simon Fraser (smfr) 2014-08-08 17:24:12 PDT
https://trac.webkit.org/r172368