mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Update label-tests.ts
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