[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11417: LoaderInfo_as.hx needs valid
From: |
Sharad Desai |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11417: LoaderInfo_as.hx needs valid url to pass test cases; however if url is not valid, then test won't run--but won't result in any failures--a note will pop up in the test case to let the user know of this |
Date: |
Thu, 13 Aug 2009 11:11:08 -0600 |
User-agent: |
Bazaar (1.16.1) |
------------------------------------------------------------
revno: 11417 [merge]
committer: Sharad Desai <address@hidden>
branch nick: trunk
timestamp: Thu 2009-08-13 11:11:08 -0600
message:
LoaderInfo_as.hx needs valid url to pass test cases; however if url is not
valid, then test won't run--but won't result in any failures--a note will pop
up in the test case to let the user know of this
modified:
testsuite/misc-haxe.all/classes.all/display/LoaderInfo_as.hx
=== modified file 'testsuite/misc-haxe.all/classes.all/display/LoaderInfo_as.hx'
--- a/testsuite/misc-haxe.all/classes.all/display/LoaderInfo_as.hx
2009-06-03 19:57:34 +0000
+++ b/testsuite/misc-haxe.all/classes.all/display/LoaderInfo_as.hx
2009-08-13 17:09:24 +0000
@@ -49,22 +49,27 @@
class LoaderInfo_as {
static function main() {
- #if flash9
- var loader:Loader = new Loader();
- //var loader = new flash.display.Loader();
- var x1 = loader.contentLoaderInfo;
- loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,
function(e) {
- trace(e);
- });
+ #if flash9
+
+ DejaGnu.note("\nIf test does not run properly
-- ie: error of some" +
+ " sort, then check line212 and make
sure there is a" +
+ " valid url path for a swf\n");
+
+ var loader:Loader = new Loader();
+ //var loader = new flash.display.Loader();
+ var x1 = loader.contentLoaderInfo;
+
loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, function(e) {
+ trace(e);
+ });
- loader.contentLoaderInfo.addEventListener(Event.COMPLETE, function(e) {
+ loader.contentLoaderInfo.addEventListener(Event.COMPLETE,
function(e) {
// Make sure we actually get a valid class
if (Std.is(x1, LoaderInfo)) {
DejaGnu.pass("LoaderInfo class exists");
- } else {
+ } else {
DejaGnu.fail("LoaderInfo lass 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
@@ -150,6 +155,7 @@
} else {
DejaGnu.fail("LoaderInfo::sharedEvents property doesn't
exist");
}
+
// For older versions (FP<9), the swfVersion returned type int.
However
// for new versions (FP>=9) it returned the class SWFVersion.
This test
// to see which version the swf is.
@@ -193,8 +199,8 @@
// existance of a method, and don't test the functionality at
all. This
// is primarily useful only to test completeness of the API
implementation.
- // FIXME: method doesn't exist (maybe haXe problem)
- /*if
(Type.typeof(LoaderInfo.getLoaderInfoByDefinition)==TFunction) {
+ // FIXME: method doesn't exist (maybe haXe problem)
+ /*if
(Type.typeof(LoaderInfo.getLoaderInfoByDefinition)==TFunction) {
DejaGnu.pass("LoaderInfo::getLoaderInfoByDefinition()
method exists");
} else {
DejaGnu.fail("LoaderInfo::getLoaderInfoByDefinition()
method doesn't exist");
@@ -203,8 +209,9 @@
DejaGnu.done();
});
- // Specify file where .swf resides
- loader.load(new URLRequest("/home/sharad/Desktop/cubes.swf"));
+ // Specify file where .swf resides -- user can simply replace their
username in the
+ // appropriate spot below
+ loader.load(new
URLRequest("/home/user_name/gnash/trunk/testsuite/car_smash.swf"));
#end
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11417: LoaderInfo_as.hx needs valid url to pass test cases; however if url is not valid, then test won't run--but won't result in any failures--a note will pop up in the test case to let the user know of this,
Sharad Desai <=