チェンジセット 985: as3/Syndication/trunk/tests
- コミット日時:
- 2008/08/20 02:25:42 (4 年前)
- ファイル:
-
- as3/Syndication/trunk (更新) (1 prop)
- as3/Syndication/trunk/tests (更新) (1 prop)
- as3/Syndication/trunk/tests/org/libspark/syndication/AllTests.as (更新) (2 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/AtomFeedEntryTests.as (更新) (9 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/AtomFeedTests.as (更新) (6 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/FeedTests.as (更新) (1 diff)
- as3/Syndication/trunk/tests/org/libspark/syndication/RSS2FeedEntryTests.as (更新) (15 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/RSS2FeedTests.as (更新) (6 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/RSSFeedEntryTests.as (更新) (9 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/RSSFeedTests.as (更新) (6 diffs)
- as3/Syndication/trunk/tests/org/libspark/syndication/utils/DateUtilTests.as (追加)
- as3/Syndication/trunk/tests/org/libspark/syndication/utils/UtilsAllTests.as (追加)
凡例:
- 変更無し
- 追加
- 削除
- 更新
- コピー
- 移動
as3/Syndication/trunk
- 属性の設定値: svn:ignore (変更前)
(変更後)
log.txt
.DS_Store
- 属性の設定値: svn:ignore (変更前)
as3/Syndication/trunk/tests
- 属性の設定値: svn:ignore (変更前)
log.txt
.DS_Store
*.swf
(変更後)
.DS_Store
*.swf
- 属性の設定値: svn:ignore (変更前)
as3/Syndication/trunk/tests/org/libspark/syndication/AllTests.as
r966 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { 3 13 import org.libspark.as3unit.runners.Suite; 14 import org.libspark.syndication.utils.UtilsAllTests; 4 15 5 16 /** … … 17 28 RSS2FeedTests, 18 29 RSS2FeedEntryTests, 30 31 UtilsAllTests, 19 32 ]; 20 33 } 21 34 } 35 as3/Syndication/trunk/tests/org/libspark/syndication/AtomFeedEntryTests.as
r952 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.IFeedEntry;13 import org.libspark.syndication.AtomFeed;14 import org.libspark.syndication.AtomFeedEntry;15 16 21 use namespace after; 17 22 use namespace before; … … 19 24 20 25 /** 21 * 26 * AtomFeedEntry のテストクラス 22 27 */ 23 28 public class AtomFeedEntryTests 24 29 { 25 30 /** 26 * check author.31 * 著者が正しく取得出来るか 27 32 */ 28 33 test function author():void … … 41 46 42 47 /** 43 * check title.48 * タイトルが正しく取得出来るか 44 49 */ 45 50 test function title():void … … 58 63 59 64 /** 60 * check link.65 * パーマリンクが正しく取得出来るか 61 66 */ 62 67 test function link():void … … 75 80 76 81 /** 77 * check description.82 * 詳細が正しく取得出来るか 78 83 */ 79 84 test function description():void … … 93 98 94 99 /** 95 * check published.100 * 公開日が正しく取得出来るか 96 101 */ 97 102 test function published():void … … 111 116 112 117 /** 113 * check categories.118 * カテゴリーが正しく取得出来るか 114 119 */ 115 120 test function categories():void … … 129 134 } 130 135 } 136 as3/Syndication/trunk/tests/org/libspark/syndication/AtomFeedTests.as
r952 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.AtomFeed;13 import org.libspark.syndication.AtomFeedEntry;14 15 21 use namespace after; 16 22 use namespace before; … … 18 24 19 25 /** 20 * AtomFeed 's test class.26 * AtomFeed のテストクラス 21 27 */ 22 28 public class AtomFeedTests 23 29 { 24 30 /** 25 * check title.31 * タイトルが正しく取得出来るか 26 32 */ 27 33 test function title():void … … 39 45 40 46 /** 41 * check link.47 * リンクが正しく取得出来るか 42 48 */ 43 49 test function link():void … … 55 61 56 62 /** 57 * check entries.63 * エントリーが正しく取得出来るか 58 64 */ 59 65 test function entries():void … … 75 81 } 76 82 } 83 as3/Syndication/trunk/tests/org/libspark/syndication/FeedTests.as
r966 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { 13 import flash.errors.IllegalOperationError; 3 14 import org.libspark.as3unit.after; 4 15 import org.libspark.as3unit.before; 5 16 import org.libspark.as3unit.test; 17 import org.libspark.as3unit.test_expected; 6 18 import org.libspark.as3unit.assert.*; 7 8 import org.libspark.syndication. Feed;19 20 import org.libspark.syndication.errors.UnknownFeedError; 9 21 10 22 use namespace after; 11 23 use namespace before; 12 24 use namespace test; 13 25 use namespace test_expected; 26 27 /** 28 * Feed のテストクラス 29 */ 14 30 public class FeedTests 15 31 { 16 test function title():void 32 /** 33 * nullを解析させた場合に IllegalOperationError がスローされるか 34 */ 35 test_expected static const parseNull:Class = IllegalOperationError; 36 test function parseNull():void 17 37 { 18 38 Feed.parse(null); 19 39 } 20 40 21 test function link():void 41 /** 42 * 定義されていないXMLを解析させた場合に UnknownFeedError がスローされるか 43 */ 44 test_expected static const parseInvalid:Class = UnknownFeedError; 45 test function parseInvalid():void 22 46 { 47 var invalid:XML = <spam><egg>Ni!</egg></spam>; 23 48 24 } 25 26 test function entries():void 27 { 28 29 } 30 31 test function parse():void 32 { 33 49 Feed.parse(invalid); 34 50 } 35 51 } 36 52 } 53 as3/Syndication/trunk/tests/org/libspark/syndication/RSS2FeedEntryTests.as
r952 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.IFeedEntry;13 import org.libspark.syndication.RSS2Feed;14 import org.libspark.syndication.RSS2FeedEntry;15 16 21 use namespace after; 17 22 use namespace before; … … 19 24 20 25 /** 21 * 26 * RSS2FeedEntry のテストクラス 22 27 */ 23 28 public class RSS2FeedEntryTests 24 29 { 25 public static const FeedClass:Class = RSS2Feed;26 public static const FeedEntryClass:Class = RSS2FeedEntry;27 28 30 /** 29 * check author. (not required)31 * 著者が正しく取得出来るか 30 32 */ 31 33 test function author():void … … 35 37 { 36 38 var result:XML = XML(evt.target.data); 37 var feed:IFeed = new FeedClass(result);39 var feed:IFeed = new RSS2Feed(result); 38 40 var entry:IFeedEntry = feed.entries[0]; 39 41 // not required element... 40 42 assertEquals(entry.author, ''); 41 43 … … 44 46 45 47 /** 46 * check title.48 * タイトルが正しく取得出来るか 47 49 */ 48 50 test function title():void … … 52 54 { 53 55 var result:XML = XML(evt.target.data); 54 var feed:IFeed = new FeedClass(result);56 var feed:IFeed = new RSS2Feed(result); 55 57 var entry:IFeedEntry = feed.entries[0]; 56 58 … … 61 63 62 64 /** 63 * check link.65 * パーマリンクが正しく取得出来るか 64 66 */ 65 67 test function link():void … … 69 71 { 70 72 var result:XML = XML(evt.target.data); 71 var feed:IFeed = new FeedClass(result);73 var feed:IFeed = new RSS2Feed(result); 72 74 var entry:IFeedEntry = feed.entries[0]; 73 75 … … 78 80 79 81 /** 80 * check description.82 * 詳細が正しく取得出来るか 81 83 */ 82 84 test function description():void … … 86 88 { 87 89 var result:XML = XML(evt.target.data); 88 var feed:IFeed = new FeedClass(result);90 var feed:IFeed = new RSS2Feed(result); 89 91 var entry:IFeedEntry = feed.entries[0]; 90 92 … … 96 98 97 99 /** 98 * check published.100 * 公開日が正しく取得出来るか 99 101 */ 100 102 test function published():void … … 104 106 { 105 107 var result:XML = XML(evt.target.data); 106 var feed:IFeed = new FeedClass(result);108 var feed:IFeed = new RSS2Feed(result); 107 109 var entry:IFeedEntry = feed.entries[0]; 108 110 var checked:Date = new Date('Sun Aug 10 21:13:41 GMT+0900 2008'); … … 114 116 115 117 /** 116 * check categories.118 * カテゴリーが正しく取得出来るか 117 119 */ 118 120 test function categories():void … … 122 124 { 123 125 var result:XML = XML(evt.target.data); 124 var feed:IFeed = new FeedClass(result);126 var feed:IFeed = new RSS2Feed(result); 125 127 var entry:IFeedEntry = feed.entries[0]; 126 128 … … 132 134 } 133 135 } 136 as3/Syndication/trunk/tests/org/libspark/syndication/RSS2FeedTests.as
r952 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.RSS2Feed;13 import org.libspark.syndication.RSS2FeedEntry;14 15 21 use namespace after; 16 22 use namespace before; … … 18 24 19 25 /** 20 * RSS2Feed 's test class.26 * RSS2Feed のテストクラス 21 27 */ 22 28 public class RSS2FeedTests 23 29 { 24 30 /** 25 * check title.31 * タイトルが正しく取得出来るか 26 32 */ 27 33 test function title():void … … 39 45 40 46 /** 41 * check link.47 * リンクが正しく取得出来るか 42 48 */ 43 49 test function link():void … … 55 61 56 62 /** 57 * check entries.63 * エントリーが正しく取得出来るか 58 64 */ 59 65 test function entries():void … … 75 81 } 76 82 } 83 as3/Syndication/trunk/tests/org/libspark/syndication/RSSFeedEntryTests.as
r966 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.IFeedEntry;13 import org.libspark.syndication.RSSFeed;14 import org.libspark.syndication.RSSFeedEntry;15 16 21 use namespace after; 17 22 use namespace before; … … 19 24 20 25 /** 21 * 26 * RSSFeedEntry のテストクラス 22 27 */ 23 28 public class RSSFeedEntryTests 24 29 { 25 30 /** 26 * check author.31 * 著者が正しく取得出来るか 27 32 */ 28 33 test function author():void … … 41 46 42 47 /** 43 * check title.48 * タイトルが正しく取得出来るか 44 49 */ 45 50 test function title():void … … 58 63 59 64 /** 60 * check link.65 * パーマリンクが正しく取得出来るか 61 66 */ 62 67 test function link():void … … 75 80 76 81 /** 77 * check description.82 * 詳細が正しく取得出来るか 78 83 */ 79 84 test function description():void … … 95 100 96 101 /** 97 * check published.102 * 公開日が正しく取得出来るか 98 103 */ 99 104 test function published():void … … 113 118 114 119 /** 115 * check categories.120 * カテゴリーが正しく取得出来るか 116 121 */ 117 122 test function categories():void … … 131 136 } 132 137 } 138 as3/Syndication/trunk/tests/org/libspark/syndication/RSSFeedTests.as
r952 r985 1 /** 2 * ActionScript Syndication Library 3 * 4 * Copyright (c) 2008 Takanobu Izukawa (humming.via-kitchen.com) and 5 * Spark project (www.libspark.org) 6 * 7 * Dual licensed under the MIT (MIT-LICENSE.txt) 8 * and GPL (GPL-LICENSE.txt) licenses. 9 * 10 */ 1 11 package org.libspark.syndication 2 12 { … … 9 19 import org.libspark.as3unit.assert.*; 10 20 11 import org.libspark.syndication.IFeed;12 import org.libspark.syndication.RSSFeed;13 import org.libspark.syndication.RSSFeedEntry;14 15 21 use namespace after; 16 22 use namespace before; … … 18 24 19 25 /** 20 * RSSFeed 's test class.26 * RSSFeed のテストクラス 21 27 */ 22 28 public class RSSFeedTests 23 29 { 24 30 /** 25 * check title.31 * タイトルを正しく取得出来るか 26 32 */ 27 33 test function title():void … … 39 45 40 46 /** 41 * check link.47 * リンクを正しく取得出来るか 42 48 */ 43 49 test function link():void … … 55 61 56 62 /** 57 * check entries.63 * エントリーを正しく取得出来るか 58 64 */ 59 65 test function entries():void … … 75 81 } 76 82 } 83

