-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix several tests, remove a few unneeded debug messages
- Loading branch information
1 parent
27b9ccd
commit acf6e7a
Showing
8 changed files
with
52 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
namespace Rosella { namespace Test | ||
{ | ||
class FooBar | ||
class TestCase | ||
{ | ||
var method; | ||
var context; | ||
var test_method; | ||
var test_context; | ||
|
||
//function set_attr_str[vtable](string attr, var value) | ||
//{ | ||
// die("Cannot modify the details of the TestCase"); | ||
//} | ||
function set_attr_str[vtable](string attr, var value) | ||
{ | ||
die("Cannot modify the details of the TestCase"); | ||
} | ||
|
||
//function get_attr_str[vtable](string attr) | ||
//{ | ||
// var myclass = class Rosella.Test.TestCase; | ||
// var value = null; | ||
// if (attr == 'context' || attr == '$!context') | ||
// ${ getattribute value, self, myclass, "test_context" }; | ||
// else if (attr == 'method' || attr == '$!method') | ||
// ${ getattribute value, self, myclass, "test_method" }; | ||
// else | ||
// die("TestCase has attributes 'context' and 'method'. Not " + attr); | ||
// return value; | ||
//} | ||
function get_attr_str[vtable](string attr) | ||
{ | ||
var myclass = class Rosella.Test.TestCase; | ||
var value = null; | ||
if (attr == 'context' || attr == '$!context') | ||
${ getattribute value, self, myclass, "test_context" }; | ||
else if (attr == 'method' || attr == '$!method') | ||
${ getattribute value, self, myclass, "test_method" }; | ||
else | ||
die("TestCase has attributes 'context' and 'method'. Not " + attr); | ||
return value; | ||
} | ||
} | ||
}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters