dom.html revision 6a3faa9e0e4639febffbd7018ce47b861626d0ba
d1c2218ce9ffb1b9bfcc6dd9deb399136a4031b6Matt Sweeney<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
base: "/build/",
logExclude: {yui:true, get: true, loader: true, Dom: true, Selector: true, Node: true, attribute: true, base: true, event: true, widget: true}
(new Y.Console()).render();
Y.on('click', function(e, extra1, extra2) {
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
node = Y.get('#clickcontainer');
Y.on('click', function(e, extra1, extra2) {
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
node = Y.get('#clickcontainer');
node.on('click', function(e, extra1, extra2) {
Y.Assert.isTrue(clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
nodelist = Y.all('.clickers');
nodelist.on('click', function(e, extra1, extra2) {
Y.Assert.areEqual(1, clicked, "click handler didn't work");
// Y.Assert.areEqual(2, ex1, "extra arg1 didn't work"); // bug #2528155
// Y.Assert.areEqual(3, ex2, "extra arg2 didn't work"); // bug #2528155
Y.Assert.areEqual(2, clicked, "click handler didn't work");
// Y.Assert.areEqual(2, ex1, "extra arg1 didn't work"); // bug #2528155
// Y.Assert.areEqual(3, ex2, "extra arg2 didn't work"); // bug #2528155
nodelist = Y.all('.clickers');
Y.on('click', function(e, extra1, extra2) {
Y.Assert.areEqual(1, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
Y.Assert.areEqual(2, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
Y.on('click', function(e, extra1, extra2) {
Y.Assert.areEqual(1, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
Y.Assert.areEqual(2, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
Y.on('click', function(e, extra1, extra2) {
}, document.getElementsByTagName('p'), obj, 2, 3);
Y.Assert.areEqual(1, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");
Y.Assert.areEqual(2, clicked, "click handler didn't work");
Y.Assert.areEqual(2, ex1, "extra arg1 didn't work");
Y.Assert.areEqual(3, ex2, "extra arg2 didn't work");