diff --git a/tests/app/testRunner.ts b/tests/app/testRunner.ts index b3471e631..13a66ff7c 100644 --- a/tests/app/testRunner.ts +++ b/tests/app/testRunner.ts @@ -78,7 +78,7 @@ allTests["BUTTON"] = require("./ui/button/button-tests"); // allTests["TAB-VIEW-NAVIGATION"] = require("./ui/tab-view/tab-view-navigation-tests"); // allTests["IMAGE"] = require("./ui/image/image-tests"); // allTests["SLIDER"] = require("./ui/slider/slider-tests"); -// allTests["SWITCH"] = require("./ui/switch/switch-tests"); +allTests["SWITCH"] = require("./ui/switch/switch-tests"); // allTests["PROGRESS"] = require("./ui/progress/progress-tests"); // allTests["PLACEHOLDER"] = require("./ui/placeholder/placeholder-tests"); // allTests["PAGE"] = require("./ui/page/page-tests"); diff --git a/tests/app/ui/switch/switch-tests.ts b/tests/app/ui/switch/switch-tests.ts index 0059dace0..9da829ec6 100644 --- a/tests/app/ui/switch/switch-tests.ts +++ b/tests/app/ui/switch/switch-tests.ts @@ -90,7 +90,7 @@ export function test_set_native_checked_triggers_propertyChanged() { function testAction(views: Array) { var checkedChanged = false; var allChanges = 0; - mySwitch.on(observable.Observable.propertyChangeEvent, function (data: observable.EventData) { + mySwitch.on("checkedChange", function (data: observable.EventData) { allChanges++; var propertyData = data; if (propertyData && propertyData.propertyName === "checked" && propertyData.value === true) { @@ -100,7 +100,7 @@ export function test_set_native_checked_triggers_propertyChanged() { setNativeValue(mySwitch, true); - mySwitch.off(observable.Observable.propertyChangeEvent); + mySwitch.off("checkedChange"); TKUnit.assert(checkedChanged, "Property changed for checked not called."); TKUnit.assertEqual(allChanges, 1, "Property changed callbacks."); diff --git a/tests/package.json b/tests/package.json index ecbc54685..58fa869a2 100644 --- a/tests/package.json +++ b/tests/package.json @@ -24,4 +24,4 @@ "lazy": "1.0.11", "typescript": "~2.0.10" } -} +} \ No newline at end of file