mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Merge branch 'master' into bektchiev/ui-ops-on-main-thread
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
import * as imageCacheModule from "tns-core-modules/ui/image-cache";
|
||||
import * as imageSource from "tns-core-modules/image-source";
|
||||
import * as types from "tns-core-modules/utils/types";
|
||||
import { device } from "tns-core-modules/platform";
|
||||
import lazy from "tns-core-modules/utils/lazy";
|
||||
|
||||
import * as TKUnit from "../../TKUnit";
|
||||
|
||||
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
|
||||
|
||||
export const test_ImageCache_ValidUrl = function() {
|
||||
// see https://github.com/NativeScript/NativeScript/issues/6643
|
||||
if (sdkVersion() < 20) {
|
||||
return;
|
||||
}
|
||||
|
||||
const cache = new imageCacheModule.Cache();
|
||||
cache.maxRequests = 5;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user