I'm trying to write a test for a contrib I'm working on.  The code is
as follows:

qx.Class.define("database.test.DemoTest", {
extend : qx.dev.unit.TestCase

,members : {

        testCreate : function() {
                var columns = new qx.type.Array(4);
                //~ columns.push(new database.Column("name", {type: "TEXT", pk:
true, nullable: false}));
                //~ columns.push(new database.Column("age", {type: "NUM", 
indexed:
true, "default": 1}));
                //~ columns.push(new database.Column("gender", {type: "TEXT"}));
                //~ columns.push(new database.Column("ssn", {type: "TEXT", 
unique: true}));

                var tables = new qx.type.Array(1);
                //~ tables.push(new database.Table("person", columns));

                //~ var db = new database.Database("testdb", "0.1", tables, 
"Test
database for qx wrapper", 10000);
        }
        ,testTesting : function() {
                this.debug("Hi");
        }
}
});

The above code works perfectly.  As soon as I uncomment any of the
lines you see there - the lines which actually test my contribution,
the "testTesting" method still returns successfully, but the
testCreate function errors with the following message:
TypeError: Cannot call method 'test' of undefined

What is going on?  What magic am I missing in the process of creating a test?

--Greg

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to