| Revision 295,
653 bytes
checked in by pablo, 4 years ago
(diff) |
|
MediaSource testing
Use FlexUnit 4 Assert
|
| Line | |
|---|
| 1 | package tests.config { |
|---|
| 2 | import com.longtailvideo.jwplayer.model.Model; |
|---|
| 3 | import com.longtailvideo.jwplayer.model.PlayerConfig; |
|---|
| 4 | |
|---|
| 5 | import org.flexunit.Assert; |
|---|
| 6 | |
|---|
| 7 | public class ConfigObjectTest { |
|---|
| 8 | private var config:PlayerConfig; |
|---|
| 9 | |
|---|
| 10 | [Before] |
|---|
| 11 | public function setup():void { |
|---|
| 12 | config = new PlayerConfig(new Model()); |
|---|
| 13 | } |
|---|
| 14 | |
|---|
| 15 | [Test] |
|---|
| 16 | public function testPlaylistItems():void { |
|---|
| 17 | try { |
|---|
| 18 | var file:String = config.file; |
|---|
| 19 | var desc:String = config.description; |
|---|
| 20 | Assert.assertEquals(file + desc, ""); |
|---|
| 21 | } catch(e:Error) { |
|---|
| 22 | Assert.fail("Accessors failed: " + e.message); |
|---|
| 23 | } |
|---|
| 24 | } |
|---|
| 25 | |
|---|
| 26 | [Test] |
|---|
| 27 | public function testTypes():void { |
|---|
| 28 | |
|---|
| 29 | } |
|---|
| 30 | } |
|---|
| 31 | } |
|---|
Note: See
TracBrowser
for help on using the repository browser.