array.html revision 43692b3f865f1b1c970aedb2b96392482bd1fe3e
0N/A button.set("disabled", false);
0N/A var testArray = new Y.Test.Case({
0N/A Y.ArrayAssert.itemsAreEqual([1, 100, 2, 3], [3, 100, 1, 2].sort());
0N/A Y.Array.some(a, function(v) {
0N/A var els = document.getElementsByTagName('span'),
0N/A // Y.Lang.type is broken for HTMLElementCollections in Safari. isObject
0N/A // array. If Array.test is adapted to handle NodeLists this could be made to
0N/A Y.Assert.areEqual(2, Y.Array.test(arguments), 'arguments should be arraylike'); // arguments collection
0N/A Y.Assert.areEqual(2, Y.Array.test(document.getElementsByTagName('span')), 'htmlelement collections should be arraylike'); // HTMLElementsCollection
0N/A // @TODO figure out what to do with this. A NodeList does not contain a collection of Nodes; it
0N/A // Y.Assert.areEqual(3, Y.Array.test(Y.all('#btnRun')), 'nodelists should be specifically identified as a special collection'); // NodeList
0N/A Y.Assert.areEqual(0, Y.Array.test(Y.all('span')), 'nodelists are not currently considered arraylike'); // NodeList
0N/A Y.Test.Runner.add(testArray);