[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Came...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Came... |
Date: |
Thu, 23 Nov 2006 14:58:54 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 06/11/23 14:58:54
Modified files:
. : ChangeLog
testsuite/actionscript.all: Camera.as
Log message:
* testsuite/actionscript.all/Camera.as: updated after run reports.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1720&r2=1.1721
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Camera.as?cvsroot=gnash&r1=1.7&r2=1.8
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1720
retrieving revision 1.1721
diff -u -b -r1.1720 -r1.1721
--- ChangeLog 23 Nov 2006 14:37:08 -0000 1.1720
+++ ChangeLog 23 Nov 2006 14:58:54 -0000 1.1721
@@ -1,5 +1,6 @@
2006-11-23 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/Camera.as: updated after run reports.
* testsuite/actionscript.all/dejagnu.as: don't override rcsid
set in testcases.
* testsuite/actionscript.all/check.as: make all traces
Index: testsuite/actionscript.all/Camera.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Camera.as,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- testsuite/actionscript.all/Camera.as 22 Nov 2006 09:50:03 -0000
1.7
+++ testsuite/actionscript.all/Camera.as 23 Nov 2006 14:58:54 -0000
1.8
@@ -20,22 +20,40 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: Camera.as,v 1.7 2006/11/22 09:50:03 strk Exp $";
+rcsid="$Id: Camera.as,v 1.8 2006/11/23 14:58:54 strk Exp $";
#include "check.as"
+//trace("NOTE: System.capabilities.hasVideoEncoder: " +
System.capabilities.hasVideoEncoder);
+
// test the Camera constuctor
-var cameraObj = Camera.get();
-xcheck (cameraObj != undefined);
+check(Camera);
+var cameraObj = new Camera;
+check(cameraObj);
+var cameraObj2 = new Camera();
+check(cameraObj2);
+
+check(cameraObj != cameraObj2);
+check_equals(typeof(cameraObj), 'object');
+
+// The .get() method is a class method, not exported
+// to instances.
+check(Camera.get);
+xcheck_equals(cameraObj.get, undefined);
+
+trace("Camera.get() returns: "+Camera.get());
-// test that Camera.get() returns a singleton
-check_equals(cameraObj, Camera.get());
+// test that the methods do not exist in the class
+xcheck_equals(Camera.setmode, undefined);
+xcheck_equals(Camera.setmotionlevel, undefined);
+xcheck_equals(Camera.setquality, undefined);
-// test that get() method is NOT exported to instances
-check_equals (cameraObj.get, undefined);
-// test the Camera::setmode method
-xcheck (cameraObj.setmode != undefined);
-// test the Camera::setmotionlevel method
-xcheck (cameraObj.setmotionlevel != undefined);
-// test the Camera::setquality method
-xcheck (cameraObj.setquality != undefined);
+#if OUTPUT_VERSION < 7
+check (cameraObj.setmode);
+check (cameraObj.setmotionlevel);
+check (cameraObj.setquality);
+#else
+xcheck_equals (cameraObj.setmode, undefined);
+xcheck_equals (cameraObj.setmotionlevel, undefined);
+xcheck_equals (cameraObj.setquality, undefined);
+#endif