Bug 48306

Summary: Fix LayoutTests/canvas/philip/tests/2d.drawImage.incomplete.html
Product: WebKit Reporter: Mike Lawther <mikelawther>
Component: CanvasAssignee: Matthew Delaney <mdelaney7>
Status: RESOLVED FIXED    
Severity: Normal CC: excors, mdelaney7, simon.fraser
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on:    
Bug Blocks: 46506    
Attachments:
Description Flags
Patch darin: review+

Mike Lawther
Reported 2010-10-25 22:53:13 PDT
This layout test fails. See master bug: https://bugs.webkit.org/show_bug.cgi?id=46506
Attachments
Patch (3.97 KB, patch)
2010-11-03 17:51 PDT, Matthew Delaney
darin: review+
Matthew Delaney
Comment 1 2010-11-03 16:58:41 PDT
I believe this test is incorrect in the way that it creates an image that is supposed to have its complete attribute set to false. Per the spec, an <img> without a src attribute specified should have complete return true: "" The IDL attribute complete must return true if any of the following conditions is true: The src attribute is omitted. The src attribute's value is the empty string. The final task that is queued by the networking task source once the resource has been fetched has been queued, but has not yet been run, and the img element is not in the broken state. The img element is completely available. "" from http://dev.w3.org/html5/spec/Overview.html#dom-img-complete I'm going to modify the test to create the image and then set its src attribute to be a non-existent file. This will cause the image to have complete=false.
Matthew Delaney
Comment 2 2010-11-03 17:51:28 PDT
Darin Adler
Comment 3 2010-11-03 17:55:01 PDT
Comment on attachment 72890 [details] Patch How are we getting these test changes back to the original tests?
Matthew Delaney
Comment 4 2010-11-03 18:02:51 PDT
By cc-ing philip! :-) I've been chatting with him off and on via IRC about these issues. He said he's quite busy but always wants to be CC-ed or informed about them so that we can incorporate them later. There's also an effort to get his most up-to-date versions of his tests since some of the ones we have are out of date. Though, as I run through individual tests, I'm making sure to sync up the tests that I post fixes for - hopefully that'll make syncing up with his new test versions easier.
Matthew Delaney
Comment 5 2010-11-03 18:20:15 PDT
Note You need to log in before you can comment on or make changes to this bug.