mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
ImageSource was reset in CreateUI wrongly. (#2910)
TabView doesn't save/restore its visual hierarchy. Cuteness.io source changed to use https.
This commit is contained in:
@@ -139,6 +139,16 @@ export var test_SettingImageSrcToFileWithinAppAsync = function (done) {
|
||||
runImageTest(done, image, image.src)
|
||||
}
|
||||
|
||||
export function test_imageSourceNotResetAfterCreateUI() {
|
||||
let image = new ImageModule.Image();
|
||||
let imageSource = ImageSourceModule.fromResource("splashscreen.9");
|
||||
image.imageSource = imageSource;
|
||||
helper.buildUIAndRunTest(image, (img, page) => {
|
||||
TKUnit.waitUntilReady(() => image.isLoaded);
|
||||
TKUnit.assertEqual(image.imageSource, imageSource);
|
||||
});
|
||||
}
|
||||
|
||||
export var test_SettingImageSrcToDataURIAsync = function (done) {
|
||||
var image = new ImageModule.Image();
|
||||
image.loadMode = "async";
|
||||
|
||||
Reference in New Issue
Block a user