2016-05-10 19:22:25 +00:00
|
|
|
|
2015-02-09 12:32:33 +00:00
|
|
|
|
|
|
|
|
/**
|
2015-02-12 09:47:03 +00:00
|
|
|
* @summary Test for the typage.
|
|
|
|
|
*/
|
|
|
|
|
function testTypage() {
|
|
|
|
|
var applet: HTMLAppletElement = <HTMLAppletElement>document.getElementById('applet');
|
|
|
|
|
var javaApplet: JavaApplet = applet;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @summary Test for the java applet status.
|
2015-02-09 12:32:33 +00:00
|
|
|
*/
|
|
|
|
|
function testStatus() {
|
2015-02-12 09:47:03 +00:00
|
|
|
var applet: JavaApplet = <JavaApplet>document.getElementById('applet');
|
|
|
|
|
var status: number = applet.status;
|
2015-02-09 12:32:33 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @summary Test for the handlers.
|
|
|
|
|
*/
|
|
|
|
|
function testHandlers() {
|
2015-02-12 09:47:03 +00:00
|
|
|
var applet: JavaApplet = <JavaApplet>document.getElementById('applet');
|
|
|
|
|
|
2015-02-09 12:32:33 +00:00
|
|
|
var handler: Function = () => {};
|
2015-02-12 09:47:03 +00:00
|
|
|
applet.onError = handler;
|
|
|
|
|
applet.onLoad = handler;
|
|
|
|
|
applet.onStop = handler;
|
2020-05-15 02:20:31 +00:00
|
|
|
}
|