@flighthq/host-web 0.4.0-next.1903.50bfa67 → 0.4.0-next.1908.751021c
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/webDevice.d.ts +0 -2
- package/dist/webDevice.d.ts.map +1 -1
- package/dist/webDevice.js +1 -2
- package/dist/webDevice.js.map +1 -1
- package/package.json +30 -30
- package/src/enableHostWeb.test.ts +12 -0
- package/src/webAccessibility.test.ts +22 -0
- package/src/webApp.test.ts +22 -0
- package/src/webClipboard.test.ts +22 -0
- package/src/webConnectivity.test.ts +22 -0
- package/src/webDevice.test.ts +22 -0
- package/src/webDialog.test.ts +22 -0
- package/src/webFilesystem.test.ts +22 -0
- package/src/webGeolocation.test.ts +22 -0
- package/src/webHaptics.test.ts +22 -0
- package/src/webImage.test.ts +22 -0
- package/src/webKeyboard.test.ts +22 -0
- package/src/webLifecycle.test.ts +22 -0
- package/src/webMediasession.test.ts +22 -0
- package/src/webMenu.test.ts +22 -0
- package/src/webNotification.test.ts +22 -0
- package/src/webPermissions.test.ts +22 -0
- package/src/webPlatform.test.ts +22 -0
- package/src/webPower.test.ts +22 -0
- package/src/webProtocol.test.ts +22 -0
- package/src/webScreen.test.ts +22 -0
- package/src/webSensors.test.ts +22 -0
- package/src/webShare.test.ts +22 -0
- package/src/webShell.test.ts +22 -0
- package/src/webStatusbar.test.ts +22 -0
- package/src/webStorage.test.ts +22 -0
- package/src/webWebcam.test.ts +22 -0
- package/src/webWindow.test.ts +22 -0
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { enableHostWebApp } from './webApp';
|
|
|
4
4
|
export { enableHostWebClipboard } from './webClipboard';
|
|
5
5
|
export { enableHostWebConnectivity } from './webConnectivity';
|
|
6
6
|
export { createWebCursorBackend } from './webCursor';
|
|
7
|
-
export { enableHostWebDevice
|
|
7
|
+
export { enableHostWebDevice } from './webDevice';
|
|
8
8
|
export { enableHostWebDialog } from './webDialog';
|
|
9
9
|
export { enableHostWebFileSystem } from './webFilesystem';
|
|
10
10
|
export { enableHostWebGeolocation } from './webGeolocation';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ export { enableHostWebApp } from './webApp';
|
|
|
4
4
|
export { enableHostWebClipboard } from './webClipboard';
|
|
5
5
|
export { enableHostWebConnectivity } from './webConnectivity';
|
|
6
6
|
export { createWebCursorBackend } from './webCursor';
|
|
7
|
-
export { enableHostWebDevice
|
|
7
|
+
export { enableHostWebDevice } from './webDevice';
|
|
8
8
|
export { enableHostWebDialog } from './webDialog';
|
|
9
9
|
export { enableHostWebFileSystem } from './webFilesystem';
|
|
10
10
|
export { enableHostWebGeolocation } from './webGeolocation';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,uBAAuB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,yBAAyB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/webDevice.d.ts
CHANGED
package/dist/webDevice.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webDevice.d.ts","sourceRoot":"","sources":["../src/webDevice.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"webDevice.d.ts","sourceRoot":"","sources":["../src/webDevice.ts"],"names":[],"mappings":"AAEA,wBAAgB,mBAAmB,IAAI,IAAI,CAI1C;AAED,wBAAgB,yBAAyB,IAAI,IAAI,CAEhD"}
|
package/dist/webDevice.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { createWebDeviceBackend,
|
|
2
|
-
export { enableWebSafeAreaInsets };
|
|
1
|
+
import { createWebDeviceBackend, installDeviceHostBackend } from '@flighthq/device/contract';
|
|
3
2
|
export function enableHostWebDevice() {
|
|
4
3
|
if (_enabled)
|
|
5
4
|
return;
|
package/dist/webDevice.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webDevice.js","sourceRoot":"","sources":["../src/webDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,
|
|
1
|
+
{"version":3,"file":"webDevice.js","sourceRoot":"","sources":["../src/webDevice.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AAE7F,MAAM,UAAU,mBAAmB;IACjC,IAAI,QAAQ;QAAE,OAAO;IACrB,QAAQ,GAAG,IAAI,CAAC;IAChB,wBAAwB,CAAC,sBAAsB,EAAE,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,yBAAyB;IACvC,QAAQ,GAAG,KAAK,CAAC;AACnB,CAAC;AAED,IAAI,QAAQ,GAAG,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flighthq/host-web",
|
|
3
|
-
"version": "0.4.0-next.
|
|
3
|
+
"version": "0.4.0-next.1908.751021c",
|
|
4
4
|
"author": "Joshua Granick and other contributors",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -38,35 +38,35 @@
|
|
|
38
38
|
"clean:dist": "tsx ../../scripts/clean-package-dist.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@flighthq/accessibility": "0.4.0-next.
|
|
42
|
-
"@flighthq/app": "0.4.0-next.
|
|
43
|
-
"@flighthq/application": "0.4.0-next.
|
|
44
|
-
"@flighthq/clipboard": "0.4.0-next.
|
|
45
|
-
"@flighthq/connectivity": "0.4.0-next.
|
|
46
|
-
"@flighthq/device": "0.4.0-next.
|
|
47
|
-
"@flighthq/dialog": "0.4.0-next.
|
|
48
|
-
"@flighthq/filesystem": "0.4.0-next.
|
|
49
|
-
"@flighthq/geolocation": "0.4.0-next.
|
|
50
|
-
"@flighthq/glyphatlas": "0.4.0-next.
|
|
51
|
-
"@flighthq/haptics": "0.4.0-next.
|
|
52
|
-
"@flighthq/image": "0.4.0-next.
|
|
53
|
-
"@flighthq/keyboard": "0.4.0-next.
|
|
54
|
-
"@flighthq/lifecycle": "0.4.0-next.
|
|
55
|
-
"@flighthq/mediasession": "0.4.0-next.
|
|
56
|
-
"@flighthq/menu": "0.4.0-next.
|
|
57
|
-
"@flighthq/notification": "0.4.0-next.
|
|
58
|
-
"@flighthq/permissions": "0.4.0-next.
|
|
59
|
-
"@flighthq/platform": "0.4.0-next.
|
|
60
|
-
"@flighthq/power": "0.4.0-next.
|
|
61
|
-
"@flighthq/protocol": "0.4.0-next.
|
|
62
|
-
"@flighthq/screen": "0.4.0-next.
|
|
63
|
-
"@flighthq/sensors": "0.4.0-next.
|
|
64
|
-
"@flighthq/share": "0.4.0-next.
|
|
65
|
-
"@flighthq/shell": "0.4.0-next.
|
|
66
|
-
"@flighthq/statusbar": "0.4.0-next.
|
|
67
|
-
"@flighthq/storage": "0.4.0-next.
|
|
68
|
-
"@flighthq/types": "0.4.0-next.
|
|
69
|
-
"@flighthq/webcam": "0.4.0-next.
|
|
41
|
+
"@flighthq/accessibility": "0.4.0-next.1908.751021c",
|
|
42
|
+
"@flighthq/app": "0.4.0-next.1908.751021c",
|
|
43
|
+
"@flighthq/application": "0.4.0-next.1908.751021c",
|
|
44
|
+
"@flighthq/clipboard": "0.4.0-next.1908.751021c",
|
|
45
|
+
"@flighthq/connectivity": "0.4.0-next.1908.751021c",
|
|
46
|
+
"@flighthq/device": "0.4.0-next.1908.751021c",
|
|
47
|
+
"@flighthq/dialog": "0.4.0-next.1908.751021c",
|
|
48
|
+
"@flighthq/filesystem": "0.4.0-next.1908.751021c",
|
|
49
|
+
"@flighthq/geolocation": "0.4.0-next.1908.751021c",
|
|
50
|
+
"@flighthq/glyphatlas": "0.4.0-next.1908.751021c",
|
|
51
|
+
"@flighthq/haptics": "0.4.0-next.1908.751021c",
|
|
52
|
+
"@flighthq/image": "0.4.0-next.1908.751021c",
|
|
53
|
+
"@flighthq/keyboard": "0.4.0-next.1908.751021c",
|
|
54
|
+
"@flighthq/lifecycle": "0.4.0-next.1908.751021c",
|
|
55
|
+
"@flighthq/mediasession": "0.4.0-next.1908.751021c",
|
|
56
|
+
"@flighthq/menu": "0.4.0-next.1908.751021c",
|
|
57
|
+
"@flighthq/notification": "0.4.0-next.1908.751021c",
|
|
58
|
+
"@flighthq/permissions": "0.4.0-next.1908.751021c",
|
|
59
|
+
"@flighthq/platform": "0.4.0-next.1908.751021c",
|
|
60
|
+
"@flighthq/power": "0.4.0-next.1908.751021c",
|
|
61
|
+
"@flighthq/protocol": "0.4.0-next.1908.751021c",
|
|
62
|
+
"@flighthq/screen": "0.4.0-next.1908.751021c",
|
|
63
|
+
"@flighthq/sensors": "0.4.0-next.1908.751021c",
|
|
64
|
+
"@flighthq/share": "0.4.0-next.1908.751021c",
|
|
65
|
+
"@flighthq/shell": "0.4.0-next.1908.751021c",
|
|
66
|
+
"@flighthq/statusbar": "0.4.0-next.1908.751021c",
|
|
67
|
+
"@flighthq/storage": "0.4.0-next.1908.751021c",
|
|
68
|
+
"@flighthq/types": "0.4.0-next.1908.751021c",
|
|
69
|
+
"@flighthq/webcam": "0.4.0-next.1908.751021c"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"typescript": "^5.3.0"
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { enableHostWeb } from './enableHostWeb';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWeb', () => {
|
|
4
|
+
it('does not throw on first call', () => {
|
|
5
|
+
expect(() => enableHostWeb()).not.toThrow();
|
|
6
|
+
});
|
|
7
|
+
|
|
8
|
+
it('is idempotent', () => {
|
|
9
|
+
enableHostWeb();
|
|
10
|
+
expect(() => enableHostWeb()).not.toThrow();
|
|
11
|
+
});
|
|
12
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebAccessibility, resetHostWebAccessibilityForTest } from './webAccessibility';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebAccessibility', () => {
|
|
4
|
+
afterEach(() => resetHostWebAccessibilityForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebAccessibility()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebAccessibility();
|
|
12
|
+
expect(() => enableHostWebAccessibility()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebAccessibilityForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebAccessibility();
|
|
19
|
+
resetHostWebAccessibilityForTest();
|
|
20
|
+
expect(() => enableHostWebAccessibility()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebApp, resetHostWebAppForTest } from './webApp';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebApp', () => {
|
|
4
|
+
afterEach(() => resetHostWebAppForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebApp()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebApp();
|
|
12
|
+
expect(() => enableHostWebApp()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebAppForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebApp();
|
|
19
|
+
resetHostWebAppForTest();
|
|
20
|
+
expect(() => enableHostWebApp()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebClipboard, resetHostWebClipboardForTest } from './webClipboard';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebClipboard', () => {
|
|
4
|
+
afterEach(() => resetHostWebClipboardForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebClipboard()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebClipboard();
|
|
12
|
+
expect(() => enableHostWebClipboard()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebClipboardForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebClipboard();
|
|
19
|
+
resetHostWebClipboardForTest();
|
|
20
|
+
expect(() => enableHostWebClipboard()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebConnectivity, resetHostWebConnectivityForTest } from './webConnectivity';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebConnectivity', () => {
|
|
4
|
+
afterEach(() => resetHostWebConnectivityForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebConnectivity()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebConnectivity();
|
|
12
|
+
expect(() => enableHostWebConnectivity()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebConnectivityForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebConnectivity();
|
|
19
|
+
resetHostWebConnectivityForTest();
|
|
20
|
+
expect(() => enableHostWebConnectivity()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebDevice, resetHostWebDeviceForTest } from './webDevice';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebDevice', () => {
|
|
4
|
+
afterEach(() => resetHostWebDeviceForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebDevice()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebDevice();
|
|
12
|
+
expect(() => enableHostWebDevice()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebDeviceForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebDevice();
|
|
19
|
+
resetHostWebDeviceForTest();
|
|
20
|
+
expect(() => enableHostWebDevice()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebDialog, resetHostWebDialogForTest } from './webDialog';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebDialog', () => {
|
|
4
|
+
afterEach(() => resetHostWebDialogForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebDialog()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebDialog();
|
|
12
|
+
expect(() => enableHostWebDialog()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebDialogForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebDialog();
|
|
19
|
+
resetHostWebDialogForTest();
|
|
20
|
+
expect(() => enableHostWebDialog()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebFileSystem, resetHostWebFilesystemForTest } from './webFilesystem';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebFileSystem', () => {
|
|
4
|
+
afterEach(() => resetHostWebFilesystemForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebFileSystem()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebFileSystem();
|
|
12
|
+
expect(() => enableHostWebFileSystem()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebFilesystemForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebFileSystem();
|
|
19
|
+
resetHostWebFilesystemForTest();
|
|
20
|
+
expect(() => enableHostWebFileSystem()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebGeolocation, resetHostWebGeolocationForTest } from './webGeolocation';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebGeolocation', () => {
|
|
4
|
+
afterEach(() => resetHostWebGeolocationForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebGeolocation()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebGeolocation();
|
|
12
|
+
expect(() => enableHostWebGeolocation()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebGeolocationForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebGeolocation();
|
|
19
|
+
resetHostWebGeolocationForTest();
|
|
20
|
+
expect(() => enableHostWebGeolocation()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebHaptics, resetHostWebHapticsForTest } from './webHaptics';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebHaptics', () => {
|
|
4
|
+
afterEach(() => resetHostWebHapticsForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebHaptics()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebHaptics();
|
|
12
|
+
expect(() => enableHostWebHaptics()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebHapticsForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebHaptics();
|
|
19
|
+
resetHostWebHapticsForTest();
|
|
20
|
+
expect(() => enableHostWebHaptics()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebImage, resetHostWebImageForTest } from './webImage';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebImage', () => {
|
|
4
|
+
afterEach(() => resetHostWebImageForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebImage()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebImage();
|
|
12
|
+
expect(() => enableHostWebImage()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebImageForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebImage();
|
|
19
|
+
resetHostWebImageForTest();
|
|
20
|
+
expect(() => enableHostWebImage()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebSoftKeyboard, resetHostWebKeyboardForTest } from './webKeyboard';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebSoftKeyboard', () => {
|
|
4
|
+
afterEach(() => resetHostWebKeyboardForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebSoftKeyboard()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebSoftKeyboard();
|
|
12
|
+
expect(() => enableHostWebSoftKeyboard()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebKeyboardForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebSoftKeyboard();
|
|
19
|
+
resetHostWebKeyboardForTest();
|
|
20
|
+
expect(() => enableHostWebSoftKeyboard()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebLifecycle, resetHostWebLifecycleForTest } from './webLifecycle';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebLifecycle', () => {
|
|
4
|
+
afterEach(() => resetHostWebLifecycleForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebLifecycle()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebLifecycle();
|
|
12
|
+
expect(() => enableHostWebLifecycle()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebLifecycleForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebLifecycle();
|
|
19
|
+
resetHostWebLifecycleForTest();
|
|
20
|
+
expect(() => enableHostWebLifecycle()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebMediaSession, resetHostWebMediasessionForTest } from './webMediasession';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebMediaSession', () => {
|
|
4
|
+
afterEach(() => resetHostWebMediasessionForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebMediaSession()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebMediaSession();
|
|
12
|
+
expect(() => enableHostWebMediaSession()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebMediasessionForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebMediaSession();
|
|
19
|
+
resetHostWebMediasessionForTest();
|
|
20
|
+
expect(() => enableHostWebMediaSession()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebMenu, resetHostWebMenuForTest } from './webMenu';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebMenu', () => {
|
|
4
|
+
afterEach(() => resetHostWebMenuForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebMenu()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebMenu();
|
|
12
|
+
expect(() => enableHostWebMenu()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebMenuForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebMenu();
|
|
19
|
+
resetHostWebMenuForTest();
|
|
20
|
+
expect(() => enableHostWebMenu()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebNotification, resetHostWebNotificationForTest } from './webNotification';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebNotification', () => {
|
|
4
|
+
afterEach(() => resetHostWebNotificationForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebNotification()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebNotification();
|
|
12
|
+
expect(() => enableHostWebNotification()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebNotificationForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebNotification();
|
|
19
|
+
resetHostWebNotificationForTest();
|
|
20
|
+
expect(() => enableHostWebNotification()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebPermission, resetHostWebPermissionsForTest } from './webPermissions';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebPermission', () => {
|
|
4
|
+
afterEach(() => resetHostWebPermissionsForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebPermission()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebPermission();
|
|
12
|
+
expect(() => enableHostWebPermission()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebPermissionsForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebPermission();
|
|
19
|
+
resetHostWebPermissionsForTest();
|
|
20
|
+
expect(() => enableHostWebPermission()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebPlatform, resetHostWebPlatformForTest } from './webPlatform';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebPlatform', () => {
|
|
4
|
+
afterEach(() => resetHostWebPlatformForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebPlatform()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebPlatform();
|
|
12
|
+
expect(() => enableHostWebPlatform()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebPlatformForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebPlatform();
|
|
19
|
+
resetHostWebPlatformForTest();
|
|
20
|
+
expect(() => enableHostWebPlatform()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebPower, resetHostWebPowerForTest } from './webPower';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebPower', () => {
|
|
4
|
+
afterEach(() => resetHostWebPowerForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebPower()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebPower();
|
|
12
|
+
expect(() => enableHostWebPower()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebPowerForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebPower();
|
|
19
|
+
resetHostWebPowerForTest();
|
|
20
|
+
expect(() => enableHostWebPower()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebProtocol, resetHostWebProtocolForTest } from './webProtocol';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebProtocol', () => {
|
|
4
|
+
afterEach(() => resetHostWebProtocolForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebProtocol()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebProtocol();
|
|
12
|
+
expect(() => enableHostWebProtocol()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebProtocolForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebProtocol();
|
|
19
|
+
resetHostWebProtocolForTest();
|
|
20
|
+
expect(() => enableHostWebProtocol()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebScreen, resetHostWebScreenForTest } from './webScreen';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebScreen', () => {
|
|
4
|
+
afterEach(() => resetHostWebScreenForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebScreen()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebScreen();
|
|
12
|
+
expect(() => enableHostWebScreen()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebScreenForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebScreen();
|
|
19
|
+
resetHostWebScreenForTest();
|
|
20
|
+
expect(() => enableHostWebScreen()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebSensors, resetHostWebSensorsForTest } from './webSensors';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebSensors', () => {
|
|
4
|
+
afterEach(() => resetHostWebSensorsForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebSensors()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebSensors();
|
|
12
|
+
expect(() => enableHostWebSensors()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebSensorsForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebSensors();
|
|
19
|
+
resetHostWebSensorsForTest();
|
|
20
|
+
expect(() => enableHostWebSensors()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebShare, resetHostWebShareForTest } from './webShare';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebShare', () => {
|
|
4
|
+
afterEach(() => resetHostWebShareForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebShare()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebShare();
|
|
12
|
+
expect(() => enableHostWebShare()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebShareForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebShare();
|
|
19
|
+
resetHostWebShareForTest();
|
|
20
|
+
expect(() => enableHostWebShare()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebShell, resetHostWebShellForTest } from './webShell';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebShell', () => {
|
|
4
|
+
afterEach(() => resetHostWebShellForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebShell()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebShell();
|
|
12
|
+
expect(() => enableHostWebShell()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebShellForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebShell();
|
|
19
|
+
resetHostWebShellForTest();
|
|
20
|
+
expect(() => enableHostWebShell()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebStatusBar, resetHostWebStatusBarForTest } from './webStatusbar';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebStatusBar', () => {
|
|
4
|
+
afterEach(() => resetHostWebStatusBarForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebStatusBar()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebStatusBar();
|
|
12
|
+
expect(() => enableHostWebStatusBar()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebStatusBarForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebStatusBar();
|
|
19
|
+
resetHostWebStatusBarForTest();
|
|
20
|
+
expect(() => enableHostWebStatusBar()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebStorage, resetHostWebStorageForTest } from './webStorage';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebStorage', () => {
|
|
4
|
+
afterEach(() => resetHostWebStorageForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebStorage()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebStorage();
|
|
12
|
+
expect(() => enableHostWebStorage()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebStorageForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebStorage();
|
|
19
|
+
resetHostWebStorageForTest();
|
|
20
|
+
expect(() => enableHostWebStorage()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebWebcam, resetHostWebWebcamForTest } from './webWebcam';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebWebcam', () => {
|
|
4
|
+
afterEach(() => resetHostWebWebcamForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebWebcam()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebWebcam();
|
|
12
|
+
expect(() => enableHostWebWebcam()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebWebcamForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebWebcam();
|
|
19
|
+
resetHostWebWebcamForTest();
|
|
20
|
+
expect(() => enableHostWebWebcam()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { enableHostWebWindow, resetHostWebWindowForTest } from './webWindow';
|
|
2
|
+
|
|
3
|
+
describe('enableHostWebWindow', () => {
|
|
4
|
+
afterEach(() => resetHostWebWindowForTest());
|
|
5
|
+
|
|
6
|
+
it('does not throw on first call', () => {
|
|
7
|
+
expect(() => enableHostWebWindow()).not.toThrow();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
it('is idempotent', () => {
|
|
11
|
+
enableHostWebWindow();
|
|
12
|
+
expect(() => enableHostWebWindow()).not.toThrow();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
describe('resetHostWebWindowForTest', () => {
|
|
17
|
+
it('allows re-enabling after reset', () => {
|
|
18
|
+
enableHostWebWindow();
|
|
19
|
+
resetHostWebWindowForTest();
|
|
20
|
+
expect(() => enableHostWebWindow()).not.toThrow();
|
|
21
|
+
});
|
|
22
|
+
});
|