[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11429: TextLineMetrics_as.hx and Se
From: |
Sharad Desai |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11429: TextLineMetrics_as.hx and Security_as.hx does not fail in pp now |
Date: |
Fri, 14 Aug 2009 13:12:25 -0600 |
User-agent: |
Bazaar (1.16.1) |
------------------------------------------------------------
revno: 11429 [merge]
committer: Sharad Desai <address@hidden>
branch nick: trunk
timestamp: Fri 2009-08-14 13:12:25 -0600
message:
TextLineMetrics_as.hx and Security_as.hx does not fail in pp now
modified:
testsuite/misc-haxe.all/classes.all/system/Security_as.hx
testsuite/misc-haxe.all/classes.all/text/TextLineMetrics_as.hx
=== modified file 'testsuite/misc-haxe.all/classes.all/system/Security_as.hx'
--- a/testsuite/misc-haxe.all/classes.all/system/Security_as.hx 2009-07-15
16:35:45 +0000
+++ b/testsuite/misc-haxe.all/classes.all/system/Security_as.hx 2009-08-14
19:10:16 +0000
@@ -68,16 +68,12 @@
#end
#if flash8
- DejaGnu.note( "Security.sandboxType may be not defined right? " +
Type.typeof(Security.sandboxType) );
-//Si:
-//Can not pass the test here!
-//The Security.sandboxType is not well defined for flash8
-
-// if (Std.is(Security.sandboxType, String) ) {
- if (Type.typeof(Security.sandboxType)==TNull ) {
+ // For pp, Security.sandboxType returns a string, hence the xfail
+ // when run in the pp
+ if (Type.typeof(Security.sandboxType) == ValueType.TNull) {
DejaGnu.pass("Security.sandboxType property exists");
} else {
- DejaGnu.fail("Security.sandboxType property doesn't exist");
+ DejaGnu.xfail("Security.sandboxType property doesn't exist");
}
#end
@@ -100,13 +96,14 @@
DejaGnu.fail("Security::allowDomain() method doesn't exist");
}
var ret = Security.allowDomain("cnn.com");
- DejaGnu.note("ret = " + ret);
+#if !flash6
if (Type.typeof(Security.allowInsecureDomain) == TFunction) {
DejaGnu.pass("Security::allowInsecureDomain() method exists");
} else {
DejaGnu.fail("Security::allowInsecureDomain() method doesn't
exist");
}
+#end
if (Type.typeof(Security.loadPolicyFile) == TFunction) {
DejaGnu.pass("Security::loadPolicyFile() method exists");
} else {
=== modified file
'testsuite/misc-haxe.all/classes.all/text/TextLineMetrics_as.hx'
--- a/testsuite/misc-haxe.all/classes.all/text/TextLineMetrics_as.hx
2009-06-15 20:00:09 +0000
+++ b/testsuite/misc-haxe.all/classes.all/text/TextLineMetrics_as.hx
2009-08-14 17:24:40 +0000
@@ -48,42 +48,43 @@
} else {
DejaGnu.fail("TextLineMetrics 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
-// is primarily useful only to test completeness of the API implementation.
- if (Type.typeof(x1.ascent) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.ascent property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.ascent property doesn't exist");
- }
- if (Type.typeof(x1.descent) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.descent property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.descent property doesn't exist");
- }
- if (Type.typeof(x1.height) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.height property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.height property doesn't exist");
- }
- if (Type.typeof(x1.leading) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.leading property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.leading property doesn't exist");
- }
- if (Type.typeof(x1.width) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.width property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.width property doesn't exist");
- }
- if (Type.typeof(x1.x) == ValueType.TFloat) {
- DejaGnu.pass("TextLineMetrics.x property exists");
- } else {
- DejaGnu.fail("TextLineMetrics.x property 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
+ // is primarily useful only to test completeness of the API
implementation.
+ if (Type.typeof(x1.ascent) == ValueType.TFloat) {
+ DejaGnu.pass("TextLineMetrics.ascent property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.ascent property doesn't
exist");
+ }
+ if (Type.typeof(x1.descent) == ValueType.TFloat) {
+ DejaGnu.pass("TextLineMetrics.descent property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.descent property doesn't
exist");
+ }
+ if (Type.typeof(x1.height) == ValueType.TFloat) {
+ DejaGnu.pass("TextLineMetrics.height property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.height property doesn't
exist");
+ }
+ if (Type.typeof(x1.leading) == ValueType.TInt) {
+ DejaGnu.pass("TextLineMetrics.leading property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.leading property doesn't
exist");
+ }
+ if (Type.typeof(x1.width) == ValueType.TInt) {
+ DejaGnu.pass("TextLineMetrics.width property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.width property doesn't
exist");
+ }
+ if (Type.typeof(x1.x) == ValueType.TInt) {
+ DejaGnu.pass("TextLineMetrics.x property exists");
+ } else {
+ DejaGnu.fail("TextLineMetrics.x property doesn't
exist");
+ }
- // Call this after finishing all tests. It prints out the totals.
- DejaGnu.done();
+ // Call this after finishing all tests. It prints out the
totals.
+ DejaGnu.done();
#else
DejaGnu.note("This class (TextLineMetrics) is only available in
flash9");
#end
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11429: TextLineMetrics_as.hx and Security_as.hx does not fail in pp now,
Sharad Desai <=