You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by cf...@apache.org on 2012/10/08 21:50:30 UTC
svn commit: r1395746 [1/2] - in
/incubator/flex/sdk/branches/develop/mustella/tests: ./
gumbo/components/TextArea/Methods/
gumbo/components/TextArea/Methods/baselines/ gumbo/components/TextArea/SWFs/
Author: cframpton
Date: Mon Oct 8 19:50:28 2012
New Revision: 1395746
URL: http://svn.apache.org/viewvc?rev=1395746&view=rev
Log:
Remove OS specific version of TextArea_ParagraphAttributes tests.
Added:
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_center.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_end.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_justify.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_left.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_right.png.bad.png (with props)
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_start.png.bad.png (with props)
Removed:
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester_mac.mxml
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_direction_ltr.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_direction_rtl.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_end.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_justify.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_left.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_right.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlignLast_start.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_end.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_justify.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_left.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_right.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textAlign_start.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textIndent_20.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/mac_Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/SWFs/TextArea_attributes_mac.mxml
Modified:
incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListMac.txt
incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListWin.txt
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester.mxml
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_end.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_justify.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_left.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_right.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_start.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_center.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_end.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_justify.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_left.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_right.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlign_start.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textIndent_20.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft.png
incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft.png
Modified: incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListMac.txt
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListMac.txt?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListMac.txt (original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListMac.txt Mon Oct 8 19:50:28 2012
@@ -1343,35 +1343,6 @@ gumbo/components/TextArea/Methods/TextAr
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_export_method_default,
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_getAttributes_method_default,
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_setAttributes_method_default,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_ltr,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_rtl,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginBottom_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginBottom_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginLeft_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginLeft_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginRight_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginRight_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20_2,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20_2,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_end,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_justify,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_left,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_right,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_start,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_end,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_justify,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_left,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_right,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_start,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft,
gumbo/components/TextArea/Properties/TextArea_properties_tester$Spark_TextArea_content2,
gumbo/components/TextArea/Properties/TextArea_properties_tester$TextArea_baselinePosition_postValidation,
gumbo/components/TextArea/Properties/TextArea_properties_tester$TextArea_baselinePosition_preValidation,
Modified: incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListWin.txt
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListWin.txt?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListWin.txt (original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/ExcludeListWin.txt Mon Oct 8 19:50:28 2012
@@ -93,22 +93,6 @@ Application/Application_SparkSkin/Proper
Application/Application_SparkSkin/Properties/ContentSizedConstraints_Application$constraintRow_contentSized_mxml_noHeightOnComponent,
Application/Application_SparkSkin/Properties/PercentConstraints_Application$constraintRows_percentage_changeRow2AtRuntime,
Application/Application_SparkSkin/Styles/Application_Styles$style_backgroundGradientColors_test1_AIR,
-components/Alert/Properties/Alert_Properties$Alert_layoutDirection_direction_rtl,
-components/Alert/Properties/Alert_Properties$Alert_layoutDirection_direction_rtl_with_alertIcon,
-components/Alert/Properties/Alert_Properties_Spark$Alert_layoutDirection_direction_rtl_spark,
-components/Alert/Properties/Alert_Properties_Spark$Alert_layoutDirection_direction_rtl_with_alertIcon_spark,
-components/Alert/Properties/Alert_Properties_Spark_wireframe$Alert_layoutDirection_direction_rtl_spark_wireframe,
-components/Alert/Properties/Alert_Properties_Spark_wireframe$Alert_layoutDirection_direction_rtl_with_alertIcon_spark_wireframe,
-components/Alert/Styles/Alert_Styles$Alert_buttonStyleName,
-components/Alert/Styles/Alert_Styles$Alert_embedded_font_verdana,
-components/Alert/Styles/Alert_Styles$Alert_embedded_font_verdana_bold,
-components/Alert/Styles/Alert_Styles$Alert_embedded_font_verdana_italic,
-components/Alert/Styles/Alert_Styles$Alert_letterSpacing,
-components/Alert/Styles/Alert_Styles$Alert_messageStyleName,
-components/Alert/Styles/Alert_Styles$Alert_titleStyleName,
-components/Alert/Versioning/MP_Alert_Tests$MP_Alert_compatible_checkMask,
-components/Alert/Versioning/MP_Alert_Tests$MP_AlertParentIsChildApp_compatible,
-components/Alert/Versioning/MP_Alert_Tests$MP_AlertParentIsParentApp_compatible,
components/ButtonBar/Styles/ButtonBar_Styles_Basic$ButtonBar_Style_Basic_Embed_Font_Bold_airOnly,
components/ButtonBar/Styles/ButtonBar_Styles_Basic_bc$ButtonBar_Style_Basic_buttonHeight,
components/ButtonBar/Styles/ButtonBar_Styles_Basic_bc$ButtonBar_Style_Basic_horizontalGap,
@@ -328,7 +312,7 @@ components/ComboBox/Styles/AIRComboBaseS
components/ComboBox/Styles/ComboBoxStyleTester$combobox_styles_disabledColor_dropdown,
components/ComboBox/Styles/ComboBoxStyleTester$combobox_styles_fontWeight_stylename,
components/ComboBox/Styles/ComboBoxStyleTester$combobox_styles_textDecoration,
-Ãcomponents/ComboBox/Styles/ComboBoxStyleTester_spark$Spark_combobox_styles_bugs_176563,
+components/ComboBox/Styles/ComboBoxStyleTester_spark$Spark_combobox_styles_bugs_176563,
components/ComboBox/Styles/ComboBoxStyleTester_spark$Spark_combobox_styles_bugs_176563,
components/ComboBox/Styles/ComboBoxStyleTester_spark$Spark_combobox_styles_disabledColor_dropdown,
components/ComboBox/Styles/ComboBoxStyleTester_spark$Spark_combobox_styles_fontStyle_stylename,
@@ -341,7 +325,6 @@ components/DataGrid/DataGrid_HaloSkin/Pr
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_uicomponent_halo$propert_scalex_05_halo,
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_uicomponent_halo$propert_scalex_3_halo,
components/DataGrid/DataGrid_HaloSkin/Properties/datagrid_properties_uicomponent_halo$propert_scalex_7_halo,
-components/DataGrid/DataGrid_HaloSkin/Styles/datagrid_Styles_styleName_halo$styleName_multiple_precedence_mac_halo,
components/DataGrid/DataGrid_SparkSkin/Events/datagrid_events_uicomponent$event_toolTipCreate,
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties$datagrid_properties_columns,
components/DataGrid/DataGrid_SparkSkin/Properties/datagrid_properties_listbase$property_dragEnabled,
@@ -477,8 +460,6 @@ components/Menu/Spark/Styles/Menu_Styles
components/MenuBar/Halo/Styles/MenuBar_MenuStyles$branchDisabledIcon_static,
components/MenuBar/Halo/Styles/MenuBar_MenuStyles$branchIcon_css,
components/MenuBar/Halo/Styles/MenuBar_MenuStyles$branchIcon_static,
-components/MenuBar/Halo/Styles/MenuBar_StylesAS$textDecoration_css_submenu,
-components/MenuBar/Halo/Styles/MenuBar_StylesAS$textDecoration_underline_submenu,
components/NumericStepper/styles/AIRNumericStepper_Styles_tester$AIRNumericStepper_Styles_backgroundAlpha,
components/NumericStepper/styles/AIRNumericStepper_Styles_tester$AIRNumericStepper_Styles_backgroundColor_DecimalValue,
components/NumericStepper/styles/AIRNumericStepper_Styles_tester$AIRNumericStepper_Styles_backgroundColor_hexaDecimal,
@@ -777,7 +758,6 @@ containers/ApplicationControlBar/Styles/
containers/ApplicationControlBar/Styles/ApplicationControlBar_Styles$ApplicationControlBar_Styles_fontfamily_airOnly,
containers/ApplicationControlBar/Styles/ApplicationControlBar_Styles$ApplicationControlBar_Styles_paddingTop,
containers/Box/Styles/Box_Styles$Box_Styles_fontfamily,
-containers/Canvas/Properties/ContentSizedConstraints_Canvas$contentSizedColumn_bugSDK12056,
containers/ControlBar/Styles/ControlBar_Styles$ControlBar_Styles_fontfamily,
containers/ControlBar/Styles/ControlBar_Styles$ControlBar_Styles_fontfamily_airOnly,
containers/ControlBar/Styles/ControlBar_Styles$ControlBar_Styles_paddingTop,
@@ -1253,12 +1233,9 @@ gumbo/components/ListDragDrop/SparkHaloD
gumbo/components/ListDragDrop/SparkHaloDND/SparkList_main$SparkTileListIconsRows_move1,
gumbo/components/ListDragDrop/SparkHaloDND/SparkList_main$SparkVListIcons_copy11,
gumbo/components/ListDragDrop/SparkHaloDND/SparkList_main$SparkVListIcons_move1,
-gumbo/components/MXItemRenderer/properties/MXTIR_properties_main$MXTIR_layout_haloContent_001,
gumbo/components/NavigatorContent/integration/NavigatorContent_integration_nc$integration_nc_test1,
-gumbo/components/NumericStepper/Properties/NumericStepper_Positioning$NumericStepper_baseline,
gumbo/components/NumericStepper/Properties/NumericStepper_Properties$NumericStepper_baselinePosition_postValidation,
gumbo/components/NumericStepper/Properties/NumericStepper_Properties$NumericStepper_baselinePosition_preValidation,
-gumbo/components/NumericStepper/Styles/NumericStepper_Styles$NumericStepper_styles_baseline,
gumbo/components/Panel/Properties/Panel_Properties_basic3$Panel_Properties_errorString1,
gumbo/components/Panel/Styles/Panel_Styles$Panel_Styles_lineThrough_airOnly,
gumbo/components/RadioButton/styles/FxRadioButton_textStyles$breakOpportunity_all_RadioButton,
@@ -1366,35 +1343,6 @@ gumbo/components/TextArea/Methods/TextAr
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_export_method_default,
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_getAttributes_method_default,
gumbo/components/TextArea/Methods/TextArea_Methods_tester$Gumbo_TextArea_setAttributes_method_default,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_ltr,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_rtl,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginBottom_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginBottom_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginLeft_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginLeft_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginRight_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginRight_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20_2,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_marginTop_20_2,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_end,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_justify,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_left,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_right,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlign_start,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_end,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_justify,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_left,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_right,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textAlignLast_start,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_20,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft,
-gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester$Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft,
gumbo/components/TextArea/Properties/TextArea_properties_tester$Spark_TextArea_content2,
gumbo/components/TextArea/Properties/TextArea_properties_tester$TextArea_baselinePosition_postValidation,
gumbo/components/TextArea/Properties/TextArea_properties_tester$TextArea_baselinePosition_preValidation,
@@ -2583,7 +2531,6 @@ spark/globalization/Collator/Properties/
spark/globalization/StringTools/Fallback/ST_fallback_getAvailableLocaleIDNames_tester$ST_fallback_getAvailableLocaleIDNames_test1,
spark/globalization/StringTools/Properties/ST_actualLocaleIDName_tester$StringTools_actualLocaleIDName_inheritUIcommponent_inline_test25,
spark/globalization/StringTools/Properties/ST_actualLocaleIDName_tester$StringTools_actualLocaleIDName_inheritUIcommponent_script_test24,
-spark/primitives/Graphic/integration/GraphicTags_FilterTests$GraphicTags_Filters_DropShadowFilter_AS,
spark/primitives/Graphic/integration/GraphicTags_MaskTests$FXG_Masks_Path_changeWidth,
spark/styles/local/spark_application_background_css_tester$mx_panel_backgroundColor_backgroundAlpha_classSelector,
spark/styles/local/spark_application_background_css_tester$spark_application_backgroundColor_backgroundAlpha_classSelector,
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester.mxml
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester.mxml?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
--- incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester.mxml (original)
+++ incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/TextArea_ParagraphAttributes_tester.mxml Mon Oct 8 19:50:28 2012
@@ -1,379 +1,379 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
-->
<UnitTester testDir="gumbo/components/TextArea/Methods/"
- xmlns:fx="http://ns.adobe.com/mxml/2009"
- xmlns:mx="library://ns.adobe.com/flex/mx"
- xmlns:s="library://ns.adobe.com/flex/spark"
- xmlns="*"
- testSWF="TextArea_attributes.mxml">
-
- <!-- this set of lines form a template that must be in each unit test -->
-
- <fx:Script>
- <![CDATA[
- public static function init(o:DisplayObject):void
- {
- }
- ]]>
- </fx:Script>
-
- <fx:Metadata>
- <![CDATA[
- [Mixin]
- ]]>
- </fx:Metadata>
-
- <!-- end of set of lines that must be in each unit test -->
-
- <fx:Script>
- <![CDATA[
- import flash.text.engine.*;
- import flashx.textLayout.formats.*;
-
- import spark.components.TextArea;
- import spark.utils.*;
- import mx.utils.ObjectUtil;
-
- public var defaultText:String = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla metus dui, vehicula ut, porta sit amet, condimentum eget, risus.</p>" +
- "<p>Maecenas pretium dolor quis leo. Duis tincidunt neque ac sem. Mauris gravida sapien ac libero. In hac habitasse platea dictumst.</p>" +
- "<p>Suspendisse eu urna sollicitudin nunc facilisis porttitor. Ut quis orci.</p>" +
- "<p>Vivamus imperdiet malesuada arcu. Curabitur commodo aliquet purus. Nulla imperdiet tellus sed magna.</p>" +
- "<p>Pellentesque vel massa. Maecenas facilisis massa non lectus. Suspendisse potenti.</p>";
-
- public function resetTextArea(target:spark.components.TextArea):void {
- target.content = TextFlowUtil.importFromString(defaultText);
- target.percentWidth = 100;
- target.percentHeight = 100;
- }
-
- public function objectToTextLayoutFormat(obj:Object):TextLayoutFormat {
- var fmt:TextLayoutFormat = new TextLayoutFormat();
- for (var item:String in obj) {
- fmt[item]= obj[item];
- }
- return fmt;
- }
-
- ]]>
- </fx:Script>
-
- <testCases>
-
- <!-- ******************** **************** ******************** -->
- <!-- ******************** TEXTAREA METHODS ******************** -->
- <!-- ******************** **************** ******************** -->
-
- <!-- ******************** direction ******************** -->
- <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_ltr" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.LTR, textAlign:TextAlign.LEFT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
- <RunCode code="application.textArea.selectRange(0,0)" waitTarget="textArea" waitEvent="selectionChange" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_rtl" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.RTL, textAlign:TextAlign.LEFT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="rtl" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.RTL, textAlign:TextAlign.JUSTIFY, textIndent: 20}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="rtl" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="20" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <!-- ******************** textAlign ******************** -->
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.CENTER}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="center" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_end" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.END}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="end" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_justify" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_left" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.LEFT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_right" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.RIGHT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="right" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_start" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.START}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
-
- <!-- ******************** textAlignLast ******************** -->
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.START, textAlignLast:TextAlign.CENTER}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="center" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.CENTER}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="center" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_end" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.END}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="end" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_justify" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY,textAlignLast:TextAlign.JUSTIFY}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="justify" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_left" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.LEFT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="left" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_right" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.RIGHT}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="right" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_start" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.START}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="start" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <!-- ******************** textIndent ******************** -->
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_20" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:20}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="20" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:25, paragraphStartIndent:15}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="25" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['paragraphStartIndent']).paragraphStartIndent" value="15" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
- <setup>
- <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
- <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
- </setup>
- <body>
- <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
- <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:-15, paragraphStartIndent:15}))" />
- <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="-15" />
- <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['paragraphStartIndent']).paragraphStartIndent" value="15" />
- <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="15" maxColorVariance="30" />
- </body>
- </TestCase>
-
- </testCases>
+ xmlns:fx="http://ns.adobe.com/mxml/2009"
+ xmlns:mx="library://ns.adobe.com/flex/mx"
+ xmlns:s="library://ns.adobe.com/flex/spark"
+ xmlns="*"
+ testSWF="TextArea_attributes.mxml">
+
+ <!-- this set of lines form a template that must be in each unit test -->
+
+ <fx:Script>
+ <![CDATA[
+ public static function init(o:DisplayObject):void
+ {
+ }
+ ]]>
+ </fx:Script>
+
+ <fx:Metadata>
+ <![CDATA[
+ [Mixin]
+ ]]>
+ </fx:Metadata>
+
+ <!-- end of set of lines that must be in each unit test -->
+
+ <fx:Script>
+ <![CDATA[
+ import flash.text.engine.*;
+ import flashx.textLayout.formats.*;
+
+ import spark.components.TextArea;
+ import spark.utils.*;
+ import mx.utils.ObjectUtil;
+
+ public var defaultText:String = "<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nulla metus dui, vehicula ut, porta sit amet, condimentum eget, risus.</p>" +
+ "<p>Maecenas pretium dolor quis leo. Duis tincidunt neque ac sem. Mauris gravida sapien ac libero. In hac habitasse platea dictumst.</p>" +
+ "<p>Suspendisse eu urna sollicitudin nunc facilisis porttitor. Ut quis orci.</p>" +
+ "<p>Vivamus imperdiet malesuada arcu. Curabitur commodo aliquet purus. Nulla imperdiet tellus sed magna.</p>" +
+ "<p>Pellentesque vel massa. Maecenas facilisis massa non lectus. Suspendisse potenti.</p>";
+
+ public function resetTextArea(target:spark.components.TextArea):void {
+ target.content = TextFlowUtil.importFromString(defaultText);
+ target.percentWidth = 100;
+ target.percentHeight = 100;
+ }
+
+ public function objectToTextLayoutFormat(obj:Object):TextLayoutFormat {
+ var fmt:TextLayoutFormat = new TextLayoutFormat();
+ for (var item:String in obj) {
+ fmt[item]= obj[item];
+ }
+ return fmt;
+ }
+
+ ]]>
+ </fx:Script>
+
+ <testCases>
+
+ <!-- ******************** **************** ******************** -->
+ <!-- ******************** TEXTAREA METHODS ******************** -->
+ <!-- ******************** **************** ******************** -->
+
+ <!-- ******************** direction ******************** -->
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_ltr" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.LTR, textAlign:TextAlign.LEFT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
+ <RunCode code="application.textArea.selectRange(0,0)" waitTarget="textArea" waitEvent="selectionChange" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_rtl" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.RTL, textAlign:TextAlign.LEFT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="rtl" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent" description="..." keywords="[TextArea, setAttributes, method, marginBottom]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="ltr" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({direction:Direction.RTL, textAlign:TextAlign.JUSTIFY, textIndent: 20}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['direction']).direction" value="rtl" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="20" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <!-- ******************** textAlign ******************** -->
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.CENTER}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="center" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_end" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.END}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="end" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_justify" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_left" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.LEFT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="left" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_right" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.RIGHT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="right" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlign_start" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.START}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+
+ <!-- ******************** textAlignLast ******************** -->
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.START, textAlignLast:TextAlign.CENTER}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="start" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="center" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_center" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.CENTER}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="center" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_end" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.END}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="end" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_justify" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY,textAlignLast:TextAlign.JUSTIFY}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="justify" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_left" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.LEFT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="left" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_right" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.RIGHT}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="right" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textAlignLast_start" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textAlign:TextAlign.JUSTIFY, textAlignLast:TextAlign.START}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlign']).textAlign" value="justify" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textAlignLast']).textAlignLast" value="start" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <!-- ******************** textIndent ******************** -->
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_20" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:20}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="20" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_pos_marginLeft" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:25, paragraphStartIndent:15}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="25" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['paragraphStartIndent']).paragraphStartIndent" value="15" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ <TestCase testID="Gumbo_TextArea_setAttributes_method_textIndent_neg_marginLeft" description="..." keywords="[TextArea, setAttributes, method, textAlign]">
+ <setup>
+ <ResetComponent target="textArea" className="spark.components.TextArea" waitTarget="textArea" waitEvent="updateComplete" />
+ <RunCode code="resetTextArea(application.textArea)" waitTarget="textArea" waitEvent="updateComplete" />
+ </setup>
+ <body>
+ <RunCode code="application.textArea.selectRange(5,5)" waitTarget="textArea" waitEvent="selectionChange" />
+ <RunCode code="application.textArea.setFormatOfRange(objectToTextLayoutFormat({textIndent:-15, paragraphStartIndent:15}))" />
+ <RunCode code="application.textArea.selectRange(20,20)" waitTarget="textArea" waitEvent="selectionChange" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['textIndent']).textIndent" value="-15" />
+ <AssertMethodValue method="value=application.textArea.getFormatOfRange(new <String>['paragraphStartIndent']).paragraphStartIndent" value="15" />
+ <CompareBitmap url="../Methods/baselines/$testID.png" target="textArea" numColorVariances="25" maxColorVariance="30" />
+ </body>
+ </TestCase>
+
+ </testCases>
</UnitTester>
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Added: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png.bad.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png.bad.png?rev=1395746&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_ltr.png.bad.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Added: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png.bad.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png.bad.png?rev=1395746&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl.png.bad.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Added: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png.bad.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png.bad.png?rev=1395746&view=auto
==============================================================================
Binary file - no diff available.
Propchange: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_direction_rtl_textIndent.png.bad.png
------------------------------------------------------------------------------
svn:mime-type = image/png
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_center.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_center.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_end.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_end.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_justify.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_justify.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_left.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_left.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.
Modified: incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center.png
URL: http://svn.apache.org/viewvc/incubator/flex/sdk/branches/develop/mustella/tests/gumbo/components/TextArea/Methods/baselines/Gumbo_TextArea_setAttributes_method_textAlignLast_nojustify_center.png?rev=1395746&r1=1395745&r2=1395746&view=diff
==============================================================================
Binary files - no diff available.