mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Change image.android to use the new image.Cache class from widgets. (#2832)
* Change image.android to use the new image.Cahce class from widgets. * fix npm scripts * npm tsc will compile all so no need for npm run dev-tsc-tests * fix tslint error * image-tests use memory only cache. * fix exception in image.android * Change image-tests so that Image won't be GC immediately. * Change cacheMode to enum
This commit is contained in:
@@ -756,7 +756,7 @@ export function test_border_color() {
|
||||
let blue = new color.Color("blue");
|
||||
let hex = blue.hex;
|
||||
testView.style.borderColor = hex;
|
||||
TKUnit.assertEqual(testView.style.borderColor, blue, "all");
|
||||
TKUnit.assertEqual((<any>testView.style.borderColor), blue, "all");
|
||||
TKUnit.assertEqual(testView.style.borderTopColor, blue, "top");
|
||||
TKUnit.assertEqual(testView.style.borderRightColor, blue, "right");
|
||||
TKUnit.assertEqual(testView.style.borderBottomColor, blue, "bottom");
|
||||
@@ -774,7 +774,7 @@ export function test_border_width() {
|
||||
TKUnit.assertEqual(testView.style.borderLeftWidth, 10, "left");
|
||||
|
||||
testView.style.borderWidth = "20";
|
||||
TKUnit.assertEqual(testView.style.borderWidth, 20, "all");
|
||||
TKUnit.assertEqual((<any>testView.style.borderWidth), 20, "all");
|
||||
TKUnit.assertEqual(testView.style.borderTopWidth, 20, "top");
|
||||
TKUnit.assertEqual(testView.style.borderRightWidth, 20, "right");
|
||||
TKUnit.assertEqual(testView.style.borderBottomWidth, 20, "bottom");
|
||||
@@ -792,7 +792,7 @@ export function test_border_radius() {
|
||||
TKUnit.assertEqual(testView.style.borderBottomLeftRadius, 10, "left");
|
||||
|
||||
testView.style.borderRadius = "20";
|
||||
TKUnit.assertEqual(testView.style.borderRadius, 20, "all");
|
||||
TKUnit.assertEqual((<any>testView.style.borderRadius), 20, "all");
|
||||
TKUnit.assertEqual(testView.style.borderTopLeftRadius, 20, "top");
|
||||
TKUnit.assertEqual(testView.style.borderTopRightRadius, 20, "right");
|
||||
TKUnit.assertEqual(testView.style.borderBottomRightRadius, 20, "bottom");
|
||||
|
||||
Reference in New Issue
Block a user