gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] /srv/bzr/gnash/trunk r11066: fixed camera and microphone


From: Ben Limmer
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r11066: fixed camera and microphone haxe tests to have the proper expected failures
Date: Wed, 10 Jun 2009 15:04:48 -0600
User-agent: Bazaar (1.13.1)

------------------------------------------------------------
revno: 11066
committer: Ben Limmer <address@hidden>
branch nick: trunk
timestamp: Wed 2009-06-10 15:04:48 -0600
message:
  fixed camera and microphone haxe tests to have the proper expected failures
modified:
  testsuite/as3/classes.all/media/Camera_as.hx
  testsuite/as3/classes.all/media/Microphone_as.hx
=== modified file 'testsuite/as3/classes.all/media/Camera_as.hx'
--- a/testsuite/as3/classes.all/media/Camera_as.hx      2009-05-28 21:24:56 
+0000
+++ b/testsuite/as3/classes.all/media/Camera_as.hx      2009-06-10 21:04:48 
+0000
@@ -50,7 +50,7 @@
         if (x1 != null) {
             DejaGnu.pass("Camera class exists");
         } else {
-            DejaGnu.fail("Camera lass doesn't exist");
+            DejaGnu.xfail("Camera class doesn't exist");
         }
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
@@ -117,14 +117,8 @@
        if (Type.typeof(x1.name) == ValueType.TObject) {
            DejaGnu.pass("Camera::name property exists");
        } else {
-           DejaGnu.fail("Camera::name property doesn't exist");
+           DejaGnu.xfail("Camera::name property doesn't exist");
        }
-// FIXME: this returns an array
-//     if (x1.names == 0) {
-//         DejaGnu.pass("Camera::names property exists");
-//     } else {
-//         DejaGnu.fail("Camera::names property doesn't exist");
-//     }
        if (Type.typeof(x1.quality) == ValueType.TInt) {
            DejaGnu.pass("Camera::quality property exists");
        } else {
@@ -140,61 +134,54 @@
        if (Type.typeof(x1.activityLevel) == ValueType.TFloat) {
            DejaGnu.pass("Camera::activityLevel property exists");
        } else {
-           DejaGnu.fail("Camera::activityLevel property doesn't exist");
+           DejaGnu.xfail("Camera::activityLevel property doesn't exist");
        }
        if (Type.typeof(x1.bandwidth) == ValueType.TInt) {
            DejaGnu.pass("Camera::bandwidth property exists");
        } else {
-           DejaGnu.fail("Camera::bandwidth property doesn't exist");
+           DejaGnu.xfail("Camera::bandwidth property doesn't exist");
        }
        if (Type.typeof(x1.currentFps) == ValueType.TFloat) {
            DejaGnu.pass("Camera::currentFPS property exists");
        } else {
-           DejaGnu.fail("Camera::currentFPS property doesn't exist");
+           DejaGnu.xfail("Camera::currentFPS property doesn't exist");
        }
        if (Type.typeof(x1.fps) == ValueType.TFloat) {
            DejaGnu.pass("Camera::fps property exists");
        } else {
-           DejaGnu.fail("Camera::fps property doesn't exist");
+           DejaGnu.xfail("Camera::fps property doesn't exist");
        }
        if (Type.typeof(x1.height) == ValueType.TFloat) {
            DejaGnu.pass("Camera::height property exists");
        } else {
-           DejaGnu.fail("Camera::height property doesn't exist");
+           DejaGnu.xfail("Camera::height property doesn't exist");
        }
        //FIXME: it would be nice to check that this is returning the 
        //proper string
        if (Type.typeof(x1.index) == ValueType.TObject) {
            DejaGnu.pass("Camera::index property exists");
        } else {
-           DejaGnu.fail("Camera::index property doesn't exist");
+           DejaGnu.xfail("Camera::index property doesn't exist");
        }
        if (Type.typeof(x1.keyFrameInterval) == ValueType.TFloat) {
            DejaGnu.pass("Camera::keyFrameInterval property exists");
        } else {
-           DejaGnu.fail("Camera::keyFrameInterval property doesn't exist");
+           DejaGnu.xfail("Camera::keyFrameInterval property doesn't exist");
        }
        if (x1.loopback == (false||true)) {
            DejaGnu.pass("Camera::loopback property exists");
        } else {
-           DejaGnu.fail("Camera::loopback property doesn't exist");
+           DejaGnu.xfail("Camera::loopback property doesn't exist");
        }
        if (Type.typeof(x1.motionLevel) == ValueType.TFloat) {
            DejaGnu.pass("Camera::motionLevel property exists");
        } else {
-           DejaGnu.fail("Camera::motionLevel property doesn't exist");
+           DejaGnu.xfail("Camera::motionLevel property doesn't exist");
        }
        if (x1.muted == (false || true)) {
            DejaGnu.pass("Camera::muted property exists");
        } else {
-           DejaGnu.fail("Camera::muted property doesn't exist");
-       }
-       //FIXME: it would be nice if this checked to make sure the name is 
-       //a string
-       if (Type.typeof(x1.name) == ValueType.TObject) {
-           DejaGnu.pass("Camera::name property exists");
-       } else {
-           DejaGnu.fail("Camera::name property doesn't exist");
+           DejaGnu.xfail("Camera::muted property doesn't exist");
        }
 // FIXME: this returns an array
 //     if (x1.names == 0) {
@@ -205,12 +192,12 @@
        if (Type.typeof(x1.quality) == ValueType.TFloat) {
            DejaGnu.pass("Camera::quality property exists");
        } else {
-           DejaGnu.fail("Camera::quality property doesn't exist");
+           DejaGnu.xfail("Camera::quality property doesn't exist");
        }
        if (Type.typeof(x1.width) == ValueType.TFloat) {
            DejaGnu.pass("Camera::width property exists");
        } else {
-           DejaGnu.fail("Camera::width property doesn't exist");
+           DejaGnu.xfail("Camera::width property doesn't exist");
        }
        #end
 // Tests to see if all the methods exist. All these do is test for

=== modified file 'testsuite/as3/classes.all/media/Microphone_as.hx'
--- a/testsuite/as3/classes.all/media/Microphone_as.hx  2009-06-02 21:47:29 
+0000
+++ b/testsuite/as3/classes.all/media/Microphone_as.hx  2009-06-10 21:04:48 
+0000
@@ -52,7 +52,7 @@
         if (Std.is(x1, Microphone)) {
             DejaGnu.pass("Microphone class exists");
         } else {
-            DejaGnu.fail("Microphone class doesn't exist");
+            DejaGnu.xfail("Microphone class doesn't exist");
         }
 // Tests to see if all the properties exist. All these do is test for
 // existance of a property, and don't test the functionality at all. This
@@ -60,7 +60,7 @@
        if (Std.is(Microphone.names, Array)) {
            DejaGnu.pass("Microphone.names property exists");
        } else {
-           DejaGnu.fail("Microphone.names property doesn't exist");
+           DejaGnu.xfail("Microphone.names property doesn't exist");
        }
        if (Std.is(x1.activityLevel, Int)) {
            DejaGnu.pass("Microphone.activityLevel property exists");
@@ -102,13 +102,13 @@
        if (Std.is(x1.muted, Bool)) {
            DejaGnu.pass("Microphone::muted property exists");
        } else {
-           DejaGnu.fail("Microphone::muted property doesn't exist");
+           DejaGnu.xfail("Microphone::muted property doesn't exist");
        }
        //FIXME: it would be nice if this parsed and checked the name string
        if (Std.is(x1.name, String)) {
            DejaGnu.pass("Microphone::name property exists");
        } else {
-           DejaGnu.fail("Microphone::name property doesn't exist");
+           DejaGnu.xfail("Microphone::name property doesn't exist");
        }
        if (Std.is(x1.rate, Int)) {
            DejaGnu.pass("Microphone::rate property exists");
@@ -141,7 +141,7 @@
        if (Std.is(x1.useEchoSuppression, Bool)) {
            DejaGnu.pass("Microphone::useEchoSuppression property exists");
        } else {
-           DejaGnu.fail("Microphone::useEchoSuppression property doesn't 
exist");
+           DejaGnu.xfail("Microphone::useEchoSuppression property doesn't 
exist");
        }
 
 // Tests to see if all the methods exist. All these do is test for
@@ -157,23 +157,23 @@
        if (Type.typeof(x1.setRate) == ValueType.TFunction) {
            DejaGnu.pass("Microphone::setRate() method exists");
        } else {
-           DejaGnu.fail("Microphone::setRate() method doesn't exist");
+           DejaGnu.xfail("Microphone::setRate() method doesn't exist");
        }
        if (Type.typeof(x1.setGain) == ValueType.TFunction) {
            DejaGnu.pass("Microphone::setGain() method exists");
        } else {
-           DejaGnu.fail("Microphone::setGain() method doesn't exist");
+           DejaGnu.xfail("Microphone::setGain() method doesn't exist");
        }
 #end
        if (Type.typeof(x1.setSilenceLevel) == ValueType.TFunction) {
            DejaGnu.pass("Microphone::setSilenceLevel() method exists");
        } else {
-           DejaGnu.fail("Microphone::setSilenceLevel() method doesn't exist");
+           DejaGnu.xfail("Microphone::setSilenceLevel() method doesn't exist");
        }
        if (Type.typeof(x1.setUseEchoSuppression) == ValueType.TFunction) {
            DejaGnu.pass("Microphone::setUseEchoSuppression() method exists");
        } else {
-           DejaGnu.fail("Microphone::setUseEchoSuppression() method doesn't 
exist");
+           DejaGnu.xfail("Microphone::setUseEchoSuppression() method doesn't 
exist");
        }
 
         // Call this after finishing all tests. It prints out the totals.


reply via email to

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