You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2018/06/21 09:00:31 UTC

[royale-asjs] branch develop updated (a979eb6 -> 731fc2d)

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

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


    from a979eb6  Replaced MD5 implementation
     new bec0701  Fixed output of manual tests
     new 731fc2d  Added test for odd byte reading

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../UnitTests/src/main/royale/MyInitialView.mxml       | 12 ++++++------
 .../royale/flexUnitTests/core/BinaryDataTesterTest.as  | 18 ++++++++++++++++++
 2 files changed, 24 insertions(+), 6 deletions(-)


[royale-asjs] 01/02: Fixed output of manual tests

Posted by ha...@apache.org.
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

commit bec07017d4d9f36ab4e2219f27c0249ee29523c4
Author: Harbs <ha...@in-tools.com>
AuthorDate: Thu Jun 21 11:59:24 2018 +0300

    Fixed output of manual tests
---
 manualtests/UnitTests/src/main/royale/MyInitialView.mxml | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/manualtests/UnitTests/src/main/royale/MyInitialView.mxml b/manualtests/UnitTests/src/main/royale/MyInitialView.mxml
index 2f157a2..375981d 100644
--- a/manualtests/UnitTests/src/main/royale/MyInitialView.mxml
+++ b/manualtests/UnitTests/src/main/royale/MyInitialView.mxml
@@ -53,7 +53,7 @@ limitations under the License.
 		public function runTests():void {
 			var label:Label;
 			var groups:Array = TestClasses.testClasses;
-			var spaces:String = PLATFORM == "JS" ? "&nbsp;&nbsp;&nbsp;" : "   ";
+			var spaces:String = PLATFORM == "JS" ? "\u00A0\u00A0\u00A0" : "   ";
 			while (groups.length) {
 				var testGroupClass:Class = groups.shift() as Class;
 				var td:TypeDefinition = describeType(testGroupClass);
@@ -136,11 +136,11 @@ limitations under the License.
 				if (result.warning != null) {
 					message =  spaces + result.warning +newline +message;
 				}
-				if (PLATFORM == "JS") {
-					message = escapeForHtml(message);
-					var jsSpaces:String = spaces.split(" ").join("&nbsp;");
-					message = message.split(spaces).join(jsSpaces);
-				}
+				// if (PLATFORM == "JS") {
+				// 	message = escapeForHtml(message);
+				// 	var jsSpaces:String = spaces.split(" ").join("&nbsp;");
+				// 	message = message.split(spaces).join(jsSpaces);
+				// }
 
 				label.text = message;
 


[royale-asjs] 02/02: Added test for odd byte reading

Posted by ha...@apache.org.
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

commit 731fc2d99f37e56db32939cdbbe46fac6a3c1770
Author: Harbs <ha...@in-tools.com>
AuthorDate: Thu Jun 21 12:00:15 2018 +0300

    Added test for odd byte reading
---
 .../royale/flexUnitTests/core/BinaryDataTesterTest.as  | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as b/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
index 7e8553d..420cc93 100644
--- a/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
+++ b/manualtests/UnitTests/src/main/royale/flexUnitTests/core/BinaryDataTesterTest.as
@@ -562,6 +562,24 @@ package flexUnitTests.core
 			}
 		}
 
+		[Test]
+		public function testReadOddBytes():void
+		{
+			var ba:BinaryData = new BinaryData();
+			for (var i:int=0;i<50;i++) ba.writeByte(i);
+			ba.endian = Endian.BIG_ENDIAN;
+			ba.position=0;
+			Assert.assertEquals("BinaryData readByte: should be 0", 0, ba.readByte());
+			Assert.assertEquals("BinaryData readShort: should be 258", 258, ba.readShort());
+			Assert.assertEquals("BinaryData readInt: should be 50595078", 50595078, ba.readInt());
+			ba.endian = Endian.LITTLE_ENDIAN;
+			ba.position=0;
+			Assert.assertEquals("BinaryData readByte: should be 0", 0, ba.readByte());
+			Assert.assertEquals("BinaryData readShort: should be 513", 513, ba.readShort());
+			Assert.assertEquals("BinaryData readInt: should be 100992003", 100992003, ba.readInt());
+
+		}
+
 
 	}
 }