datatable-scroll-tests.js revision 6ed8155c20400990c7e65faa4b40aef98c5b5136
10139N/AYUI.add('datatable-scroll-tests', function(Y) {
10139N/A
10139N/Avar suite = new Y.Test.Suite("datatable-scroll"),
10139N/A keys = Y.Object.keys;
10139N/A
10139N/Asuite.add(new Y.Test.Case({
10139N/A name: "datatable-scroll",
10139N/A
10139N/A setUp: function () {
10139N/A var data = [], i;
10139N/A
10139N/A for (i = 0; i < 10; ++i) {
10139N/A data.push({ a: i, b: i, c: i });
10139N/A }
10139N/A
10139N/A this.shortData = data.slice();
10139N/A
10139N/A for (; i < 100; ++i) {
10139N/A data.push({ a: i, b: i, c: i });
10139N/A }
10139N/A
10139N/A this.longData = data;
10139N/A },
10139N/A
10139N/A "Y.DataTable should be augmented": function () {
10139N/A Y.Assert.isTrue(
10139N/A new Y.DataTable().hasImpl(Y.DataTable.Scrollable));
10139N/A },
10139N/A
10139N/A "Y.DataTable.Base should not be augmented": function () {
10139N/A Y.Assert.isFalse(
10139N/A new Y.DataTable.Base().hasImpl(Y.DataTable.Scrollable));
10139N/A }
10139N/A
10139N/A
10139N/A}));
10139N/A
10139N/Asuite.add(new Y.Test.Case({
10139N/A name: "y scroll",
10139N/A
10139N/A "": function () {
10139N/A }
10139N/A}));
10139N/A
10139N/Asuite.add(new Y.Test.Case({
10139N/A name: "x scroll",
10139N/A
10139N/A "": function () {
10139N/A }
10139N/A}));
10139N/A
10139N/Asuite.add(new Y.Test.Case({
10139N/A name: "xy scroll",
10139N/A
10139N/A "": function () {
10139N/A }
10139N/A}));
10139N/A
10139N/AY.Test.Runner.add(suite);
10139N/A
10139N/A
10139N/A}, '@VERSION@' ,{requires:['datatable-scroll', 'test']});
10139N/A