- put example fluint test
git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1221 af16638f-c34d-0410-8cfa-b39d5352b314
This commit is contained in:
parent
7f09116ac1
commit
5f6f3ac715
@ -4,6 +4,7 @@
|
||||
<compilerSourcePath>
|
||||
<compilerSourcePathEntry kind="1" linkType="1" path="tests/integration"/>
|
||||
<compilerSourcePathEntry kind="1" linkType="1" path="tests/unit"/>
|
||||
<compilerSourcePathEntry kind="1" linkType="1" path="tests/suite"/>
|
||||
</compilerSourcePath>
|
||||
<libraryPath defaultLinkType="1">
|
||||
<libraryPathEntry kind="4" path="">
|
||||
@ -11,8 +12,8 @@
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" sourcepath="${PROJECT_FRAMEWORKS}/source" useDefaultLinkType="true"/>
|
||||
</modifiedEntries>
|
||||
<excludedEntries>
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation.swc" useDefaultLinkType="false"/>
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_agent.swc" useDefaultLinkType="false"/>
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/qtp.swc" useDefaultLinkType="false"/>
|
||||
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/automation_dmv.swc" useDefaultLinkType="false"/>
|
||||
</excludedEntries>
|
||||
@ -25,6 +26,7 @@
|
||||
</sourceAttachmentPath>
|
||||
</compiler>
|
||||
<applications>
|
||||
<application path="FlexTestRunner.mxml"/>
|
||||
<application path="src/main.mxml"/>
|
||||
<application path="MessagingUnitTests.mxml"/>
|
||||
<application path="PresentationUnitTest.mxml"/>
|
||||
|
BIN
bigbluebutton-client/libs/fluint-1.1.0.swc
Normal file
BIN
bigbluebutton-client/libs/fluint-1.1.0.swc
Normal file
Binary file not shown.
@ -7,6 +7,7 @@
|
||||
import org.bigbluebutton.modules.listeners.ListenersTests;
|
||||
import org.bigbluebutton.main.ModulesProxyTests;
|
||||
import org.bigbluebutton.main.BbbModuleManagerTests;
|
||||
import org.bigbluebutton.common.RouterTest;
|
||||
|
||||
import flexunit.framework.TestSuite;
|
||||
private function onCreationComplete():void{
|
||||
@ -20,6 +21,7 @@
|
||||
|
||||
// TODO: Add more tests here to test more classes
|
||||
// by calling addTest as often as necessary
|
||||
ts.addTest( RouterTest.suite() );
|
||||
ts.addTest( BbbModuleManagerTests.suite() );
|
||||
ts.addTest( ModulesProxyTests.suite() );
|
||||
ts.addTest( ListenersTests.suite() );
|
||||
|
28
bigbluebutton-client/src/FlexTestRunner.mxml
Normal file
28
bigbluebutton-client/src/FlexTestRunner.mxml
Normal file
@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<mx:Application
|
||||
xmlns:mx="http://www.adobe.com/2006/mxml"
|
||||
xmlns:fluint="http://www.digitalprimates.net/2008/fluint"
|
||||
layout="absolute"
|
||||
creationComplete="startTestProcess(event)"
|
||||
width="100%" height="100%">
|
||||
|
||||
<mx:Script>
|
||||
<![CDATA[
|
||||
import net.digitalprimates.fluint.unitTests.frameworkSuite.FrameworkSuite;
|
||||
import org.bigbluebutton.suites.SampleSuite;
|
||||
|
||||
protected function startTestProcess( event:Event ) : void
|
||||
{
|
||||
var suiteArray:Array = new Array();
|
||||
suiteArray.push( new FrameworkSuite() );
|
||||
suiteArray.push(new SampleSuite());
|
||||
|
||||
testRunner.startTests( suiteArray );
|
||||
}
|
||||
|
||||
]]>
|
||||
</mx:Script>
|
||||
|
||||
<fluint:TestResultDisplay width="100%" height="100%" />
|
||||
<fluint:TestRunner id="testRunner"/>
|
||||
</mx:Application>
|
@ -0,0 +1,12 @@
|
||||
package org.bigbluebutton.suites
|
||||
{
|
||||
import org.bigbluebutton.common.TestCase1;
|
||||
import net.digitalprimates.fluint.tests.TestSuite;
|
||||
|
||||
public class SampleSuite extends TestSuite
|
||||
{
|
||||
public function SampleSuite() {
|
||||
addTestCase( new TestCase1() );
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package org.bigbluebutton.common
|
||||
{
|
||||
import net.digitalprimates.fluint.tests.TestCase
|
||||
|
||||
public class TestCase1 extends TestCase
|
||||
{
|
||||
public function testMath():void {
|
||||
var x:int = 5 + 3;
|
||||
assertEquals( 8, x );
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user