mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
Merge pull request #2812 from NativeScript/vchimev-patch
Update label tests
This commit is contained in:
@ -73,7 +73,7 @@ export class LabelTest extends testModule.UITest<LabelModule.Label> {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.waitUntilTestElementIsLoaded();
|
this.waitUntilTestElementIsLoaded();
|
||||||
actualNative = testLabel.android.getText();
|
actualNative = testLabel.android.getText().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
||||||
@ -90,7 +90,7 @@ export class LabelTest extends testModule.UITest<LabelModule.Label> {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.waitUntilTestElementIsLoaded();
|
this.waitUntilTestElementIsLoaded();
|
||||||
actualNative = testLabel.android.getText();
|
actualNative = testLabel.android.getText().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
||||||
@ -107,7 +107,7 @@ export class LabelTest extends testModule.UITest<LabelModule.Label> {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
this.waitUntilTestElementIsLoaded();
|
this.waitUntilTestElementIsLoaded();
|
||||||
actualNative = testLabel.android.getText();
|
actualNative = testLabel.android.getText().toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
TKUnit.assertEqual(actualNative, expectedValue, "Native text not equal");
|
||||||
@ -665,4 +665,4 @@ export function test_IntegrationTest_Transform_Decoration_Spacing_WithFormattedT
|
|||||||
TKUnit.assertEqual(view.style.textDecoration, enums.TextDecoration.underline, "TextDecoration");
|
TKUnit.assertEqual(view.style.textDecoration, enums.TextDecoration.underline, "TextDecoration");
|
||||||
TKUnit.assertEqual(view.style.letterSpacing, 1, "LetterSpacing");
|
TKUnit.assertEqual(view.style.letterSpacing, 1, "LetterSpacing");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user