From 8adddfd61f468b2ed4302e4c6fc1b148b76ae50b Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Thu, 14 Oct 2010 13:10:45 +0200 Subject: [PATCH] Add count of expected tests run, include "check.as" instead of "dejagnu.as". The count reveals that the test tests nothing for SWF6! Also, the switch to "check.as" shows how you can still use the direct "dejagnu.as" interface if you really like that more... --- testsuite/actionscript.all/ExternalInterface.as | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/testsuite/actionscript.all/ExternalInterface.as b/testsuite/actionscript.all/ExternalInterface.as index c29bbd9f8..3f49bc2e6 100644 --- a/testsuite/actionscript.all/ExternalInterface.as +++ b/testsuite/actionscript.all/ExternalInterface.as @@ -20,7 +20,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -#include "dejagnu.as" +#include "check.as" flash.system.Security.allowDomain("localhost"); @@ -38,7 +38,7 @@ if (flash.external.ExternalInterface == undefined) { EI = flash.external.ExternalInterface; -#if OUTPUT_VERSION > 6 +#if OUTPUT_VERSION > 6 // { // First make sure all the documented methods and properties exist if (EI.hasOwnProperty("call")) { @@ -52,9 +52,10 @@ if (EI.hasOwnProperty("addCallback")) { } else { fail("ExternalInterface::addCallback() doesn't exist"); } -#endif -#if OUTPUT_VERSION > 7 +#endif // } + +#if OUTPUT_VERSION > 7 // { if (EI.hasOwnProperty("available")) { pass("ExternalInterface::available() exists"); } else { @@ -412,7 +413,15 @@ if (typeOf(val) == "object") { xfail("ExternalInterface::_objectToAS(object)"); } -#endif // version > 7 +#endif // version > 7 } -totals(); +#if OUTPUT_VERSION < 6 // { + check_totals(1); +#elif OUTPUT_VERSION < 7 // }{ + check_totals(0); +#elif OUTPUT_VERSION < 8 // }{ + check_totals(2); +#else // SWF8+ }{ + check_totals(45); +# endif // } -- 2.11.4.GIT