- Added more variables.
- Removed unnecessary API.
This commit is contained in:
Paul Beckingham 2011-04-17 00:14:35 -04:00
parent 0240ffa1d2
commit 9d0037bc78
3 changed files with 60 additions and 58 deletions

View file

@ -42,14 +42,22 @@ Context context;
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (2);
UnitTest t (7);
try
{
DOM dom;
// TODO dom.get rc.name
t.is (dom.get ("system.version"), VERSION, "DOM system.version -> VERSION");
t.is (dom.get ("system.lua.version"), LUA_RELEASE, "DOM system.lua.version -> LUA_RELEASE");
t.ok (dom.get ("system.os") != "<unknown>", "DOM system.os -> != Unknown");
t.is (dom.get ("context.program"), "", "DOM context.program -> ''");
t.is (dom.get ("context.args"), "", "DOM context.args -> ''");
t.is (dom.get ("context.width"), "0", "DOM context.width -> '0'");
t.is (dom.get ("context.height"), "0", "DOM context.height -> '0'");
// TODO dom.set rc.name
}
catch (std::string& error)