mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Merge branch 'master' into bektchiev/ui-ops-on-main-thread
This commit is contained in:
@ -19,7 +19,6 @@
|
||||
"devDependencies": {
|
||||
"@types/chai": "~4.1.7",
|
||||
"@types/mocha": "~5.2.5",
|
||||
"@types/node": "~10.12.18",
|
||||
"babel-traverse": "6.26.0",
|
||||
"babel-types": "6.26.0",
|
||||
"babylon": "6.18.0",
|
||||
|
@ -19,14 +19,13 @@
|
||||
"devDependencies": {
|
||||
"@types/chai": "~4.1.7",
|
||||
"@types/mocha": "~5.2.5",
|
||||
"@types/node": "^7.0.5",
|
||||
"mocha": "~5.2.0",
|
||||
"mochawesome": "~3.1.2",
|
||||
"nativescript-dev-appium": "next",
|
||||
"nativescript-dev-typescript": "next",
|
||||
"nativescript-dev-webpack": "next",
|
||||
"tns-platform-declarations": "next",
|
||||
"rimraf": "^2.6.2",
|
||||
"tns-platform-declarations": "next",
|
||||
"typescript": "^3.1.6"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -19,7 +19,6 @@
|
||||
"devDependencies": {
|
||||
"@types/chai": "~4.1.7",
|
||||
"@types/mocha": "~5.2.5",
|
||||
"@types/node": "^7.0.5",
|
||||
"mocha": "~5.2.0",
|
||||
"mochawesome": "~3.1.2",
|
||||
"nativescript-dev-appium": "next",
|
||||
|
@ -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