This is an automated email from the ASF dual-hosted git repository.

Harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 4c439db38a Accept offset
4c439db38a is described below

commit 4c439db38a3fed53be99c8d7f598a4c4fe0d9987
Author: Harbs <[email protected]>
AuthorDate: Wed Jun 17 14:49:06 2026 +0300

    Accept offset
---
 .../royale/org/apache/royale/style/stylebeads/border/Outline.as    | 4 +++-
 .../projects/Style/src/test/royale/flexUnitTests/OutlineTest.as    | 7 +++++--
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/Outline.as
 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/Outline.as
index 43bcf31bac..e71882dfc2 100644
--- 
a/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/Outline.as
+++ 
b/frameworks/projects/Style/src/main/royale/org/apache/royale/style/stylebeads/border/Outline.as
@@ -27,7 +27,7 @@ package org.apache.royale.style.stylebeads.border
         */
        public class Outline extends CompositeStyle
        {
-               public function Outline(width:*=null, style:*=null, 
color:*=null)
+               public function Outline(width:*=null, style:*=null, 
color:*=null, offset:*=null)
                {
                        super();
                        styles = [];
@@ -37,6 +37,8 @@ package org.apache.royale.style.stylebeads.border
                                this.style = style;
                        if (color != null)
                                this.color = color;
+                       if (offset != null)
+                               this.offset = offset;
                }
                private var _color:String;
 
diff --git 
a/frameworks/projects/Style/src/test/royale/flexUnitTests/OutlineTest.as 
b/frameworks/projects/Style/src/test/royale/flexUnitTests/OutlineTest.as
index 2e4693e3c3..394f701ea6 100644
--- a/frameworks/projects/Style/src/test/royale/flexUnitTests/OutlineTest.as
+++ b/frameworks/projects/Style/src/test/royale/flexUnitTests/OutlineTest.as
@@ -27,16 +27,18 @@ package flexUnitTests
                [Test]
                public function testConstructorSetsOptionalArguments():void
                {
-                       var outline:Outline = new Outline("2px", "solid", 
"red");
+                       var outline:Outline = new Outline("2px", "solid", 
"red", "1px");
                        var leaves:Array = outline.getLeaves();
 
                        assertEquals("2px", outline.width);
                        assertEquals("solid", outline.style);
                        assertEquals("red", outline.color);
-                       assertEquals(3, leaves.length);
+                       assertEquals("1px", outline.offset);
+                       assertEquals(4, leaves.length);
                        assertEquals("outline-width:2px;", 
ILeafStyleBead(leaves[0]).getRule());
                        assertEquals("outline-style:solid;", 
ILeafStyleBead(leaves[1]).getRule());
                        assertEquals("outline-color:red;", 
ILeafStyleBead(leaves[2]).getRule());
+                       assertEquals("outline-offset:1px;", 
ILeafStyleBead(leaves[3]).getRule());
                }
 
                [Test]
@@ -47,6 +49,7 @@ package flexUnitTests
                        assertNull(outline.width);
                        assertEquals("dashed", outline.style);
                        assertNull(outline.color);
+                       assertNull(outline.offset);
                        assertEquals(1, outline.getLeaves().length);
                }
        }

Reply via email to