gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9903: Tests.


From: Benjamin Wolsey
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9903: Tests.
Date: Thu, 02 Oct 2008 12:32:09 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9903
committer: Benjamin Wolsey <address@hidden>
branch nick: trunk
timestamp: Thu 2008-10-02 12:32:09 +0200
message:
  Tests.
modified:
  testsuite/actionscript.all/LoadVars.as
    ------------------------------------------------------------
    revno: 9902.1.1
    committer: Benjamin Wolsey <address@hidden>
    branch nick: work
    timestamp: Thu 2008-10-02 12:31:34 +0200
    message:
      More tests for LoadVars.
    modified:
      testsuite/actionscript.all/LoadVars.as
=== modified file 'testsuite/actionscript.all/LoadVars.as'
--- a/testsuite/actionscript.all/LoadVars.as    2008-10-02 09:09:47 +0000
+++ b/testsuite/actionscript.all/LoadVars.as    2008-10-02 10:31:34 +0000
@@ -172,10 +172,18 @@
 check_equals(typeof(r.loaded), "boolean");
 check_equals(r.loaded, false);
 
+// For checking that the data were loaded with XML.prototype.load.
+x.onLoad = function(success) {
+    xcheck_equals(x['var2'], 'val2');
+    play();
+};
+
 // The two objects are also interchangeable for these functions.
 x.sendAndLoad = XML.prototype.sendAndLoad;
 xcheck_equals(x.sendAndLoad("some server name", r), true);
-
+x.load = XML.prototype.load;
+xcheck_equals(x.load( MEDIA(vars.txt) ), true);
+stop();
 
 //--------------------------------------------------------------------------
 // Test LoadVars::load()
@@ -222,7 +230,7 @@
                // Gnash insists in looking for an ending & char !!             
                check_equals(loadvarsObj['var3'], 'val3\n');
 
-               check_totals(108);
+               xcheck_totals(110);
 
                play();
        }


reply via email to

[Prev in Thread] Current Thread [Next in Thread]