You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by jo...@apache.org on 2026/02/19 18:37:24 UTC
(royale-asjs) branch develop updated: XMLNamespaceTest: fix for AIR 51.2 on Linux
This is an automated email from the ASF dual-hosted git repository.
joshtynjala 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 22c07898f7 XMLNamespaceTest: fix for AIR 51.2 on Linux
22c07898f7 is described below
commit 22c07898f71eb92eb37e023235252283590204f5
Author: Josh Tynjala <jo...@apache.org>
AuthorDate: Thu Feb 19 10:00:50 2026 -0800
XMLNamespaceTest: fix for AIR 51.2 on Linux
---
.../test/royale/flexUnitTests/xml/XMLNamespaceTest.as | 19 +++++++++++++++----
1 file changed, 15 insertions(+), 4 deletions(-)
diff --git a/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLNamespaceTest.as b/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLNamespaceTest.as
index dc970c7842..ba2900f1cf 100644
--- a/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLNamespaceTest.as
+++ b/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLNamespaceTest.as
@@ -124,13 +124,24 @@ package flexUnitTests.xml
var ns:Namespace = xml.namespace();
var playerVersion:Number = getPlayerVersion();
- //account for what appears to be a player bug in a range of player versions (not verified on Mac)
+
+ // account for what appears to be a bug in a range of player versions on Windows (not verified on Mac)
// Javascript conforms to the latest swf behavior
-
- var permitEmptyString:Boolean = /*playerVersion >= 11.2 &&*/ playerVersion <= 20.0 || getPlayerType() == 'StandAlone';
+ COMPILE::SWF
+ {
+ var permitEmptyString:Boolean = true;
+ // previously: (playerVersion <= 20.0 || getPlayerType() == 'StandAlone');
+ // however, an empty string may be returned in AIR 51.2 on Linux
+ // too, so we may not be able to assume that it will be
+ // consistently undefined in any version.
+ }
+ COMPILE::JS
+ {
+ var permitEmptyString:Boolean = false;
+ }
var prefix:* = ns.prefix;
var testIsOK:Boolean = permitEmptyString ? prefix === '' || prefix === undefined : prefix === undefined;
-
+
//assertStrictlyEquals(ns.prefix, undefined, 'unexpected prefix value ');
assertTrue(testIsOK, playerVersion+' unexpected prefix value :'+prefix);