mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
Merge pull request #7224 from NativeScript/mdonev/api19-disable-imagecache-test
chore(android): disable test_ImageCache_ValidUrl on api19
This commit is contained in:
@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user