You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2019/12/03 21:02:27 UTC

[royale-asjs] branch develop updated: new test for arraylike access during assignment in variable declaration

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

gregdove 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 bc40f30  new test for arraylike access during assignment in variable declaration
     new 602df8f  Merge branch 'develop' of https://github.com/apache/royale-asjs into develop
bc40f30 is described below

commit bc40f30c2ee089eed19e65020f44ef5559920630
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed Dec 4 10:01:50 2019 +1300

    new test for arraylike access during assignment in variable declaration
---
 .../flexUnitTests/language/LanguageTesterTestArraylikeGetSet.as  | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/frameworks/projects/Collections/src/test/royale/flexUnitTests/language/LanguageTesterTestArraylikeGetSet.as b/frameworks/projects/Collections/src/test/royale/flexUnitTests/language/LanguageTesterTestArraylikeGetSet.as
index 8e451ab..a98e549 100644
--- a/frameworks/projects/Collections/src/test/royale/flexUnitTests/language/LanguageTesterTestArraylikeGetSet.as
+++ b/frameworks/projects/Collections/src/test/royale/flexUnitTests/language/LanguageTesterTestArraylikeGetSet.as
@@ -105,6 +105,15 @@ package flexUnitTests.language
         }
     
         [Test]
+        public function testVariable():void{
+            var original:ArrayList = new ArrayList(['dog', 'cat','mouse','gerbil']);
+        
+            var content:Object = original[0];
+            assertEquals(content, 'dog', 'bad arraylike access');
+        
+        }
+    
+        [Test]
         public function testSubClass():void{
             //test 'inheritance' via class (ArrayListView in this case)
             arrayList= new ArrayList(['dog', 'cat','mouse','gerbil']);