protected void cmdTestClear_Click ( object sender, EventArgs e )
	{
		string result = string.Empty;
		Tracer tracer = new Tracer ();

		ScriptHelper scriptHelper = new ScriptHelper ();

		result += "测试方法 ScriptHelper.Clear(string)<br />";

		scriptHelper.Confirm ( "'有名字?'", "n" );
		scriptHelper.Alert ( "'一句话'" );

		tracer.Execute ( scriptHelper, null, "Clear", FunctionType.Method, null, null, null, null,
			new object[][] {
				new object[] { }
			},
			false
			);

		result += "scriptHelper.Code = " + scriptHelper.Code + "<br />";

		this.lblResult.Text = result;

		scriptHelper.Build ( this );
	}
	protected void cmdTestAppendScript_Click ( object sender, EventArgs e )
	{
		string result = string.Empty;
		Tracer tracer = new Tracer ();

		ScriptHelper scriptHelper = new ScriptHelper ();

		result += "测试方法 ScriptHelper.AppendScript(string)<br />";

		scriptHelper.Confirm ( "'有名字?'", "n" );

		tracer.Execute ( scriptHelper, null, "AppendScript", FunctionType.Method, new Type[] { typeof ( string ) }, null, null, null,
			new object[][] {
				new object[] { "if(n){n = '有名字';}else{n = '没有名字';}" }
			},
			false
			);

		scriptHelper.Alert ( "'名字? ' + n" );

		result += "scriptHelper.Code = " + scriptHelper.Code + "<br />";

		this.lblResult.Text = result;

		scriptHelper.Build ( this );
	}