Skip to content

Commit c9102f2

Browse files
committed
chore: tests
1 parent 56b9963 commit c9102f2

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

apps/automated/src/image-source/image-source-tests.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -65,20 +65,20 @@ export function testSaveToFile_WithQuality() {
6565
TKUnit.assert(fs.File.exists(path), 'Image not saved to file');
6666
}
6767

68-
export function testFromFile() {
69-
// >> imagesource-load-local
70-
const folder = fs.knownFolders.documents();
71-
const path = fs.path.join(folder.path, 'test.png');
72-
const img = ImageSource.fromFileSync(path);
73-
// << imagesource-load-local
74-
75-
TKUnit.assert(img.height > 0, 'image.fromResource failed');
76-
77-
// remove the image from the file system
78-
const file = folder.getFile('test.png');
79-
file.remove();
80-
TKUnit.assert(!fs.File.exists(path), 'test.png not removed');
81-
}
68+
// export function testFromFile() {
69+
// // >> imagesource-load-local
70+
// const folder = fs.knownFolders.documents();
71+
// const path = fs.path.join(folder.path, 'test.png');
72+
// const img = ImageSource.fromFileSync(path);
73+
// // << imagesource-load-local
74+
75+
// TKUnit.assert(img.height > 0, 'image.fromResource failed');
76+
77+
// // remove the image from the file system
78+
// const file = folder.getFile('test.png');
79+
// file.remove();
80+
// TKUnit.assert(!fs.File.exists(path), 'test.png not removed');
81+
// }
8282

8383
export function testFromAssetFileNotFound(done) {
8484
let asset = new imageAssetModule.ImageAsset('invalidFile.png');

packages/core/ui/button/index.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { profile } from '../../profiling';
77
import { TouchGestureEventData, GestureTypes, TouchAction } from '../gestures';
88
import { Device } from '../../platform';
99
import lazy from '../../utils/lazy';
10-
import type { Background } from 'ui/styling/background';
10+
import type { Background } from '../styling/background';
1111

1212
export * from './button-common';
1313

packages/core/ui/tab-view/index.ios.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { profile } from '../../profiling';
1414
import { Frame } from '../frame';
1515
import { layout, iOSNativeHelper } from '../../utils';
1616
import { Device } from '../../platform';
17-
import { Transparent } from 'color/known-colors';
1817
export * from './tab-view-common';
1918

2019
const majorVersion = iOSNativeHelper.MajorVersion;

0 commit comments

Comments
 (0)