// DRMStatusEvent_as.hx:  ActionScript 3 "DRMStatusEvent" class, for Gnash.
//
// Generated by gen-as3.sh on: 20090515 by "rob". Remove this
// after any hand editing loosing changes.
//
//   Copyright (C) 2009, 2010 Free Software Foundation, Inc.
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
//

// This test case must be processed by CPP before compiling to include the
//  DejaGnu.hx header file for the testing framework support.

#if flash9
import flash.events.DRMStatusEvent;
import flash.display.MovieClip;
#else
import flash.DRMStatusEvent;
import flash.MovieClip;
#end
import flash.Lib;
import Type;

// import our testing API
import DejaGnu;

// Class must be named with the _as suffix, as that's the same name as the file.
class DRMStatusEvent_as {
    static function main() {
        var x1:DRMStatusEvent = new DRMStatusEvent();

        // Make sure we actually get a valid class        
        if (x1 != null) {
            DejaGnu.pass("DRMStatusEvent class exists");
        } else {
            DejaGnu.fail("DRMStatusEvent 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 (x1.detail == null) {
	    DejaGnu.pass("DRMStatusEvent.detail property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.detail property doesn't exist");
	}
	if (x1.isAnonymous == false) {
	    DejaGnu.pass("DRMStatusEvent.isAnonymous property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.isAnonymous property doesn't exist");
	}
	if (x1.isAvailableOffline == false) {
	    DejaGnu.pass("DRMStatusEvent.isAvailableOffline property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.isAvailableOffline property doesn't exist");
	}
	if (x1.offlineLeasePeriod == uint) {
	    DejaGnu.pass("DRMStatusEvent.offlineLeasePeriod property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.offlineLeasePeriod property doesn't exist");
	}
	if (x1.policies == Object) {
	    DejaGnu.pass("DRMStatusEvent.policies property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.policies property doesn't exist");
	}
	if (x1.voucherEndDate == Date) {
	    DejaGnu.pass("DRMStatusEvent.voucherEndDate property exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent.voucherEndDate property doesn't exist");
	}

// 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 (x1.DRMStatusEvent == 0) {
	    DejaGnu.pass("DRMStatusEvent::DRMStatusEvent() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::DRMStatusEvent() method doesn't exist");
	}
	if (x1.clone == Event) {
	    DejaGnu.pass("DRMStatusEvent::clone() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::clone() method doesn't exist");
	}
	if (x1.toString == null) {
	    DejaGnu.pass("DRMStatusEvent::toString() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::toString() method doesn't exist");
	}
	if (x1.ACTIVATE == null) {
	    DejaGnu.pass("DRMStatusEvent::ACTIVATE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::ACTIVATE() method doesn't exist");
	}
	if (x1.ADDED == null) {
	    DejaGnu.pass("DRMStatusEvent::ADDED() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::ADDED() method doesn't exist");
	}
	if (x1.ADDED == TO) {
	    DejaGnu.pass("DRMStatusEvent::ADDED() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::ADDED() method doesn't exist");
	}
	if (x1.CANCEL == null) {
	    DejaGnu.pass("DRMStatusEvent::CANCEL() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::CANCEL() method doesn't exist");
	}
	if (x1.CHANGE == null) {
	    DejaGnu.pass("DRMStatusEvent::CHANGE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::CHANGE() method doesn't exist");
	}
	if (x1.CLOSE == null) {
	    DejaGnu.pass("DRMStatusEvent::CLOSE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::CLOSE() method doesn't exist");
	}
	if (x1.CLOSING == null) {
	    DejaGnu.pass("DRMStatusEvent::CLOSING() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::CLOSING() method doesn't exist");
	}
	if (x1.COMPLETE == null) {
	    DejaGnu.pass("DRMStatusEvent::COMPLETE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::COMPLETE() method doesn't exist");
	}
	if (x1.CONNECT == null) {
	    DejaGnu.pass("DRMStatusEvent::CONNECT() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::CONNECT() method doesn't exist");
	}
	if (x1.DEACTIVATE == null) {
	    DejaGnu.pass("DRMStatusEvent::DEACTIVATE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::DEACTIVATE() method doesn't exist");
	}
	if (x1.DISPLAYING == null) {
	    DejaGnu.pass("DRMStatusEvent::DISPLAYING() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::DISPLAYING() method doesn't exist");
	}
	if (x1.DRM == STATUS) {
	    DejaGnu.pass("DRMStatusEvent::DRM() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::DRM() method doesn't exist");
	}
	if (x1.ENTER == FRAME) {
	    DejaGnu.pass("DRMStatusEvent::ENTER() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::ENTER() method doesn't exist");
	}
	if (x1.EXITING == null) {
	    DejaGnu.pass("DRMStatusEvent::EXITING() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::EXITING() method doesn't exist");
	}
	if (x1.FULLSCREEN == null) {
	    DejaGnu.pass("DRMStatusEvent::FULLSCREEN() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::FULLSCREEN() method doesn't exist");
	}
	if (x1.HTML == BOUNDS) {
	    DejaGnu.pass("DRMStatusEvent::HTML() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::HTML() method doesn't exist");
	}
	if (x1.HTML == DOM) {
	    DejaGnu.pass("DRMStatusEvent::HTML() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::HTML() method doesn't exist");
	}
	if (x1.HTML == RENDER) {
	    DejaGnu.pass("DRMStatusEvent::HTML() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::HTML() method doesn't exist");
	}
	if (x1.ID3 == null) {
	    DejaGnu.pass("DRMStatusEvent::ID3() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::ID3() method doesn't exist");
	}
	if (x1.INIT == null) {
	    DejaGnu.pass("DRMStatusEvent::INIT() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::INIT() method doesn't exist");
	}
	if (x1.LOCATION == CHANGE) {
	    DejaGnu.pass("DRMStatusEvent::LOCATION() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::LOCATION() method doesn't exist");
	}
	if (x1.MOUSE == LEAVE) {
	    DejaGnu.pass("DRMStatusEvent::MOUSE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::MOUSE() method doesn't exist");
	}
	if (x1.NETWORK == CHANGE) {
	    DejaGnu.pass("DRMStatusEvent::NETWORK() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::NETWORK() method doesn't exist");
	}
	if (x1.OPEN == null) {
	    DejaGnu.pass("DRMStatusEvent::OPEN() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::OPEN() method doesn't exist");
	}
	if (x1.REMOVED == null) {
	    DejaGnu.pass("DRMStatusEvent::REMOVED() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::REMOVED() method doesn't exist");
	}
	if (x1.REMOVED == FROM) {
	    DejaGnu.pass("DRMStatusEvent::REMOVED() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::REMOVED() method doesn't exist");
	}
	if (x1.RENDER == null) {
	    DejaGnu.pass("DRMStatusEvent::RENDER() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::RENDER() method doesn't exist");
	}
	if (x1.RESIZE == null) {
	    DejaGnu.pass("DRMStatusEvent::RESIZE() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::RESIZE() method doesn't exist");
	}
	if (x1.SCROLL == null) {
	    DejaGnu.pass("DRMStatusEvent::SCROLL() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::SCROLL() method doesn't exist");
	}
	if (x1.SELECT == null) {
	    DejaGnu.pass("DRMStatusEvent::SELECT() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::SELECT() method doesn't exist");
	}
	if (x1.SOUND == COMPLETE) {
	    DejaGnu.pass("DRMStatusEvent::SOUND() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::SOUND() method doesn't exist");
	}
	if (x1.TAB == CHILDREN) {
	    DejaGnu.pass("DRMStatusEvent::TAB() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::TAB() method doesn't exist");
	}
	if (x1.TAB == ENABLED) {
	    DejaGnu.pass("DRMStatusEvent::TAB() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::TAB() method doesn't exist");
	}
	if (x1.TAB == INDEX) {
	    DejaGnu.pass("DRMStatusEvent::TAB() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::TAB() method doesn't exist");
	}
	if (x1.UNLOAD == null) {
	    DejaGnu.pass("DRMStatusEvent::UNLOAD() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::UNLOAD() method doesn't exist");
	}
	if (x1.USER == IDLE) {
	    DejaGnu.pass("DRMStatusEvent::USER() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::USER() method doesn't exist");
	}
	if (x1.USER == PRESENT) {
	    DejaGnu.pass("DRMStatusEvent::USER() method exists");
	} else {
	    DejaGnu.fail("DRMStatusEvent::USER() method doesn't exist");
	}

        // Call this after finishing all tests. It prints out the totals.
        DejaGnu.done();
    }
}

// local Variables:
// mode: C++
// indent-tabs-mode: t
// End:

