gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Syst...


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Syst...
Date: Fri, 11 Apr 2008 08:35:01 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/04/11 08:35:00

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: System.as 

Log message:
        Test for undocumented functions.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6247&r2=1.6248
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/System.as?cvsroot=gnash&r1=1.20&r2=1.21

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6247
retrieving revision 1.6248
diff -u -b -r1.6247 -r1.6248
--- ChangeLog   11 Apr 2008 08:06:05 -0000      1.6247
+++ ChangeLog   11 Apr 2008 08:35:00 -0000      1.6248
@@ -1,5 +1,10 @@
 2008-04-11 Benjamin Wolsey <address@hidden>
 
+       * testsuite/actionscript.all/System.as: tests for undocumented
+         functions.
+
+2008-04-11 Benjamin Wolsey <address@hidden>
+
        * testsuite/actionscript.all/System.as: test for hasIME and hasTLS. 
          The former doesn't exist on at least one pp version but is
          documented.

Index: testsuite/actionscript.all/System.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/System.as,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -b -r1.20 -r1.21
--- testsuite/actionscript.all/System.as        11 Apr 2008 08:06:06 -0000      
1.20
+++ testsuite/actionscript.all/System.as        11 Apr 2008 08:35:00 -0000      
1.21
@@ -21,7 +21,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: System.as,v 1.20 2008/04/11 08:06:06 bwy Exp $";
+rcsid="$Id: System.as,v 1.21 2008/04/11 08:35:00 bwy Exp $";
 #include "check.as"
 
 check_equals(typeof(System), 'object');
@@ -50,7 +50,6 @@
 
 #endif // OUTPUT_VERSION >= 7
 
-
 // test System.capabilities
 check_equals(typeof(System.capabilities), 'object');
 
@@ -85,7 +84,11 @@
 check_equals(typeof(System.capabilities.hasAudio), 'boolean');
 check_equals(typeof(System.capabilities.hasAccessibility), 'boolean');
 check_equals(typeof(System.capabilities.avHardwareDisable), 'boolean');
+
+// Not present on Linux player version 9,0,115,0, is (?) on windows.
 xcheck_equals(typeof(System.capabilities.hasIME), 'boolean');
+
+// Added in Player version 9.
 xcheck_equals(typeof(System.capabilities.hasTLS), 'boolean');
 
 #if OUTPUT_VERSION >= 6
@@ -93,12 +96,43 @@
 check(! MovieClip.prototype.hasOwnProperty("$version") );
 #endif
 
+//
+// Undocumented System methods
+//
+
+// Directs the player to use Latin1 instead of unicode.
+xcheck_equals(typeof(System.useCodepage), 'boolean');
+System.useCodepage = false;
+xcheck_equals(System.useCodepage, false);
+System.useCodepage = true;
+xcheck_equals(System.useCodepage, true);
+
+// Pops up settings dialogue box with variable settings.
+// System.showSettings(0): camera / microphone access;
+// 1: shared object settings.
+// 2: camera.
+// 3: microphone.
+check_equals(typeof(System.showSettings), 'function');
+
+
+check_equals(typeof(System.Product), 'function');
+check (System.Product.prototype.hasOwnProperty('launch'));
+check (System.Product.prototype.hasOwnProperty('download'));
+
+p = new System.Product("whatisthis");
+xcheck_equals(typeof(p), 'object');
+
+// Tries to do something with 'whatisthis'
+xcheck_equals(typeof(p.download), 'function');
+// Tries to exec whatisthis from a particular location?
+xcheck_equals(typeof(p.launch), 'function');
+
 #if OUTPUT_VERSION > 6
- check_totals(42);
+ check_totals(52);
 #else
 # if OUTPUT_VERSION == 6
-   check_totals(41);
+   check_totals(51);
 # else
-   check_totals(39);
+   check_totals(49);
 # endif
 #endif




reply via email to

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