Cross Reference: /yui3/src/event/tests/delegate.html
History log of /yui3/src/event/tests/delegate.html
Revision Date Author Comments + Modified files
f7e6d1f5238cf0d7efc4bef09f54305af12c08ab 01-Mar-2012 Luke Smith <lsmith@yahoo-inc.com>

Add compileFilter tests

9a76bc095233b0cb0be3a913f5913bfc72c38b6c 22-Jul-2011 Satyen Desai <sdesai@yahoo-inc.com>

Added Test.Runner.setName

472cb5998fc636f7d3cb6e3780dba7986a75e912 22-Apr-2011 Luke Smith <lsmith@yahoo-inc.com>

A few more test files needing filter update

45e6f13936658ddeb74bff8dde445a67419a1995 14-Mar-2011 Luke Smith <lsmith@yahoo-inc.com>

Add lazyEventFacade to YUI config for tests in IE8 This can be removed to do apples-to-apples comparisons with IE6/7/9 for debugging if needed.

2e1e0e58ec1a5d8545873797f2d53be9af429999 25-Jan-2011 Luke Smith <lsmith@yahoo-inc.com>

+delegate('cat|type',...) tests Ticket #2529827

030b855bbf1937a46e1e2b88025d61e72a205469 21-Oct-2010 Luke Smith <lsmith@yahoo-inc.com>

Add delegate({ type: fn, ...}) and ([type,type],fn) Fixes #2528875 Y.delegate and node.delegate now support delegate({ click: fnA, mousedown: fnB },...) and delegate(['click', 'mousedown'], fn, ...)

d69a25328a811b474cc18569e7c6017f01441b78 18-Oct-2010 Luke Smith <lsmith@yahoo-inc.com>

Fix tests made bad by multiple match updates The last changes to delegate mandated the callback order for multiple matches switched from parent-down (cascade order) to deepest child-up (bubble order). This caused two tests to fail. The first was removing the parent element where the two matching elements were directly nested, so the call to this.get('parentNode') returned null for the second iteration and caused an error. The other test was specifically testing the callback order based on the coded assumption of cascade order. Module behavior is unaffected. Just the tests needed updating.

843835871d7c3555ad4cbaf4a74edfbdd73c566c 07-Oct-2010 Luke Smith <lsmith@yahoo-inc.com>

stopProp and halt prevents bubbling in nested matches In 3.2, support was added to delegate to fire a subscriber callback multiple times if there were multiple filter matches up the event's bubble path. But I forgot to respect the stopped state of the event. So in a div>div.foo>div.foo>a set up with delegate filtering on .foo, the subscriber will now execute twice when clicking on the a or nested div.foo (once for each div.foo as the event bubbles up), but only once if e.stopPropagation() or e.halt() is called by the subscriber when being executed for the nested div.foo.

288cb1eb48cf1e1756380d500de92f74ac32ec60 08-Sep-2010 Luke Smith <lsmith@yahoo-inc.com>

Wrap focus/blur tests in check for window focus. When the window is blurred, FF doesn't fire focus events until the window focus is restored. IE 6-8 don't fire blur events (including focusout) at all if the window is blurred. This is causing the testing framework to throw false positive errors when automating some tests. Since I can't restore focus to the window, the next best thing is to test if the window doesn't have focus (provided by the module in window-focus.js) and simply skip the tests that would be affected. Next up node-focusmanager.

5923a4c5f9d5f357cd461ff95cb29475eecf8e3d 03-Aug-2010 Luke Smith <lsmith@yahoo-inc.com>

Add more specific test for #2529142 Bug tests broken out into their own test case collection

2eff92f57a91f6814c032c57c474c61cadf70d42 03-Aug-2010 Luke Smith <lsmith@yahoo-inc.com>

Add tests for filter function and focus filter

fb83a09fe023a741781ee955f4e9538d3cbe21a2 02-Aug-2010 Luke Smith <lsmith@yahoo-inc.com>

delegate filter func update. synth allowDups => preventDups Rather than require implementers to walk up the parent axis in their delegate filter function, just bake that part in and allow the filter function to just concern itself with evaluating the fitness of each target Node on the event's trip up from e.target to e.currentTarget. filter functions can now look like this: function filter(target, e) { return target.hasClass('foo') && target.getData('go'); } Synthetics now allow duplicates by default. allowDups was changed to preventDups to preserve the convenience of not having the property defined in code and getting undefined as the falsey default value.

14017741ef334485c65013d129608513161db7c2 15-Jul-2010 Luke Smith <lsmith@yahoo-inc.com>

Fire delegated fn once per match in subtree. When delegating div#x>div.a>div>div.a>button, a delegated click sub from div#x for .a should fire twice. Once for each div.a encountered while the click bubbles to the container. The notification order is currently outer -> inner, but this is up for negotiation.

7b4d1363155303b5bfb852e5639b851bbd4dc255 14-Jul-2010 Luke Smith <lsmith@yahoo-inc.com>

Refactor delegate to support synthetic events. The synthetic event delegate infrastructure is currently only stubbed out, but the changes needed from the delegate method are in place. And as a bonus, the refactor reduced the delegate code by about 40%. This change breaks delegation for mouseenter, mouseleave, focus, and blur until the synth infra is built and those synths are migrated to Event.define().

c2e6a0e082fcb34905724d27cc7f6be467e1a6bc 07-Apr-2010 Adam Moore <adamoore@yahoo-inc.com>

_attach doesn't process empty arrays. DOMReady doesn't assume there will be a documentElement.

cb4f4f79feb7498d1f3406b88fb62209e5f5a444 22-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

test updates

0a9c6f9f30a66e52ec4ea4ed93504580b3a5669a 18-Feb-2010 Adam Moore <adamoore@yahoo-inc.com>

test update

03fb873fb498b91f5def3bb608de5d01374f1e07 30-Jan-2010 Todd Kloots <kloots@yahoo-inc.com>

Updated with test cases for direct descendant combinator

42a76975bee344dcbf51edcc380b921ef3251fb7 19-Jan-2010 Todd Kloots <kloots@yahoo-inc.com>

Updated to remove use of the 'delegate' custom event

20abfc50d1764b9719bc040738ad7f68caff0f4f 11-Sep-2009 Todd Kloots <kloots@yahoo-inc.com>

Enabled console

86f93a1b47c3b420a6d9595af8954ec21fb4e413 02-Sep-2009 Adam Moore <adamoore@yahoo-inc.com>

purgeElement works for native listeners when type is specified. purgeElement removes the wrapper listener and the wrapper.

f8f5d63799c8f2045a569d778b0139cf7672ad82 29-Aug-2009 Todd Kloots <kloots@yahoo-inc.com>

Added test cases for #2528197 and #2528196

f647f9c7909e84a0b19f09de42ce82a715e2d52a 21-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Added bootstrap config which can disable fetching and/or using the loader when use() thinks it is missing stuff. Added fetchCSS config to disable all dynamic loading of CSS modules. Loader does not use CSS to determine if dynamic loading is needed. It has to assume the CSS is there if the script module is. If a script module is fetched, the CSS will be as well if fetchCSS is true.

379e0306e00b6f0add52f96907da048c03a9f2a1 17-Aug-2009 Todd Kloots <kloots@yahoo-inc.com>

Added test cases for bug 2528175]

0771d781138a507b3e657573703f511291640bf3 12-Aug-2009 Adam Moore <adamoore@yahoo-inc.com>

Initial custom event split

/yui3/build/event-custom/event-custom-base-debug.js /yui3/build/event-custom/event-custom-base-min.js /yui3/build/event-custom/event-custom-base.js /yui3/build/event-custom/event-custom-complex-debug.js /yui3/build/event-custom/event-custom-complex-min.js /yui3/build/event-custom/event-custom-complex.js /yui3/build/event-custom/event-custom-debug.js /yui3/build/event-custom/event-custom-min.js /yui3/build/event-custom/event-custom.js /yui3/build/event/event-base-debug.js /yui3/build/event/event-base-min.js /yui3/build/event/event-base.js /yui3/build/event/event-debug.js /yui3/build/event/event-min.js /yui3/build/event/event.js /yui3/build/loader/loader-debug.js /yui3/build/loader/loader-min.js /yui3/build/loader/loader.js /yui3/sandbox/event/dom.html /yui3/src/collection/tests/collection.html /yui3/src/dump/tests/dump.html /yui3/src/event-custom/README /yui3/src/event-custom/build-base.properties /yui3/src/event-custom/build-base.xml /yui3/src/event-custom/build-complex.properties /yui3/src/event-custom/build-complex.xml /yui3/src/event-custom/build.properties /yui3/src/event-custom/build.xml /yui3/src/event-custom/js/event-custom.js /yui3/src/event-custom/js/event-facade.js /yui3/src/event-custom/js/event-target.js /yui3/src/event-custom/tests/customevent.html /yui3/src/event/js/event-facade-dom.js delegate.html dom.html /yui3/src/loader/js/loader.js /yui3/src/oop/tests/oop.html /yui3/src/substitute/tests/substitute.html /yui3/src/yui/tests/array.html /yui3/src/yui/tests/core.html /yui3/src/yui/tests/lang.html /yui3/src/yui/tests/namespace.html /yui3/src/yui/tests/object.html
abf248eeaac94371535d800391168fff8d32bb44 12-Jun-2009 Adam Moore <adamoore@yahoo-inc.com>

juggled around the properties for the delegate event payload and updated the tests. [fixes #2527973]

5889c2819167de6bb3c1d1a1e3a5e6af060e8a95 16-May-2009 Adam Moore <adamoore@yahoo-inc.com>

delegate uses Node.some

762404fab9a26ffe78629af69b947a582b2ebf1a 04-May-2009 Caridy <caridy@gmail.com>

adding two more tests for event-delegate.

329980a34cfc56e4b608da4d695b771cc1000250 04-May-2009 Caridy <caridy@gmail.com>

Test-case for the issue related with multiple Selectors in the same call.

3215b14029b163463e7225627b6781e4a049f3d8 30-Apr-2009 Caridy <caridy@gmail.com>

adding tests for event delegate (6 tests, 2 are failing).