Skip to content

Commit 1b220dc

Browse files
committed
correct unit tests for DeluxeSignal class
1 parent 325a412 commit 1b220dc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/org/osflash/signals/DeluxeSignalWithBubblingEventTest.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ describe("DeluxeSignalWithBubblingEventTest", () => {
2020
function onEventBubbled(e: IEvent): boolean {
2121
cancelTimeout();
2222
assert.equal(theGrandChild, e.target, "e.target should be the object that originally dispatched event");
23-
assert.equal(this, e.currentTarget, "e.currentTarget should be the object receiving the bubbled event");
23+
assert.equal(theParent, e.currentTarget, "e.currentTarget should be the object receiving the bubbled event");
2424
doneFunc();
2525
return false;
2626
}
@@ -44,7 +44,7 @@ describe("DeluxeSignalWithBubblingEventTest", () => {
4444

4545
it("dispatch_bubbling_event_from_theGrandChild_should_bubble_to_parent_IBubbleHandler()", (done) => {
4646
// If cancelTimeout() isn"t called, this test will fail.
47-
cancelTimeout = async.add(null, 1000);
47+
cancelTimeout = async.add(null, 1500);
4848

4949
// keep reference for done function
5050
doneFunc = done;

0 commit comments

Comments
 (0)