forked from Samsung/TizenFX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NUI] Support FrameSpeedFactor for AnimatedImage relative classes
Let we make some property to control the speed of animated image. If we want to play animation 2x speed, Set this value as 2.0f. If we want to play animation 0.5x speed, Set this value as 0.5f. Note : For the platform safety reason, let we constraint the input value as 0.01f to 100.0f Relative dali patch : https://review.tizen.org/gerrit/c/platform/core/uifw/dali-toolkit/+/316847 Signed-off-by: Eunki, Hong <[email protected]>
- Loading branch information
Showing
6 changed files
with
165 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -284,5 +284,34 @@ public void URLs_SET_GET_VALUE() | |
|
||
testView.Dispose(); | ||
} | ||
|
||
[Test] | ||
[Category("P1")] | ||
[Description("internal API test in Ubuntu, AnimatedImageView.FrameSpeedFactor")] | ||
[Property("SPEC", "Tizen.NUI.BaseComponents.AnimatedImageView.FrameSpeedFactor")] | ||
[Property("SPEC_URL", "-")] | ||
[Property("CRITERIA", "PRO")] | ||
[Property("AUTHOR", "[email protected]")] | ||
public void FrameSpeedFactor_SET_GET_VALUE() | ||
{ | ||
/* TEST CODE */ | ||
AnimatedImageView testView = new AnimatedImageView(); | ||
|
||
Assert.AreEqual(1.0f, testView.FrameSpeedFactor, "FrameSpeedFactor should be 1.0f when ResourceUrl is not setup"); | ||
|
||
testView.ResourceUrl = animated_image_path; | ||
|
||
Assert.AreEqual(1.0f, testView.FrameSpeedFactor, "FrameSpeedFactor should be 1.0f even ResourceUrl is setup"); | ||
|
||
float expectSpeedFactor = 3.0f; | ||
testView.FrameSpeedFactor = expectSpeedFactor; | ||
Assert.AreEqual(expectSpeedFactor, testView.FrameSpeedFactor, "FrameSpeedFactor doesn't matched!"); | ||
|
||
expectSpeedFactor = 0.5f; | ||
testView.FrameSpeedFactor = expectSpeedFactor; | ||
Assert.AreEqual(expectSpeedFactor, testView.FrameSpeedFactor, "FrameSpeedFactor doesn't matched!"); | ||
|
||
testView.Dispose(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters