mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
text-decoration won’t be applied to edit-text (#3932)
* text-decoration won’t be applied to edit-text * stop printing slow tests * remove console line * fix failing tests * fix wrong checks
This commit is contained in:
@@ -320,12 +320,12 @@ function printRunTestStats() {
|
||||
testFile.writeTextSync(testFileContent.join(""));
|
||||
|
||||
finalMessage += "\n" + "Test results: " + testFilePath;
|
||||
finalMessage += "\n" + "----------------- ";
|
||||
finalMessage += "\n" + "Slow tests: ";
|
||||
slowTests.forEach((message, i, arr) => {
|
||||
TKUnit.write(message, messageType.error);
|
||||
finalMessage += "\n" + message;
|
||||
});
|
||||
// finalMessage += "\n" + "----------------- ";
|
||||
// finalMessage += "\n" + "Slow tests: ";
|
||||
// slowTests.forEach((message, i, arr) => {
|
||||
// TKUnit.write(message, messageType.error);
|
||||
// finalMessage += "\n" + message;
|
||||
// });
|
||||
|
||||
let stack = new StackLayout();
|
||||
let btn = new Button();
|
||||
|
||||
@@ -729,19 +729,23 @@ export const test_setting_label_textTransform_sets_native = function () {
|
||||
};
|
||||
|
||||
export const test_setting_textField_textTransform_sets_native = function () {
|
||||
const testView = new TextField();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
if (isIOS) {
|
||||
const testView = new TextField();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
}
|
||||
};
|
||||
|
||||
export const test_setting_textView_textTransform_sets_native = function () {
|
||||
const testView = new TextView();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
if (isIOS) {
|
||||
const testView = new TextView();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
}
|
||||
};
|
||||
|
||||
export const test_setting_button_textTransform_sets_native = function () {
|
||||
@@ -762,21 +766,25 @@ export const test_setting_label_textTransform_and_textDecoration_sets_native = f
|
||||
};
|
||||
|
||||
export const test_setting_textField_textTransform_and_textDecoration_sets_native = function () {
|
||||
const testView = new TextField();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
testView.style.textDecoration = "underline";
|
||||
if (isIOS) {
|
||||
const testView = new TextField();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
testView.style.textDecoration = "underline";
|
||||
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
}
|
||||
};
|
||||
|
||||
export const test_setting_textView_textTransform_and_textDecoration_sets_native = function () {
|
||||
const testView = new TextView();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
testView.style.textDecoration = "underline";
|
||||
if (isIOS) {
|
||||
const testView = new TextView();
|
||||
testView.text = initial;
|
||||
testView.style.textTransform = "capitalize";
|
||||
testView.style.textDecoration = "underline";
|
||||
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
executeTransformTest(testView, androidText, iOSText);
|
||||
}
|
||||
};
|
||||
|
||||
export const test_setting_button_textTransform_and_textDecoration_sets_native = function () {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
EditableTextBase as EditableTextBaseCommon, keyboardTypeProperty,
|
||||
returnKeyTypeProperty, editableProperty,
|
||||
autocapitalizationTypeProperty, autocorrectProperty, hintProperty,
|
||||
textProperty, placeholderColorProperty, Color
|
||||
textProperty, placeholderColorProperty, Color, textTransformProperty
|
||||
} from "./editable-text-base-common";
|
||||
|
||||
import { ad } from "../../utils/utils";
|
||||
@@ -410,4 +410,8 @@ export abstract class EditableTextBase extends EditableTextBaseCommon {
|
||||
this.nativeView.setHintTextColor(value);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[textTransformProperty.setNative](value: "default") {
|
||||
//
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user