Sha256: 83035525825994505ed3975abf28bfb60acbf41608749af18a50185d77448d9d

Contents?: true

Size: 872 Bytes

Versions: 28

Compression:

Stored size: 872 Bytes

Contents

import asunit.framework.TestCase;

class asunit.framework.TestCaseXml extends XML {
	public static var linkageId:String = "asunit.framework.TestCaseXml";
	public static var classRef:Function = TestCaseXml;

	private var source:String;
	private var callback:TestCase;

	public function TestCaseXml(src:String, cb:TestCase) {
		source = src;
		callback = cb;
		ignoreWhite = true;
		if(src != undefined) {
			load(source);
		}
	}

	public function onData(data:String):Void {
		if(data == "" || data == undefined) {
			callback.onXmlFailure(this);
		}
		else {
			super.onData(data);
		}
	}

	public function onLoad(success:Boolean):Void {
		if(success) {
			callback.onXmlLoaded(this.firstChild);
		} else {
			callback.onXmlFailure(this);
		}
	}

	public static var serializable:Boolean = Object.registerClass(linkageId, classRef);
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
asproject-0.1.27 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.30 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.29 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.28 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.31 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.21 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.37 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.32 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.34 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.33 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.35 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.36 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.43 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.40 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.44 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.42 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.41 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.38 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.60 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as
asproject-0.1.68 templates/asproject/asunit25/project/lib/asunit/asunit/framework/TestCaseXml.as