[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all with.as
From: |
Rob Savoye |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all with.as |
Date: |
Tue, 17 Oct 2006 16:43:52 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Rob Savoye <rsavoye> 06/10/17 16:43:52
Modified files:
testsuite/actionscript.all: with.as
Log message:
Move things around, no real changes.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/with.as?cvsroot=gnash&r1=1.1&r2=1.2
Patches:
Index: with.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/with.as,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- with.as 17 Oct 2006 00:09:53 -0000 1.1
+++ with.as 17 Oct 2006 16:43:52 -0000 1.2
@@ -40,14 +40,13 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-var XMLObj = new XML;
+var XMLObj = new XML();
#include "dejagnu.as"
#include "utils.as"
-var xml = "<TOPNODE><SUBNODE1><SUBSUBNODE1>sub sub1 node data
1</SUBSUBNODE1><SUBSUBNODE2>sub sub1 node data
2</SUBSUBNODE2></SUBNODE1><SUBNODE2><SUBSUBNODE1>sub sub2 node data
1</SUBSUBNODE1><SUBSUBNODE2>sub sub2 node data
2</SUBSUBNODE2></SUBNODE2></TOPNODE>";
-
XMLObj.onLoad = function (success) {
+ if (success) {
with (XMLObj.firstChild) {
if (nodeName == 'TOPNODE') {
childa = 0;
@@ -77,10 +76,10 @@
}
}
}
- Root_Path.mv_Everything.mv_System_Info.txt_Sysinfo_XMLPort.text = XML_port;
+ }
+ Root_Path.mv_Everything.mv_System_Info.txt_Sysinfo_child3.text = child3;
if (Connected == 0) {
- Root_Path.mv_Everything.mv_Loading_Splash.txt_Debug.text = 'Connecting
to\'' + IP_add + '\' on port ' + XML_port;
- ARQSocket_Connect();
+ Root_Path.mv_Everything.mv_Loading_Splash.txt_Debug.text = 'Connecting
to\'' + child1 + '\' on port ' + child3;
}
};
@@ -91,6 +90,8 @@
// fail("XML::load() doesn't work");
// }
+var xml = "<TOPNODE><SUBNODE1><SUBSUBNODE1>sub sub1 node data
1</SUBSUBNODE1><SUBSUBNODE2>sub sub1 node data
2</SUBSUBNODE2></SUBNODE1><SUBNODE2><SUBSUBNODE1>sub sub2 node data
1</SUBSUBNODE1><SUBSUBNODE2>sub sub2 node data
2</SUBSUBNODE2></SUBNODE2></TOPNODE>";
+
XMLObj.parseXML(xml);
if (XMLObj.firstChild.nodeName == "TOPNODE") {
pass("XML::parseXML() works");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash/testsuite/actionscript.all with.as,
Rob Savoye <=