[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/avm2 r9750: add haxe type debugging for no
From: |
rob |
Subject: |
[Gnash-commit] /srv/bzr/gnash/avm2 r9750: add haxe type debugging for now to help test multiple output versions. |
Date: |
Tue, 19 May 2009 09:35:29 -0600 |
User-agent: |
Bazaar (1.13.1) |
------------------------------------------------------------
revno: 9750
committer: address@hidden
branch nick: avm2
timestamp: Tue 2009-05-19 09:35:29 -0600
message:
add haxe type debugging for now to help test multiple output versions.
modified:
testsuite/as3/classes.all/accessibility/Accessibility_as3.hx
=== modified file 'testsuite/as3/classes.all/accessibility/Accessibility_as3.hx'
--- a/testsuite/as3/classes.all/accessibility/Accessibility_as3.hx
2009-05-15 01:57:34 +0000
+++ b/testsuite/as3/classes.all/accessibility/Accessibility_as3.hx
2009-05-19 15:35:29 +0000
@@ -32,6 +32,7 @@
#end
import flash.Lib;
import Type;
+import Reflect;
// import our testing API
import DejaGnu;
@@ -43,16 +44,47 @@
// 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
// is primarily useful only to test completeness of the API implementation.
+#if flash9
+// Should be:
+// TBool
+// null
+// false
+// false
+// flash.accessibility.Accessibility
+// sendEvent
+ DejaGnu.note("ME1 " + Type.typeof(Accessibility.active));
+ DejaGnu.note("ME2 " + Type.getClass(Accessibility.active));
+ DejaGnu.note("ME3 " + Std.string(Accessibility.active));
+ DejaGnu.note("ME4 " + Std.is(Accessibility.active,ValueType.TObject));
+ DejaGnu.note("ME5 " + Type.getClassName(Accessibility));
+ DejaGnu.note("ME6 " + Type.getClassFields(Accessibility)[0]);
+
if (Accessibility.active == false) {
DejaGnu.pass("Accessibility::active property exists");
} else {
DejaGnu.fail("Accessibility::active property doesn't exist");
}
+#else
+ DejaGnu.note("ME1 " + Type.typeof(Accessibility.isActive));
+ DejaGnu.note("ME2 " + Type.getClass(Accessibility.isActive));
+ DejaGnu.note("ME3 " + Std.string(Accessibility.isActive));
+ DejaGnu.note("ME4 " +
Std.is(Accessibility.isActive,ValueType.TFunction));
+ DejaGnu.note("ME5 " +
Type.getClassName(Type.getClass(Accessibility)));
+// DejaGnu.note("ME6 " + Type.getClassFields(Accessibility.isActive));
+ DejaGnu.note("ME7 " + Reflect.isFunction(Accessibility.isActive));
+ DejaGnu.note("ME8 " + Reflect.isObject(Accessibility.isActive));
+
+ if (Accessibility.isActive() == false) {
+ DejaGnu.pass("Accessibility::isActive method exists");
+ } else {
+ DejaGnu.fail("Accessibility::isActive method doesn't exist");
+ }
+#end
// Tests to see if all the methods exist. All these do is test for
// existance of a method, and don't test the functionality at all. This
// is primarily useful only to test completeness of the API implementation.
- if (Accessibility.updateProperties == null) {
+ if (Accessibility.updateProperties() != null) {
DejaGnu.pass("Accessibility::updateProperties() method exists");
} else {
DejaGnu.fail("Accessibility::updateProperties() method doesn't
exist");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/avm2 r9750: add haxe type debugging for now to help test multiple output versions.,
rob <=