mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-17 21:01:34 +08:00
Quick fix.
This commit is contained in:
@ -248,12 +248,14 @@ export var testHintColoriOS = function () {
|
|||||||
var expectedValue;
|
var expectedValue;
|
||||||
var actualValue;
|
var actualValue;
|
||||||
|
|
||||||
expectedValue = "#38.1999948ff0000"; // 22% red
|
// expectedValue = "#38.1999948ff0000"; // 22% red
|
||||||
if (utils.ios.MajorVersion > 7) {
|
// if (utils.ios.MajorVersion > 7) {
|
||||||
expectedValue = "#38.19999999999aff0000"; // 22% red
|
// expectedValue = "#38.19999999999aff0000"; // 22% red
|
||||||
}
|
// }
|
||||||
actualValue = textViewTestsNative.getNativeColor(textView).hex;
|
actualValue = textViewTestsNative.getNativeColor(textView).hex;
|
||||||
TKUnit.assert(actualValue === expectedValue, "Actual: " + actualValue + "; Expected: " + expectedValue);
|
// TKUnit.assert(actualValue === expectedValue, "Actual: " + actualValue + "; Expected: " + expectedValue);
|
||||||
|
TKUnit.assert(actualValue.indexOf("#38.19999") === 0, "Expected hint color to start with #38.19999");
|
||||||
|
TKUnit.assert(actualValue.indexOf("ff0000") !== -1, "Expected hint color to end with ff0000");
|
||||||
|
|
||||||
textView.text = "text";
|
textView.text = "text";
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user