Permalink
Browse files

Adding unit test for pr #176

  • Loading branch information...
1 parent b51e9da commit 1fef48b08b6572d711001bd8cab0bcd17b469a99 @triptych triptych committed Jan 9, 2013
Showing with 25 additions and 0 deletions.
  1. +25 −0 src/datatable/tests/unit/assets/datatable-base-tests.js
@@ -316,6 +316,31 @@ suite.add(new Y.Test.Case({
}
}));
+suite.add(new Y.Test.Case({
+ name: "emptyTable",
+
+ setUp: function () {
+ this.table = new Y.DataTable();
+ },
+
+ tearDown: function () {
+ this.table.destroy();
+ },
+
+ "render method should not fail on empty table": function () {
+ var pass = true;
+ try{
+ this.table.render();
+ }
+ catch(e) {
+ pass = false;
+ }
+
+ Y.Assert.isTrue(pass);
+
+ }
+}));
+
/*
suite.add(new Y.Test.Case({
name: "destroy",

0 comments on commit 1fef48b

Please sign in to comment.