[Webkit-unassigned] [Bug 58106] [chromium] Implement image/png support in DataTransferItems

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Apr 11 06:28:46 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=58106





--- Comment #16 from Hayato Ito <hayato at chromium.org>  2011-04-11 06:28:45 PST ---
Let me add the additional info:

If the first run fails and the ru-run passes,  the 'actual-png' in the result directory is the result of stage 1, not stage 3.


(In reply to comment #15)
> I can reproduce this also. I confirmed that '-expected.html' strangely affects '-actual.png'.
> 
> That is related with the fact that new-run-webkit-tests will re-run a test if the test failed.
> Let me explain:
> 
> At first run:
>   1. The driver runs data-transfer-items-image-png.html. The result is an unexpected one because 'no changes to the DOM had occurred'. I have no ideas why this strange behavior happens.
>   2.  The driver runs data-transfer-items-image-png-expected.html. In this run, changes to the DOM occurred.
> 
> new-run-webkit-tests will try to re-run this test.
> 
> At re-run:
>   3. The driver re-runs data-transfer-items-image-png.html. The result is an expected one because changes to the DOM already occurred at stage '2'.
>   4. The driver runs data-transfer-items-image-png-expected.html.
> 
> 
> So the final result of '-actual-png', which is the result of '3', might differ depending on whether the run of '-expected.html' changes DOM or not at stage '2'.
> 
> The same driver (DumpRenderTree instance) is used at all stages.
> 
> 
> (In reply to comment #12)
> > I've done more investigation, and I don't understand why the layout test only works sometimes:
> > 
> > Works:
> > run-webkit-tests.sh editing/pasteboard/data-transfer-items-image-png.html
> > 
> > Doesn't work:
> > run-webkit-tests.sh editing/pasteboard
> > 
> > Works:
> > Add a <div id="console"></div> element, and at the end of the paste event handler, add the following snippet:
> > document.getElementById('console').appendChild(document.createTextNode('a'));
> > 
> > Doesn't work:
> > Adding the console div element, but doing this instead at the end of the paste event handler:
> > document.getElementById('console').appendChild(document.createElement('br'));
> > 
> > In all cases, when the layout test fails, it behaves as if no changes to the DOM had occurred. The pasted image does not appear at all.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list