Browse Source

Modernize activity monitor test.

Afshin Darian 8 years ago
parent
commit
a2faac461d
1 changed files with 7 additions and 12 deletions
  1. 7 12
      test/src/common/activitymonitor.spec.ts

+ 7 - 12
test/src/common/activitymonitor.spec.ts

@@ -4,8 +4,8 @@
 import expect = require('expect.js');
 
 import {
-  ISignal, Signal
-} from 'phosphor-signaling';
+  defineSignal, ISignal
+} from 'phosphor/lib/core/signaling';
 
 import {
   ActivityMonitor
@@ -14,19 +14,14 @@ import {
 
 
 class TestObject {
+  one: ISignal<TestObject, number>;
 
-  static oneSignal = new Signal<TestObject, number>();
-
-  static twoSignal = new Signal<TestObject, string[]>();
+  two: ISignal<TestObject, string[]>;
+}
 
-  get one(): ISignal<TestObject, number> {
-    return TestObject.oneSignal.bind(this);
-  }
 
-  get two(): ISignal<TestObject, string[]> {
-    return TestObject.twoSignal.bind(this);
-  }
-}
+defineSignal(TestObject.prototype, 'one');
+defineSignal(TestObject.prototype, 'two');