Permalink
Browse files

Added test for binding test suite as scope for tests

  • Loading branch information...
1 parent 5a3d7a9 commit 39cffb7d8bff81e4ed4eb5d9f93f5e5734184d35 @atesgoral committed Mar 23, 2009
Showing with 10 additions and 0 deletions.
  1. +10 −0 jsunity/test/coreTestSuite.js
@@ -238,5 +238,15 @@ function coreTestSuite() {
jsUnity.assertions.assertEquals(1, results.passed);
jsUnity.assertions.assertEquals(1, results.failed);
}
+
+ function testRunBindsTestSuiteAsTestScope() {
+ jsUnity.run({
+ marker: true,
+
+ testMarker: function () {
+ assertTrue(this.marker);
+ }
+ });
+ }
}
//%>

0 comments on commit 39cffb7

Please sign in to comment.