File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ const otherFeatures = /** @type {const} */([
27
27
/** @type {Record<string, FeatureName[]> } */
28
28
export const platformSupport = {
29
29
apple : [
30
- ... baseFeatures ,
31
- 'webCompat'
30
+ 'webCompat' ,
31
+ ... baseFeatures
32
32
] ,
33
33
'apple-isolated' : [
34
34
'duckPlayer'
Original file line number Diff line number Diff line change
1
+ import { platformSupport } from '../src/features.js'
2
+
3
+ describe ( 'Features definition' , ( ) => {
4
+ it ( 'calls `webCompat` before `fingerPrintingScreenSize` https://app.asana.com/0/1177771139624306/1204944717262422/f' , ( ) => {
5
+ // ensuring this order doesn't change, as it recently caused breakage
6
+ expect ( platformSupport . apple ) . toEqual ( [
7
+ 'webCompat' ,
8
+ 'runtimeChecks' ,
9
+ 'fingerprintingAudio' ,
10
+ 'fingerprintingBattery' ,
11
+ 'fingerprintingCanvas' ,
12
+ 'cookie' ,
13
+ 'googleRejected' ,
14
+ 'gpc' ,
15
+ 'fingerprintingHardware' ,
16
+ 'referrer' ,
17
+ 'fingerprintingScreenSize' ,
18
+ 'fingerprintingTemporaryStorage' ,
19
+ 'navigatorInterface' ,
20
+ 'elementHiding' ,
21
+ 'exceptionHandler'
22
+ ] )
23
+ } )
24
+ } )
You can’t perform that action at this time.
0 commit comments