Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 6e35152

Browse files
committed
fix(value-accessors): ListPicker, etc test now using real items.
Behavior change in tns-core-modules 3.0.0+
1 parent aafef60 commit 6e35152

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎tests/app/tests/value-accessor-tests.ts‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,19 @@ class TestDateValueAccessor extends DateValueAccessor {
3939

4040
class TestSelectedIndexValueAccessor extends SelectedIndexValueAccessor {
4141
constructor() {
42-
super(new TestElementRef(new ListPicker()));
42+
super(new TestElementRef(TestSelectedIndexValueAccessor.picker()));
43+
}
44+
45+
static picker(): ListPicker {
46+
const picker = new ListPicker();
47+
picker.items = [
48+
"1",
49+
"2",
50+
"3",
51+
"4",
52+
"5",
53+
];
54+
return picker;
4355
}
4456
}
4557

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /