mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
lint errors fixed
This commit is contained in:
@@ -153,7 +153,11 @@ export function test_parse_ShouldParseBindingsWithObservable() {
|
|||||||
|
|
||||||
export function test_parse_ShouldParseBindingsToEvents() {
|
export function test_parse_ShouldParseBindingsToEvents() {
|
||||||
var p = <page.Page>builder.parse("<Page><Button tap='{{ myTap }}' /></Page>");
|
var p = <page.Page>builder.parse("<Page><Button tap='{{ myTap }}' /></Page>");
|
||||||
p.bindingContext = { myTap: function (args) { } };
|
p.bindingContext = {
|
||||||
|
myTap: function (args) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
};
|
||||||
var btn = <buttonModule.Button>p.content;
|
var btn = <buttonModule.Button>p.content;
|
||||||
|
|
||||||
TKUnit.assert(btn.hasListeners("tap"), "Expected result: true.");
|
TKUnit.assert(btn.hasListeners("tap"), "Expected result: true.");
|
||||||
@@ -161,7 +165,11 @@ export function test_parse_ShouldParseBindingsToEvents() {
|
|||||||
|
|
||||||
export function test_parse_ShouldParseBindingsToGestures() {
|
export function test_parse_ShouldParseBindingsToGestures() {
|
||||||
var p = <page.Page>builder.parse("<Page><Label tap='{{ myTap }}' /></Page>");
|
var p = <page.Page>builder.parse("<Page><Label tap='{{ myTap }}' /></Page>");
|
||||||
p.bindingContext = { myTap: function (args) { } };
|
p.bindingContext = {
|
||||||
|
myTap: function (args) {
|
||||||
|
//
|
||||||
|
}
|
||||||
|
};
|
||||||
var lbl = <labelModule.Label>p.content;
|
var lbl = <labelModule.Label>p.content;
|
||||||
|
|
||||||
TKUnit.assert((<any>lbl)._gesturesObserver !== undefined, "Expected result: true.");
|
TKUnit.assert((<any>lbl)._gesturesObserver !== undefined, "Expected result: true.");
|
||||||
|
|||||||
Reference in New Issue
Block a user