diff options
Diffstat (limited to 'tests/index.html')
-rwxr-xr-x | tests/index.html | 44 |
1 files changed, 1 insertions, 43 deletions
diff --git a/tests/index.html b/tests/index.html index 96e16f0..9f97734 100755 --- a/tests/index.html +++ b/tests/index.html @@ -9,49 +9,7 @@ <script src="../js/jquery-1.3.2.min.js" type="text/javascript"></script> <script src="../js/qunit.js" type="text/javascript"></script> <script src="../js/karma.js" type="text/javascript"></script> - <script type="text/javascript"> - $(document).ready(function(){ - - -/* test("Karma", function () { - var options = { name : "foo"}; - karma1 = Karma.karma; - same(true, true, " failing foo"); - }); -*/ - test("Karma.create", function(){ - var mock = {}; - //test against empty object - same(Karma.create({}), mock, "doesn't match empty object"); - mock.age = 30; - mock1 = Karma.create(mock); - equals(mock.age, mock1.age, "child object didn't inherit property"); - - }); - - test("Karma.clone", function(){ - var mock = { name: "foo", age: 30, children : ["adrian", "sheila", - "stephanie"], spouse: { wife: "Marie"}}; - same(Karma.clone(mock), mock, - "cloned object doesn't match original"); - mock.spouse.wife = "Marjorie"; - same(Karma.clone(mock), mock, - "cloned object doesn't match original"); - - }); - - test("Karma.objectPlus", function(){ - - - - }); - - - - - }); - -</script> + <script src="tests.js" type="text/javascript"></script> <link rel="stylesheet" href="../css/qunit.css" type="text/css"/> |