2017-10-08 21:25:24 +00:00
|
|
|
/// <reference path="TestGame.ts" />
|
|
|
|
|
|
|
|
module TK.SpaceTac.UI.Specs {
|
2017-10-26 21:47:13 +00:00
|
|
|
testing("AssetLoading", test => {
|
2018-05-15 14:57:45 +00:00
|
|
|
let testgame = setupSingleView(test, () => [new AssetLoading({}), []]);
|
2017-10-08 21:25:24 +00:00
|
|
|
|
2017-10-26 21:47:13 +00:00
|
|
|
test.case("builds cache keys from path", check => {
|
|
|
|
check.equals(AssetLoading.getKey("dir/file-path"), "dir-file-path");
|
|
|
|
check.equals(AssetLoading.getKey("dir/file-path.ext"), "dir-file-path");
|
|
|
|
check.equals(AssetLoading.getKey("dir/file-path.mp3"), "dir-file-path");
|
2017-10-08 21:25:24 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
}
|