Bug 98696

Summary: Add tests for plugin snapshotting
Product: WebKit Reporter: Jon Lee <jonlee>
Component: WebKit Misc.Assignee: Jon Lee <jonlee>
Status: RESOLVED FIXED    
Severity: Normal CC: dino, gyuyoung.kim, rakuco, thorton, webkit-bug-importer, webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.8   
Bug Depends on:    
Bug Blocks: 98318    
Attachments:
Description Flags
Patch
none
Patch thorton: review+

Jon Lee
Reported 2012-10-08 15:38:55 PDT
Add layout tests to do basic functionality tests for plugin snapshotting. Might need to add support for WTR. Tests include: * Load plugin, click, verify running. Plugin outputs to log. * Loading with display:none * Loading normal, then switch to display:none, then go back. Should maintain whatever state it was in prior to style switch.
Attachments
Patch (14.57 KB, patch)
2013-03-18 15:12 PDT, Dean Jackson
no flags
Patch (14.49 KB, patch)
2013-03-18 15:21 PDT, Dean Jackson
thorton: review+
Radar WebKit Bug Importer
Comment 1 2012-10-08 15:39:26 PDT
Dean Jackson
Comment 2 2013-03-18 15:04:07 PDT
*** Bug 112632 has been marked as a duplicate of this bug. ***
Dean Jackson
Comment 3 2013-03-18 15:12:50 PDT
Dean Jackson
Comment 4 2013-03-18 15:14:32 PDT
This patch doesn't do the display:none test suggested, but it does cover the two simple cases. I will wait for the bots to chew over it to make sure I got the test expectations correct.
Dean Jackson
Comment 5 2013-03-18 15:21:46 PDT
Jon Lee
Comment 6 2013-03-19 10:34:44 PDT
Comment on attachment 193671 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193671&action=review > LayoutTests/ChangeLog:11 > + and one that restarts a snapshotted plugin by clicking. Are we confirming these tests by just looking for the existence of the label? Is that enough? Or should the plugin also create some output so we know that in the restart case it was started twice? Is this reusing an existing plugin? What does that plugin do?
Dean Jackson
Comment 7 2013-03-19 11:29:26 PDT
(In reply to comment #6) > (From update of attachment 193671 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=193671&action=review > > > LayoutTests/ChangeLog:11 > > + and one that restarts a snapshotted plugin by clicking. > > Are we confirming these tests by just looking for the existence of the label? Is that enough? At the moment yes. > Or should the plugin also create some output so we know that in the restart case it was started twice? We should definitely do that. I'm not sure it needs to land in this first patch. Like I said, these are super simple tests at the moment. > Is this reusing an existing plugin? What does that plugin do? It's just the existing simple swf file. We should make a plugin that calls into the page.
Jon Lee
Comment 8 2013-03-19 12:21:37 PDT
Ok. r=me. (In reply to comment #7) > (In reply to comment #6) > > (From update of attachment 193671 [details] [details]) > > View in context: https://bugs.webkit.org/attachment.cgi?id=193671&action=review > > > > > LayoutTests/ChangeLog:11 > > > + and one that restarts a snapshotted plugin by clicking. > > > > Are we confirming these tests by just looking for the existence of the label? Is that enough? > > At the moment yes. > > > Or should the plugin also create some output so we know that in the restart case it was started twice? > > We should definitely do that. I'm not sure it needs to land in this first patch. Like I said, these are super simple tests at the moment. > > > Is this reusing an existing plugin? What does that plugin do? > > It's just the existing simple swf file. We should make a plugin that calls into the page.
Tim Horton
Comment 9 2013-03-19 13:21:16 PDT
Comment on attachment 193671 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=193671&action=review > Source/WebKit2/ChangeLog:10 > + (don't wait to get a screenshot). screenshot?
Dean Jackson
Comment 10 2013-03-19 13:33:19 PDT
Note You need to log in before you can comment on or make changes to this bug.