Bug 74190

Summary: [MutationObservers] Add test for deliver-at-end-of-task semantics
Product: WebKit Reporter: Adam Klein <adamk>
Component: New BugsAssignee: Adam Klein <adamk>
Status: RESOLVED FIXED    
Severity: Normal CC: ojan, rafaelw, rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 68729    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Adam Klein 2011-12-09 11:02:37 PST
[MutationObservers] Add test for deliver-at-end-of-task semantics
Comment 1 Adam Klein 2011-12-09 11:06:07 PST
Created attachment 118597 [details]
Patch
Comment 2 Ojan Vafai 2011-12-09 11:30:12 PST
Comment on attachment 118597 [details]
Patch

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

> LayoutTests/fast/mutation/end-of-task-delivery.html:14
> +    var observerRan = false;

Maybe to make this a bit more strict, make this a count of the number of times the observer ran and then in the blur function check that it only ran X (1?) times.
Comment 3 Adam Klein 2011-12-09 11:34:35 PST
Comment on attachment 118597 [details]
Patch

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

>> LayoutTests/fast/mutation/end-of-task-delivery.html:14
>> +    var observerRan = false;
> 
> Maybe to make this a bit more strict, make this a count of the number of times the observer ran and then in the blur function check that it only ran X (1?) times.

Good idea, done.
Comment 4 Adam Klein 2011-12-09 11:34:53 PST
Created attachment 118599 [details]
Patch for landing
Comment 5 Adam Klein 2011-12-09 14:48:26 PST
Committed r102477: <http://trac.webkit.org/changeset/102477>