Merge pull request #7224 from NativeScript/mdonev/api19-disable-imagecache-test

chore(android): disable test_ImageCache_ValidUrl on api19
This commit is contained in:
Svetoslav
2019-05-09 15:19:13 +02:00
committed by GitHub

View File

@ -1,9 +1,19 @@
import * as imageCacheModule from "tns-core-modules/ui/image-cache"; import * as imageCacheModule from "tns-core-modules/ui/image-cache";
import * as imageSource from "tns-core-modules/image-source"; import * as imageSource from "tns-core-modules/image-source";
import * as types from "tns-core-modules/utils/types"; 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"; import * as TKUnit from "../../TKUnit";
const sdkVersion = lazy(() => parseInt(device.sdkVersion));
export const test_ImageCache_ValidUrl = function() { export const test_ImageCache_ValidUrl = function() {
// see https://github.com/NativeScript/NativeScript/issues/6643
if (sdkVersion() < 20) {
return;
}
const cache = new imageCacheModule.Cache(); const cache = new imageCacheModule.Cache();
cache.maxRequests = 5; cache.maxRequests = 5;