// DRMErrorEvent_as.hx:  ActionScript 3 "DRMErrorEvent" 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.DRMErrorEvent;
import flash.display.MovieClip;
#else
import flash.DRMErrorEvent;
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 DRMErrorEvent_as {
    static function main() {
        var x1:DRMErrorEvent = new DRMErrorEvent();

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

