@tamagui/react-native-web-lite 1.113.0 → 1.113.2
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/esm/AccessibilityInfo/index.native.js +62 -58
- package/dist/esm/AccessibilityInfo/index.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js +55 -85
- package/dist/esm/ActivityIndicator/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ActivityIndicator/index.native.js +90 -82
- package/dist/esm/ActivityIndicator/index.native.js.map +6 -1
- package/dist/esm/Alert/index.native.js +18 -14
- package/dist/esm/Alert/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/AppContainer.native.js +26 -30
- package/dist/esm/AppRegistry/AppContainer.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.native.js +13 -13
- package/dist/esm/AppRegistry/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js +34 -45
- package/dist/esm/AppRegistry/__tests__/index-test.node.native.js.map +6 -1
- package/dist/esm/AppRegistry/index.native.js +55 -50
- package/dist/esm/AppRegistry/index.native.js.map +6 -1
- package/dist/esm/AppRegistry/renderApplication.native.js +27 -33
- package/dist/esm/AppRegistry/renderApplication.native.js.map +6 -1
- package/dist/esm/AppState/__tests__/index-test.native.js +10 -9
- package/dist/esm/AppState/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/AppState/index.native.js +51 -45
- package/dist/esm/AppState/index.native.js.map +6 -1
- package/dist/esm/Appearance/index.native.js +24 -27
- package/dist/esm/Appearance/index.native.js.map +6 -1
- package/dist/esm/BackHandler/index.native.js +13 -11
- package/dist/esm/BackHandler/index.native.js.map +6 -1
- package/dist/esm/Clipboard/index.native.js +26 -21
- package/dist/esm/Clipboard/index.native.js.map +6 -1
- package/dist/esm/DeviceEmitter.native.js +5 -3
- package/dist/esm/DeviceEmitter.native.js.map +6 -1
- package/dist/esm/DeviceInfo/index.native.js +33 -41
- package/dist/esm/DeviceInfo/index.native.js.map +6 -1
- package/dist/esm/Dimensions/__tests__/index-test.native.js +8 -9
- package/dist/esm/Dimensions/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Dimensions/index.native.js +53 -49
- package/dist/esm/Dimensions/index.native.js.map +6 -1
- package/dist/esm/I18nManager/index.native.js +13 -10
- package/dist/esm/I18nManager/index.native.js.map +6 -1
- package/dist/esm/Image/index.native.js +149 -174
- package/dist/esm/Image/index.native.js.map +6 -1
- package/dist/esm/Image/types.native.js +1 -2
- package/dist/esm/Image/types.native.js.map +6 -1
- package/dist/esm/ImageBackground/__tests__/index-test.native.js +19 -27
- package/dist/esm/ImageBackground/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/ImageBackground/index.native.js +33 -35
- package/dist/esm/ImageBackground/index.native.js.map +6 -1
- package/dist/esm/Keyboard/index.native.js +17 -13
- package/dist/esm/Keyboard/index.native.js.map +6 -1
- package/dist/esm/KeyboardAvoidingView/index.native.js +44 -34
- package/dist/esm/KeyboardAvoidingView/index.native.js.map +6 -1
- package/dist/esm/Linking/__tests__/index-test.native.js +9 -9
- package/dist/esm/Linking/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/Linking/index.native.js +49 -42
- package/dist/esm/Linking/index.native.js.map +6 -1
- package/dist/esm/LogBox/index.native.js +12 -7
- package/dist/esm/LogBox/index.native.js.map +6 -1
- package/dist/esm/Modal/ModalAnimation.native.js +112 -89
- package/dist/esm/Modal/ModalAnimation.native.js.map +6 -1
- package/dist/esm/Modal/ModalContent.native.js +54 -52
- package/dist/esm/Modal/ModalContent.native.js.map +6 -1
- package/dist/esm/Modal/ModalFocusTrap.native.js +52 -49
- package/dist/esm/Modal/ModalFocusTrap.native.js.map +6 -1
- package/dist/esm/Modal/ModalPortal.native.js +11 -9
- package/dist/esm/Modal/ModalPortal.native.js.map +6 -1
- package/dist/esm/Modal/index.native.js +45 -53
- package/dist/esm/Modal/index.native.js.map +6 -1
- package/dist/esm/NativeModules/index.native.js +6 -5
- package/dist/esm/NativeModules/index.native.js.map +6 -1
- package/dist/esm/PanResponder/Alternative.js +122 -157
- package/dist/esm/PanResponder/Alternative.js.map +6 -1
- package/dist/esm/PanResponder/index.native.js +5 -3
- package/dist/esm/PanResponder/index.native.js.map +6 -1
- package/dist/esm/PixelRatio/index.native.js +59 -48
- package/dist/esm/PixelRatio/index.native.js.map +6 -1
- package/dist/esm/Pressable/index.native.js +67 -70
- package/dist/esm/Pressable/index.native.js.map +6 -1
- package/dist/esm/RefreshControl/index.native.js +6 -4
- package/dist/esm/RefreshControl/index.native.js.map +6 -1
- package/dist/esm/SafeAreaView/index.native.js +21 -24
- package/dist/esm/SafeAreaView/index.native.js.map +6 -1
- package/dist/esm/ScrollView/ScrollViewBase.native.js +50 -61
- package/dist/esm/ScrollView/ScrollViewBase.native.js.map +6 -1
- package/dist/esm/ScrollView/index.native.js +211 -183
- package/dist/esm/ScrollView/index.native.js.map +6 -1
- package/dist/esm/Share/index.native.js +36 -29
- package/dist/esm/Share/index.native.js.map +6 -1
- package/dist/esm/StatusBar/index.native.js +6 -3
- package/dist/esm/StatusBar/index.native.js.map +6 -1
- package/dist/esm/Text/index.native.js +100 -128
- package/dist/esm/Text/index.native.js.map +6 -1
- package/dist/esm/Text/types.native.js +1 -2
- package/dist/esm/Text/types.native.js.map +6 -1
- package/dist/esm/TextInput/__tests__/index-test.native.js +259 -445
- package/dist/esm/TextInput/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/TextInput/index.native.js +157 -220
- package/dist/esm/TextInput/index.native.js.map +6 -1
- package/dist/esm/TextInput/types.native.js +1 -2
- package/dist/esm/TextInput/types.native.js.map +6 -1
- package/dist/esm/TouchableOpacity.native.js +67 -63
- package/dist/esm/TouchableOpacity.native.js.map +6 -1
- package/dist/esm/TouchableWithoutFeedback.native.js +45 -49
- package/dist/esm/TouchableWithoutFeedback.native.js.map +6 -1
- package/dist/esm/UnimplementedView.native.js +30 -22
- package/dist/esm/UnimplementedView.native.js.map +6 -1
- package/dist/esm/Vibration/index.native.js +14 -14
- package/dist/esm/Vibration/index.native.js.map +6 -1
- package/dist/esm/View/index.native.js +55 -84
- package/dist/esm/View/index.native.js.map +6 -1
- package/dist/esm/View/types.native.js +1 -2
- package/dist/esm/View/types.native.js.map +6 -1
- package/dist/esm/createElement/__tests__/index-test.native.js +195 -398
- package/dist/esm/createElement/__tests__/index-test.native.js.map +6 -1
- package/dist/esm/createElement/index.native.js +14 -16
- package/dist/esm/createElement/index.native.js.map +6 -1
- package/dist/esm/createReactDOMStyle.native.js +4 -2
- package/dist/esm/createReactDOMStyle.native.js.map +6 -1
- package/dist/esm/findNodeHandle.native.js +7 -4
- package/dist/esm/findNodeHandle.native.js.map +6 -1
- package/dist/esm/index.native.js +133 -55
- package/dist/esm/index.native.js.map +6 -1
- package/dist/esm/render/index.native.js +9 -4
- package/dist/esm/render/index.native.js.map +6 -1
- package/dist/esm/styleTypes.native.js +1 -2
- package/dist/esm/styleTypes.native.js.map +6 -1
- package/dist/esm/types.native.js +1 -2
- package/dist/esm/types.native.js.map +6 -1
- package/dist/esm/useColorScheme/index.native.js +7 -7
- package/dist/esm/useColorScheme/index.native.js.map +6 -1
- package/dist/esm/useLocaleContext/index.native.js +4 -2
- package/dist/esm/useLocaleContext/index.native.js.map +6 -1
- package/dist/esm/useWindowDimensions/index.native.js +9 -9
- package/dist/esm/useWindowDimensions/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Animated.native.js +17 -16
- package/dist/esm/vendor/react-native/Animated/Animated.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js +99 -72
- package/dist/esm/vendor/react-native/Animated/AnimatedEvent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js +436 -465
- package/dist/esm/vendor/react-native/Animated/AnimatedImplementation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js +91 -97
- package/dist/esm/vendor/react-native/Animated/AnimatedMock.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js +1 -2
- package/dist/esm/vendor/react-native/Animated/AnimatedPlatformConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/Easing.native.js +231 -194
- package/dist/esm/vendor/react-native/Animated/Easing.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js +222 -206
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedHelper.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js +5 -3
- package/dist/esm/vendor/react-native/Animated/NativeAnimatedTurboModule.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js +5 -5
- package/dist/esm/vendor/react-native/Animated/SpringConfig.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js +37 -25
- package/dist/esm/vendor/react-native/Animated/animations/Animation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js +54 -42
- package/dist/esm/vendor/react-native/Animated/animations/DecayAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js +72 -72
- package/dist/esm/vendor/react-native/Animated/animations/SpringAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js +60 -45
- package/dist/esm/vendor/react-native/Animated/animations/TimingAnimation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/bezier.native.js +20 -23
- package/dist/esm/vendor/react-native/Animated/bezier.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedImage.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js +13 -12
- package/dist/esm/vendor/react-native/Animated/components/AnimatedScrollView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedText.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js +6 -4
- package/dist/esm/vendor/react-native/Animated/components/AnimatedView.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js +11 -17
- package/dist/esm/vendor/react-native/Animated/createAnimatedComponent.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedAddition.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js +197 -180
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedColor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js +51 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDiffClamp.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js +57 -42
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedDivision.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js +116 -99
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedInterpolation.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js +50 -37
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedModulo.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedMultiplication.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js +89 -61
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedNode.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js +70 -52
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js +68 -50
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedStyle.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js +55 -39
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedSubtraction.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js +53 -41
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTracking.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js +57 -44
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedTransform.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js +99 -70
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValue.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js +82 -64
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedValueXY.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js +53 -40
- package/dist/esm/vendor/react-native/Animated/nodes/AnimatedWithChildren.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js +58 -50
- package/dist/esm/vendor/react-native/Animated/useAnimatedProps.native.js.map +6 -1
- package/dist/esm/vendor/react-native/FeatureFlags.native.js +10 -8
- package/dist/esm/vendor/react-native/FeatureFlags.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/NativeEventEmitter/RCTDeviceEventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js +55 -46
- package/dist/esm/vendor/react-native/NativeEventEmitter/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/PanResponder/index.native.js +219 -224
- package/dist/esm/vendor/react-native/PanResponder/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js +81 -58
- package/dist/esm/vendor/react-native/TouchHistoryMath/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js +1 -2
- package/dist/esm/vendor/react-native/TurboModule/RCTExport.native.js.map +6 -1
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js +5 -2
- package/dist/esm/vendor/react-native/TurboModule/TurboModuleRegistry.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js +1 -2
- package/dist/esm/vendor/react-native/Types/CoreEventTypes.native.js.map +6 -1
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js +6 -5
- package/dist/esm/vendor/react-native/Utilities/setAndForwardRef.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js +5 -3
- package/dist/esm/vendor/react-native/emitter/EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js +1 -2
- package/dist/esm/vendor/react-native/emitter/EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js +33 -24
- package/dist/esm/vendor/react-native/emitter/_EmitterSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js +51 -41
- package/dist/esm/vendor/react-native/emitter/_EventEmitter.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js +16 -12
- package/dist/esm/vendor/react-native/emitter/_EventSubscription.native.js.map +6 -1
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js +26 -21
- package/dist/esm/vendor/react-native/emitter/_EventSubscriptionVendor.native.js.map +6 -1
- package/dist/esm/vendor/react-native/infoLog/index.native.js +6 -3
- package/dist/esm/vendor/react-native/infoLog/index.native.js.map +6 -1
- package/dist/esm/vendor/react-native/useRefEffect.native.js +8 -4
- package/dist/esm/vendor/react-native/useRefEffect.native.js.map +6 -1
- package/dist/esm/without-animated.native.js +115 -52
- package/dist/esm/without-animated.native.js.map +6 -1
- package/package.json +6 -6
|
@@ -8,678 +8,489 @@ function getAttribute(container, attribute) {
|
|
|
8
8
|
function getProperty(container, prop) {
|
|
9
9
|
return container.firstChild[prop];
|
|
10
10
|
}
|
|
11
|
-
describe("exports/createElement/index.js", function
|
|
12
|
-
test("renders different DOM elements", function
|
|
13
|
-
var {
|
|
14
|
-
|
|
15
|
-
} = render(createElement("span"));
|
|
16
|
-
expect(container.firstChild).toMatchSnapshot(), {
|
|
17
|
-
container
|
|
18
|
-
} = render(createElement("main")), expect(container.firstChild).toMatchSnapshot(), {
|
|
19
|
-
container
|
|
20
|
-
} = render(createElement("svg", {
|
|
11
|
+
describe("exports/createElement/index.js", function() {
|
|
12
|
+
test("renders different DOM elements", function() {
|
|
13
|
+
var { container } = render(createElement("span"));
|
|
14
|
+
expect(container.firstChild).toMatchSnapshot(), { container } = render(createElement("main")), expect(container.firstChild).toMatchSnapshot(), { container } = render(createElement("svg", {
|
|
21
15
|
children: createElement("image", {
|
|
22
16
|
href: "#href"
|
|
23
17
|
})
|
|
24
18
|
})), expect(container.firstChild).toMatchSnapshot();
|
|
25
|
-
}), describe('prop "accessibilityRole"', function
|
|
26
|
-
test("string component type", function
|
|
27
|
-
var {
|
|
28
|
-
container
|
|
29
|
-
} = render(createElement("span", {
|
|
19
|
+
}), describe('prop "accessibilityRole"', function() {
|
|
20
|
+
test("string component type", function() {
|
|
21
|
+
var { container } = render(createElement("span", {
|
|
30
22
|
accessibilityRole: "link"
|
|
31
23
|
}));
|
|
32
24
|
expect(container.firstChild.nodeName).toBe("SPAN");
|
|
33
|
-
}), test("function component type", function
|
|
34
|
-
var Custom = function
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} = render(createElement(Custom, {
|
|
40
|
-
accessibilityRole: "link"
|
|
41
|
-
}));
|
|
25
|
+
}), test("function component type", function() {
|
|
26
|
+
var Custom = function() {
|
|
27
|
+
return /* @__PURE__ */ _jsx("div", {});
|
|
28
|
+
}, { container } = render(createElement(Custom, {
|
|
29
|
+
accessibilityRole: "link"
|
|
30
|
+
}));
|
|
42
31
|
expect(container.firstChild.nodeName).toBe("DIV");
|
|
43
32
|
});
|
|
44
|
-
}), describe("accessibility props", function
|
|
45
|
-
test("accessibilityActiveDescendant", function
|
|
46
|
-
var {
|
|
47
|
-
container: isEmpty
|
|
48
|
-
} = render(createElement("div", {
|
|
33
|
+
}), describe("accessibility props", function() {
|
|
34
|
+
test("accessibilityActiveDescendant", function() {
|
|
35
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
49
36
|
accessibilityActiveDescendant: null
|
|
50
37
|
}));
|
|
51
38
|
expect(getAttribute(isEmpty, "aria-activedescendant")).toBeNull();
|
|
52
|
-
var {
|
|
53
|
-
container: hasValue
|
|
54
|
-
} = render(createElement("div", {
|
|
39
|
+
var { container: hasValue } = render(createElement("div", {
|
|
55
40
|
accessibilityActiveDescendant: "abc"
|
|
56
41
|
}));
|
|
57
42
|
expect(getAttribute(hasValue, "aria-activedescendant")).toBe("abc");
|
|
58
|
-
}), test("accessibilityAtomic", function
|
|
59
|
-
var {
|
|
60
|
-
container: isEmpty
|
|
61
|
-
} = render(createElement("div", {
|
|
43
|
+
}), test("accessibilityAtomic", function() {
|
|
44
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
62
45
|
accessibilityAtomic: null
|
|
63
46
|
}));
|
|
64
47
|
expect(getAttribute(isEmpty, "aria-atomic")).toBeNull();
|
|
65
|
-
var {
|
|
66
|
-
container: hasValue
|
|
67
|
-
} = render(createElement("div", {
|
|
48
|
+
var { container: hasValue } = render(createElement("div", {
|
|
68
49
|
accessibilityAtomic: !0
|
|
69
50
|
}));
|
|
70
51
|
expect(getAttribute(hasValue, "aria-atomic")).toBe("true");
|
|
71
|
-
}), test("accessibilityAutoComplete", function
|
|
72
|
-
var {
|
|
73
|
-
container: isEmpty
|
|
74
|
-
} = render(createElement("div", {
|
|
52
|
+
}), test("accessibilityAutoComplete", function() {
|
|
53
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
75
54
|
accessibilityAutoComplete: null
|
|
76
55
|
}));
|
|
77
56
|
expect(getAttribute(isEmpty, "aria-autocomplete")).toBeNull();
|
|
78
|
-
var {
|
|
79
|
-
container: hasValue
|
|
80
|
-
} = render(createElement("div", {
|
|
57
|
+
var { container: hasValue } = render(createElement("div", {
|
|
81
58
|
accessibilityAutoComplete: !0
|
|
82
59
|
}));
|
|
83
60
|
expect(getAttribute(hasValue, "aria-autocomplete")).toBe("true");
|
|
84
|
-
}), test("accessibilityBusy", function
|
|
85
|
-
var {
|
|
86
|
-
container: isEmpty
|
|
87
|
-
} = render(createElement("div", {
|
|
61
|
+
}), test("accessibilityBusy", function() {
|
|
62
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
88
63
|
accessibilityBusy: null
|
|
89
64
|
}));
|
|
90
65
|
expect(getAttribute(isEmpty, "aria-busy")).toBeNull();
|
|
91
|
-
var {
|
|
92
|
-
container: hasValue
|
|
93
|
-
} = render(createElement("div", {
|
|
66
|
+
var { container: hasValue } = render(createElement("div", {
|
|
94
67
|
accessibilityBusy: !0
|
|
95
68
|
}));
|
|
96
69
|
expect(getAttribute(hasValue, "aria-busy")).toBe("true");
|
|
97
|
-
}), test("accessibilityChecked", function
|
|
98
|
-
var {
|
|
99
|
-
container: isEmpty
|
|
100
|
-
} = render(createElement("div", {
|
|
70
|
+
}), test("accessibilityChecked", function() {
|
|
71
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
101
72
|
accessibilityChecked: null
|
|
102
73
|
}));
|
|
103
74
|
expect(getAttribute(isEmpty, "aria-checked")).toBeNull();
|
|
104
|
-
var {
|
|
105
|
-
container: hasValue
|
|
106
|
-
} = render(createElement("div", {
|
|
75
|
+
var { container: hasValue } = render(createElement("div", {
|
|
107
76
|
accessibilityChecked: !0
|
|
108
77
|
}));
|
|
109
78
|
expect(getAttribute(hasValue, "aria-checked")).toBe("true");
|
|
110
|
-
}), test("accessibilityColumnCount", function
|
|
111
|
-
var {
|
|
112
|
-
container: isEmpty
|
|
113
|
-
} = render(createElement("div", {
|
|
79
|
+
}), test("accessibilityColumnCount", function() {
|
|
80
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
114
81
|
accessibilityColumnCount: null
|
|
115
82
|
}));
|
|
116
83
|
expect(getAttribute(isEmpty, "aria-colcount")).toBeNull();
|
|
117
|
-
var {
|
|
118
|
-
container: hasValue
|
|
119
|
-
} = render(createElement("div", {
|
|
84
|
+
var { container: hasValue } = render(createElement("div", {
|
|
120
85
|
accessibilityColumnCount: 5
|
|
121
86
|
}));
|
|
122
87
|
expect(getAttribute(hasValue, "aria-colcount")).toBe("5");
|
|
123
|
-
}), test("accessibilityColumnIndex", function
|
|
124
|
-
var {
|
|
125
|
-
container: isEmpty
|
|
126
|
-
} = render(createElement("div", {
|
|
88
|
+
}), test("accessibilityColumnIndex", function() {
|
|
89
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
127
90
|
accessibilityColumnIndex: null
|
|
128
91
|
}));
|
|
129
92
|
expect(getAttribute(isEmpty, "aria-colindex")).toBeNull();
|
|
130
|
-
var {
|
|
131
|
-
container: hasValue
|
|
132
|
-
} = render(createElement("div", {
|
|
93
|
+
var { container: hasValue } = render(createElement("div", {
|
|
133
94
|
accessibilityColumnIndex: 5
|
|
134
95
|
}));
|
|
135
96
|
expect(getAttribute(hasValue, "aria-colindex")).toBe("5");
|
|
136
|
-
}), test("accessibilityColumnSpan", function
|
|
137
|
-
var {
|
|
138
|
-
container: isEmpty
|
|
139
|
-
} = render(createElement("div", {
|
|
97
|
+
}), test("accessibilityColumnSpan", function() {
|
|
98
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
140
99
|
accessibilityColumnSpan: null
|
|
141
100
|
}));
|
|
142
101
|
expect(getAttribute(isEmpty, "aria-colspan")).toBeNull();
|
|
143
|
-
var {
|
|
144
|
-
container: hasValue
|
|
145
|
-
} = render(createElement("div", {
|
|
102
|
+
var { container: hasValue } = render(createElement("div", {
|
|
146
103
|
accessibilityColumnSpan: 5
|
|
147
104
|
}));
|
|
148
105
|
expect(getAttribute(hasValue, "aria-colspan")).toBe("5");
|
|
149
|
-
}), test("accessibilityControls", function
|
|
150
|
-
var {
|
|
151
|
-
container: isEmpty
|
|
152
|
-
} = render(createElement("div", {
|
|
106
|
+
}), test("accessibilityControls", function() {
|
|
107
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
153
108
|
accessibilityControls: null
|
|
154
109
|
}));
|
|
155
110
|
expect(getAttribute(isEmpty, "aria-controls")).toBeNull();
|
|
156
|
-
var {
|
|
157
|
-
container: hasValue
|
|
158
|
-
} = render(createElement("div", {
|
|
111
|
+
var { container: hasValue } = render(createElement("div", {
|
|
159
112
|
accessibilityControls: "abc"
|
|
160
113
|
}));
|
|
161
114
|
expect(getAttribute(hasValue, "aria-controls")).toBe("abc");
|
|
162
|
-
var {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
115
|
+
var { container: hasMultipleValues } = render(createElement("div", {
|
|
116
|
+
accessibilityControls: [
|
|
117
|
+
"abc",
|
|
118
|
+
"def"
|
|
119
|
+
]
|
|
166
120
|
}));
|
|
167
121
|
expect(getAttribute(hasMultipleValues, "aria-controls")).toBe("abc def");
|
|
168
|
-
}), test("accessibilityCurrent", function
|
|
169
|
-
var {
|
|
170
|
-
container: isEmpty
|
|
171
|
-
} = render(createElement("div", {
|
|
122
|
+
}), test("accessibilityCurrent", function() {
|
|
123
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
172
124
|
accessibilityCurrent: null
|
|
173
125
|
}));
|
|
174
126
|
expect(getAttribute(isEmpty, "aria-current")).toBeNull();
|
|
175
|
-
var {
|
|
176
|
-
container: hasValue
|
|
177
|
-
} = render(createElement("div", {
|
|
127
|
+
var { container: hasValue } = render(createElement("div", {
|
|
178
128
|
accessibilityCurrent: "page"
|
|
179
129
|
}));
|
|
180
130
|
expect(getAttribute(hasValue, "aria-current")).toBe("page");
|
|
181
|
-
}), test("accessibilityDescribedBy", function
|
|
182
|
-
var {
|
|
183
|
-
container: isEmpty
|
|
184
|
-
} = render(createElement("div", {
|
|
131
|
+
}), test("accessibilityDescribedBy", function() {
|
|
132
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
185
133
|
accessibilityDescribedBy: null
|
|
186
134
|
}));
|
|
187
135
|
expect(getAttribute(isEmpty, "aria-describedby")).toBeNull();
|
|
188
|
-
var {
|
|
189
|
-
container: hasValue
|
|
190
|
-
} = render(createElement("div", {
|
|
136
|
+
var { container: hasValue } = render(createElement("div", {
|
|
191
137
|
accessibilityDescribedBy: "abc"
|
|
192
138
|
}));
|
|
193
139
|
expect(getAttribute(hasValue, "aria-describedby")).toBe("abc");
|
|
194
|
-
var {
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
140
|
+
var { container: hasMultipleValues } = render(createElement("div", {
|
|
141
|
+
accessibilityDescribedBy: [
|
|
142
|
+
"abc",
|
|
143
|
+
"def"
|
|
144
|
+
]
|
|
198
145
|
}));
|
|
199
146
|
expect(getAttribute(hasMultipleValues, "aria-describedby")).toBe("abc def");
|
|
200
|
-
}), test("accessibilityDetails", function
|
|
201
|
-
var {
|
|
202
|
-
container: isEmpty
|
|
203
|
-
} = render(createElement("div", {
|
|
147
|
+
}), test("accessibilityDetails", function() {
|
|
148
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
204
149
|
accessibilityDetails: null
|
|
205
150
|
}));
|
|
206
151
|
expect(getAttribute(isEmpty, "aria-details")).toBeNull();
|
|
207
|
-
var {
|
|
208
|
-
container: hasValue
|
|
209
|
-
} = render(createElement("div", {
|
|
152
|
+
var { container: hasValue } = render(createElement("div", {
|
|
210
153
|
accessibilityDetails: "abc"
|
|
211
154
|
}));
|
|
212
155
|
expect(getAttribute(hasValue, "aria-details")).toBe("abc");
|
|
213
|
-
}), test("accessibilityDisabled", function
|
|
214
|
-
var {
|
|
215
|
-
container: isEmpty
|
|
216
|
-
} = render(createElement("button", {
|
|
156
|
+
}), test("accessibilityDisabled", function() {
|
|
157
|
+
var { container: isEmpty } = render(createElement("button", {
|
|
217
158
|
accessibilityDisabled: null
|
|
218
159
|
}));
|
|
219
160
|
expect(getAttribute(isEmpty, "aria-disabled")).toBeNull(), expect(getProperty(isEmpty, "disabled")).toBe(!1);
|
|
220
|
-
var {
|
|
221
|
-
container: hasValue
|
|
222
|
-
} = render(createElement("button", {
|
|
161
|
+
var { container: hasValue } = render(createElement("button", {
|
|
223
162
|
accessibilityDisabled: !0
|
|
224
163
|
}));
|
|
225
164
|
expect(getAttribute(hasValue, "aria-disabled")).toBe("true"), expect(getProperty(hasValue, "disabled")).toBe(!0);
|
|
226
|
-
}), test("accessibilityErrorMessage", function
|
|
227
|
-
var {
|
|
228
|
-
container: isEmpty
|
|
229
|
-
} = render(createElement("div", {
|
|
165
|
+
}), test("accessibilityErrorMessage", function() {
|
|
166
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
230
167
|
accessibilityErrorMessage: null
|
|
231
168
|
}));
|
|
232
169
|
expect(getAttribute(isEmpty, "aria-errormessage")).toBeNull();
|
|
233
|
-
var {
|
|
234
|
-
container: hasValue
|
|
235
|
-
} = render(createElement("div", {
|
|
170
|
+
var { container: hasValue } = render(createElement("div", {
|
|
236
171
|
accessibilityErrorMessage: "abc"
|
|
237
172
|
}));
|
|
238
173
|
expect(getAttribute(hasValue, "aria-errormessage")).toBe("abc");
|
|
239
|
-
}), test("accessibilityExpanded", function
|
|
240
|
-
var {
|
|
241
|
-
container: isEmpty
|
|
242
|
-
} = render(createElement("div", {
|
|
174
|
+
}), test("accessibilityExpanded", function() {
|
|
175
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
243
176
|
accessibilityExpanded: null
|
|
244
177
|
}));
|
|
245
178
|
expect(getAttribute(isEmpty, "aria-expanded")).toBeNull();
|
|
246
|
-
var {
|
|
247
|
-
container: hasValue
|
|
248
|
-
} = render(createElement("div", {
|
|
179
|
+
var { container: hasValue } = render(createElement("div", {
|
|
249
180
|
accessibilityExpanded: !0
|
|
250
181
|
}));
|
|
251
182
|
expect(getAttribute(hasValue, "aria-expanded")).toBe("true");
|
|
252
|
-
}), test("accessibilityFlowTo", function
|
|
253
|
-
var {
|
|
254
|
-
container: isEmpty
|
|
255
|
-
} = render(createElement("div", {
|
|
183
|
+
}), test("accessibilityFlowTo", function() {
|
|
184
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
256
185
|
accessibilityFlowTo: null
|
|
257
186
|
}));
|
|
258
187
|
expect(getAttribute(isEmpty, "aria-flowto")).toBeNull();
|
|
259
|
-
var {
|
|
260
|
-
container: hasValue
|
|
261
|
-
} = render(createElement("div", {
|
|
188
|
+
var { container: hasValue } = render(createElement("div", {
|
|
262
189
|
accessibilityFlowTo: "abc"
|
|
263
190
|
}));
|
|
264
191
|
expect(getAttribute(hasValue, "aria-flowto")).toBe("abc");
|
|
265
|
-
var {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
192
|
+
var { container: hasMultipleValues } = render(createElement("div", {
|
|
193
|
+
accessibilityFlowTo: [
|
|
194
|
+
"abc",
|
|
195
|
+
"def"
|
|
196
|
+
]
|
|
269
197
|
}));
|
|
270
198
|
expect(getAttribute(hasMultipleValues, "aria-flowto")).toBe("abc def");
|
|
271
|
-
}), test("accessibilityHasPopup", function
|
|
272
|
-
var {
|
|
273
|
-
container: isEmpty
|
|
274
|
-
} = render(createElement("div", {
|
|
199
|
+
}), test("accessibilityHasPopup", function() {
|
|
200
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
275
201
|
accessibilityHasPopup: null
|
|
276
202
|
}));
|
|
277
203
|
expect(getAttribute(isEmpty, "aria-haspopup")).toBeNull();
|
|
278
|
-
var {
|
|
279
|
-
container: hasValue
|
|
280
|
-
} = render(createElement("div", {
|
|
204
|
+
var { container: hasValue } = render(createElement("div", {
|
|
281
205
|
accessibilityHasPopup: !0
|
|
282
206
|
}));
|
|
283
207
|
expect(getAttribute(hasValue, "aria-haspopup")).toBe("true");
|
|
284
|
-
}), test("accessibilityHidden", function
|
|
285
|
-
var {
|
|
286
|
-
container: isEmpty
|
|
287
|
-
} = render(createElement("div", {
|
|
208
|
+
}), test("accessibilityHidden", function() {
|
|
209
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
288
210
|
accessibilityHidden: null
|
|
289
211
|
}));
|
|
290
212
|
expect(getAttribute(isEmpty, "aria-hidden")).toBeNull();
|
|
291
|
-
var {
|
|
292
|
-
container: hasValue
|
|
293
|
-
} = render(createElement("div", {
|
|
213
|
+
var { container: hasValue } = render(createElement("div", {
|
|
294
214
|
accessibilityHidden: !0
|
|
295
215
|
}));
|
|
296
216
|
expect(getAttribute(hasValue, "aria-hidden")).toBe("true");
|
|
297
|
-
}), test("accessibilityInvalid", function
|
|
298
|
-
var {
|
|
299
|
-
container: isEmpty
|
|
300
|
-
} = render(createElement("input", {
|
|
217
|
+
}), test("accessibilityInvalid", function() {
|
|
218
|
+
var { container: isEmpty } = render(createElement("input", {
|
|
301
219
|
accessibilityInvalid: null
|
|
302
220
|
}));
|
|
303
221
|
expect(getAttribute(isEmpty, "aria-invalid")).toBeNull();
|
|
304
|
-
var {
|
|
305
|
-
container: hasValue
|
|
306
|
-
} = render(createElement("input", {
|
|
222
|
+
var { container: hasValue } = render(createElement("input", {
|
|
307
223
|
accessibilityInvalid: !0
|
|
308
224
|
}));
|
|
309
225
|
expect(getAttribute(hasValue, "aria-invalid")).toBe("true");
|
|
310
|
-
}), test("accessibilityKeyShortcuts", function
|
|
311
|
-
var {
|
|
312
|
-
container: isEmpty
|
|
313
|
-
} = render(createElement("div", {
|
|
226
|
+
}), test("accessibilityKeyShortcuts", function() {
|
|
227
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
314
228
|
accessibilityKeyShortcuts: null
|
|
315
229
|
}));
|
|
316
230
|
expect(getAttribute(isEmpty, "aria-keyshortcuts")).toBeNull();
|
|
317
|
-
var {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
231
|
+
var { container: hasValue } = render(createElement("div", {
|
|
232
|
+
accessibilityKeyShortcuts: [
|
|
233
|
+
"ArrowUp",
|
|
234
|
+
"Enter",
|
|
235
|
+
"Space",
|
|
236
|
+
"Alt+Shift+T"
|
|
237
|
+
]
|
|
321
238
|
}));
|
|
322
239
|
expect(getAttribute(hasValue, "aria-keyshortcuts")).toBe("ArrowUp Enter Space Alt+Shift+T");
|
|
323
|
-
}), test("accessibilityLabel", function
|
|
324
|
-
var {
|
|
325
|
-
container: isEmpty
|
|
326
|
-
} = render(createElement("div", {
|
|
240
|
+
}), test("accessibilityLabel", function() {
|
|
241
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
327
242
|
accessibilityLabel: null
|
|
328
243
|
}));
|
|
329
244
|
expect(getAttribute(isEmpty, "aria-label")).toBeNull();
|
|
330
|
-
var {
|
|
331
|
-
container: hasValue
|
|
332
|
-
} = render(createElement("div", {
|
|
245
|
+
var { container: hasValue } = render(createElement("div", {
|
|
333
246
|
accessibilityLabel: "abc"
|
|
334
247
|
}));
|
|
335
248
|
expect(getAttribute(hasValue, "aria-label")).toBe("abc");
|
|
336
|
-
}), test("accessibilityLabelledBy", function
|
|
337
|
-
var {
|
|
338
|
-
container: isEmpty
|
|
339
|
-
} = render(createElement("div", {
|
|
249
|
+
}), test("accessibilityLabelledBy", function() {
|
|
250
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
340
251
|
accessibilityLabelledBy: null
|
|
341
252
|
}));
|
|
342
253
|
expect(getAttribute(isEmpty, "aria-labelledby")).toBeNull();
|
|
343
|
-
var {
|
|
344
|
-
container: hasValue
|
|
345
|
-
} = render(createElement("div", {
|
|
254
|
+
var { container: hasValue } = render(createElement("div", {
|
|
346
255
|
accessibilityLabelledBy: "abc"
|
|
347
256
|
}));
|
|
348
257
|
expect(getAttribute(hasValue, "aria-labelledby")).toBe("abc");
|
|
349
|
-
var {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
258
|
+
var { container: hasMultipleValues } = render(createElement("div", {
|
|
259
|
+
accessibilityLabelledBy: [
|
|
260
|
+
"abc",
|
|
261
|
+
"def"
|
|
262
|
+
]
|
|
353
263
|
}));
|
|
354
264
|
expect(getAttribute(hasMultipleValues, "aria-labelledby")).toBe("abc def");
|
|
355
|
-
}), test("accessibilityLevel", function
|
|
356
|
-
var {
|
|
357
|
-
container: isEmpty
|
|
358
|
-
} = render(createElement("div", {
|
|
265
|
+
}), test("accessibilityLevel", function() {
|
|
266
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
359
267
|
accessibilityLevel: null
|
|
360
268
|
}));
|
|
361
269
|
expect(getAttribute(isEmpty, "aria-level")).toBeNull();
|
|
362
|
-
var {
|
|
363
|
-
container: hasValue
|
|
364
|
-
} = render(createElement("div", {
|
|
270
|
+
var { container: hasValue } = render(createElement("div", {
|
|
365
271
|
accessibilityLevel: 3
|
|
366
272
|
}));
|
|
367
273
|
expect(getAttribute(hasValue, "aria-level")).toBe("3");
|
|
368
|
-
}), test("accessibilityLiveRegion", function
|
|
369
|
-
var {
|
|
370
|
-
container: isEmpty
|
|
371
|
-
} = render(createElement("div", {
|
|
274
|
+
}), test("accessibilityLiveRegion", function() {
|
|
275
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
372
276
|
accessibilityLiveRegion: null
|
|
373
277
|
}));
|
|
374
278
|
expect(getAttribute(isEmpty, "aria-live")).toBeNull();
|
|
375
|
-
var {
|
|
376
|
-
container: hasValue
|
|
377
|
-
} = render(createElement("div", {
|
|
279
|
+
var { container: hasValue } = render(createElement("div", {
|
|
378
280
|
accessibilityLiveRegion: "polite"
|
|
379
281
|
}));
|
|
380
282
|
expect(getAttribute(hasValue, "aria-live")).toBe("polite");
|
|
381
|
-
}), test("accessibilityModal", function
|
|
382
|
-
var {
|
|
383
|
-
container: isEmpty
|
|
384
|
-
} = render(createElement("div", {
|
|
283
|
+
}), test("accessibilityModal", function() {
|
|
284
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
385
285
|
accessibilityModal: null
|
|
386
286
|
}));
|
|
387
287
|
expect(getAttribute(isEmpty, "aria-modal")).toBeNull();
|
|
388
|
-
var {
|
|
389
|
-
container: hasValue
|
|
390
|
-
} = render(createElement("div", {
|
|
288
|
+
var { container: hasValue } = render(createElement("div", {
|
|
391
289
|
accessibilityModal: !0
|
|
392
290
|
}));
|
|
393
291
|
expect(getAttribute(hasValue, "aria-modal")).toBe("true");
|
|
394
|
-
}), test("accessibilityMultiline", function
|
|
395
|
-
var {
|
|
396
|
-
container: isEmpty
|
|
397
|
-
} = render(createElement("div", {
|
|
292
|
+
}), test("accessibilityMultiline", function() {
|
|
293
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
398
294
|
accessibilityMultiline: null
|
|
399
295
|
}));
|
|
400
296
|
expect(getAttribute(isEmpty, "aria-multiline")).toBeNull();
|
|
401
|
-
var {
|
|
402
|
-
container: hasValue
|
|
403
|
-
} = render(createElement("div", {
|
|
297
|
+
var { container: hasValue } = render(createElement("div", {
|
|
404
298
|
accessibilityMultiline: !0
|
|
405
299
|
}));
|
|
406
300
|
expect(getAttribute(hasValue, "aria-multiline")).toBe("true");
|
|
407
|
-
}), test("accessibilityMultiSelectable", function
|
|
408
|
-
var {
|
|
409
|
-
container: isEmpty
|
|
410
|
-
} = render(createElement("div", {
|
|
301
|
+
}), test("accessibilityMultiSelectable", function() {
|
|
302
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
411
303
|
accessibilityMultiSelectable: null
|
|
412
304
|
}));
|
|
413
305
|
expect(getAttribute(isEmpty, "aria-multiselectable")).toBeNull();
|
|
414
|
-
var {
|
|
415
|
-
container: hasValue
|
|
416
|
-
} = render(createElement("div", {
|
|
306
|
+
var { container: hasValue } = render(createElement("div", {
|
|
417
307
|
accessibilityMultiSelectable: !0
|
|
418
308
|
}));
|
|
419
309
|
expect(getAttribute(hasValue, "aria-multiselectable")).toBe("true");
|
|
420
|
-
}), test("accessibilityOrientation", function
|
|
421
|
-
var {
|
|
422
|
-
container: isEmpty
|
|
423
|
-
} = render(createElement("div", {
|
|
310
|
+
}), test("accessibilityOrientation", function() {
|
|
311
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
424
312
|
accessibilityOrientation: null
|
|
425
313
|
}));
|
|
426
314
|
expect(getAttribute(isEmpty, "aria-orientation")).toBeNull();
|
|
427
|
-
var {
|
|
428
|
-
container: hasValue
|
|
429
|
-
} = render(createElement("div", {
|
|
315
|
+
var { container: hasValue } = render(createElement("div", {
|
|
430
316
|
accessibilityOrientation: "vertical"
|
|
431
317
|
}));
|
|
432
318
|
expect(getAttribute(hasValue, "aria-orientation")).toBe("vertical");
|
|
433
|
-
}), test("accessibilityOwns", function
|
|
434
|
-
var {
|
|
435
|
-
container: isEmpty
|
|
436
|
-
} = render(createElement("div", {
|
|
319
|
+
}), test("accessibilityOwns", function() {
|
|
320
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
437
321
|
accessibilityOwns: null
|
|
438
322
|
}));
|
|
439
323
|
expect(getAttribute(isEmpty, "aria-owns")).toBeNull();
|
|
440
|
-
var {
|
|
441
|
-
container: hasValue
|
|
442
|
-
} = render(createElement("div", {
|
|
324
|
+
var { container: hasValue } = render(createElement("div", {
|
|
443
325
|
accessibilityOwns: "abc"
|
|
444
326
|
}));
|
|
445
327
|
expect(getAttribute(hasValue, "aria-owns")).toBe("abc");
|
|
446
|
-
var {
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
328
|
+
var { container: hasMultipleValues } = render(createElement("div", {
|
|
329
|
+
accessibilityOwns: [
|
|
330
|
+
"abc",
|
|
331
|
+
"def"
|
|
332
|
+
]
|
|
450
333
|
}));
|
|
451
334
|
expect(getAttribute(hasMultipleValues, "aria-owns")).toBe("abc def");
|
|
452
|
-
}), test("accessibilityPlaceholder", function
|
|
453
|
-
var {
|
|
454
|
-
container: isEmpty
|
|
455
|
-
} = render(createElement("div", {
|
|
335
|
+
}), test("accessibilityPlaceholder", function() {
|
|
336
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
456
337
|
accessibilityPlaceholder: null
|
|
457
338
|
}));
|
|
458
339
|
expect(getAttribute(isEmpty, "aria-placeholder")).toBeNull();
|
|
459
|
-
var {
|
|
460
|
-
container: hasValue
|
|
461
|
-
} = render(createElement("div", {
|
|
340
|
+
var { container: hasValue } = render(createElement("div", {
|
|
462
341
|
accessibilityPlaceholder: "MM-DD-YYYY"
|
|
463
342
|
}));
|
|
464
343
|
expect(getAttribute(hasValue, "aria-placeholder")).toBe("MM-DD-YYYY");
|
|
465
|
-
}), test("accessibilityPosInSet", function
|
|
466
|
-
var {
|
|
467
|
-
container: isEmpty
|
|
468
|
-
} = render(createElement("div", {
|
|
344
|
+
}), test("accessibilityPosInSet", function() {
|
|
345
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
469
346
|
accessibilityPosInSet: null
|
|
470
347
|
}));
|
|
471
348
|
expect(getAttribute(isEmpty, "aria-posinset")).toBeNull();
|
|
472
|
-
var {
|
|
473
|
-
container: hasValue
|
|
474
|
-
} = render(createElement("div", {
|
|
349
|
+
var { container: hasValue } = render(createElement("div", {
|
|
475
350
|
accessibilityPosInSet: 3
|
|
476
351
|
}));
|
|
477
352
|
expect(getAttribute(hasValue, "aria-posinset")).toBe("3");
|
|
478
|
-
}), test("accessibilityPressed", function
|
|
479
|
-
var {
|
|
480
|
-
container: isEmpty
|
|
481
|
-
} = render(createElement("div", {
|
|
353
|
+
}), test("accessibilityPressed", function() {
|
|
354
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
482
355
|
accessibilityPressed: null
|
|
483
356
|
}));
|
|
484
357
|
expect(getAttribute(isEmpty, "aria-pressed")).toBeNull();
|
|
485
|
-
var {
|
|
486
|
-
container: hasValue
|
|
487
|
-
} = render(createElement("div", {
|
|
358
|
+
var { container: hasValue } = render(createElement("div", {
|
|
488
359
|
accessibilityPressed: !0
|
|
489
360
|
}));
|
|
490
361
|
expect(getAttribute(hasValue, "aria-pressed")).toBe("true");
|
|
491
|
-
}), test("accessibilityReadOnly", function
|
|
492
|
-
var {
|
|
493
|
-
container: isEmpty
|
|
494
|
-
} = render(createElement("input", {
|
|
362
|
+
}), test("accessibilityReadOnly", function() {
|
|
363
|
+
var { container: isEmpty } = render(createElement("input", {
|
|
495
364
|
accessibilityReadOnly: null
|
|
496
365
|
}));
|
|
497
366
|
expect(getAttribute(isEmpty, "aria-readonly")).toBeNull(), expect(getProperty(isEmpty, "readOnly")).toBe(!1);
|
|
498
|
-
var {
|
|
499
|
-
container: hasValue
|
|
500
|
-
} = render(createElement("input", {
|
|
367
|
+
var { container: hasValue } = render(createElement("input", {
|
|
501
368
|
accessibilityReadOnly: !0
|
|
502
369
|
}));
|
|
503
370
|
expect(getAttribute(hasValue, "aria-readonly")).toBe("true"), expect(getProperty(hasValue, "readOnly")).toBe(!0);
|
|
504
|
-
}), test("accessibilityRequired", function
|
|
505
|
-
var {
|
|
506
|
-
container: isEmpty
|
|
507
|
-
} = render(createElement("input", {
|
|
371
|
+
}), test("accessibilityRequired", function() {
|
|
372
|
+
var { container: isEmpty } = render(createElement("input", {
|
|
508
373
|
accessibilityRequired: null
|
|
509
374
|
}));
|
|
510
375
|
expect(getAttribute(isEmpty, "aria-required")).toBeNull(), expect(getProperty(isEmpty, "required")).toBe(!1);
|
|
511
|
-
var {
|
|
512
|
-
container: hasValue
|
|
513
|
-
} = render(createElement("input", {
|
|
376
|
+
var { container: hasValue } = render(createElement("input", {
|
|
514
377
|
accessibilityRequired: !0
|
|
515
378
|
}));
|
|
516
379
|
expect(getAttribute(hasValue, "aria-required")).toBe("true"), expect(getProperty(hasValue, "required")).toBe(!0);
|
|
517
|
-
}), test("accessibilityRole", function
|
|
518
|
-
var {
|
|
519
|
-
container: isEmpty
|
|
520
|
-
} = render(createElement("div", {
|
|
380
|
+
}), test("accessibilityRole", function() {
|
|
381
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
521
382
|
accessibilityRole: null
|
|
522
383
|
}));
|
|
523
384
|
expect(getAttribute(isEmpty, "role")).toBeNull();
|
|
524
|
-
var {
|
|
525
|
-
container: hasValue
|
|
526
|
-
} = render(createElement("div", {
|
|
385
|
+
var { container: hasValue } = render(createElement("div", {
|
|
527
386
|
accessibilityRole: "button"
|
|
528
387
|
}));
|
|
529
388
|
expect(getAttribute(hasValue, "role")).toBe("button"), expect(getAttribute(hasValue, "tabIndex")).toBe("0");
|
|
530
|
-
var {
|
|
531
|
-
container: roleIsNone
|
|
532
|
-
} = render(createElement("div", {
|
|
389
|
+
var { container: roleIsNone } = render(createElement("div", {
|
|
533
390
|
accessibilityRole: "none"
|
|
534
391
|
}));
|
|
535
392
|
expect(getAttribute(roleIsNone, "role")).toBe("presentation");
|
|
536
|
-
}), test("accessibilityRoleDescription", function
|
|
537
|
-
var {
|
|
538
|
-
container: isEmpty
|
|
539
|
-
} = render(createElement("div", {
|
|
393
|
+
}), test("accessibilityRoleDescription", function() {
|
|
394
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
540
395
|
accessibilityRoleDescription: null
|
|
541
396
|
}));
|
|
542
397
|
expect(getAttribute(isEmpty, "aria-roledescription")).toBeNull();
|
|
543
|
-
var {
|
|
544
|
-
container: hasValue
|
|
545
|
-
} = render(createElement("div", {
|
|
398
|
+
var { container: hasValue } = render(createElement("div", {
|
|
546
399
|
accessibilityRoleDescription: "abc"
|
|
547
400
|
}));
|
|
548
401
|
expect(getAttribute(hasValue, "aria-roledescription")).toBe("abc");
|
|
549
|
-
}), test("accessibilityRowCount", function
|
|
550
|
-
var {
|
|
551
|
-
container: isEmpty
|
|
552
|
-
} = render(createElement("div", {
|
|
402
|
+
}), test("accessibilityRowCount", function() {
|
|
403
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
553
404
|
accessibilityRowCount: null
|
|
554
405
|
}));
|
|
555
406
|
expect(getAttribute(isEmpty, "aria-rowcount")).toBeNull();
|
|
556
|
-
var {
|
|
557
|
-
container: hasValue
|
|
558
|
-
} = render(createElement("div", {
|
|
407
|
+
var { container: hasValue } = render(createElement("div", {
|
|
559
408
|
accessibilityRowCount: 5
|
|
560
409
|
}));
|
|
561
410
|
expect(getAttribute(hasValue, "aria-rowcount")).toBe("5");
|
|
562
|
-
}), test("accessibilityRowIndex", function
|
|
563
|
-
var {
|
|
564
|
-
container: isEmpty
|
|
565
|
-
} = render(createElement("div", {
|
|
411
|
+
}), test("accessibilityRowIndex", function() {
|
|
412
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
566
413
|
accessibilityRowIndex: null
|
|
567
414
|
}));
|
|
568
415
|
expect(getAttribute(isEmpty, "aria-rowindex")).toBeNull();
|
|
569
|
-
var {
|
|
570
|
-
container: hasValue
|
|
571
|
-
} = render(createElement("div", {
|
|
416
|
+
var { container: hasValue } = render(createElement("div", {
|
|
572
417
|
accessibilityRowIndex: 5
|
|
573
418
|
}));
|
|
574
419
|
expect(getAttribute(hasValue, "aria-rowindex")).toBe("5");
|
|
575
|
-
}), test("accessibilityRowSpan", function
|
|
576
|
-
var {
|
|
577
|
-
container: isEmpty
|
|
578
|
-
} = render(createElement("div", {
|
|
420
|
+
}), test("accessibilityRowSpan", function() {
|
|
421
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
579
422
|
accessibilityRowSpan: null
|
|
580
423
|
}));
|
|
581
424
|
expect(getAttribute(isEmpty, "aria-rowspan")).toBeNull();
|
|
582
|
-
var {
|
|
583
|
-
container: hasValue
|
|
584
|
-
} = render(createElement("div", {
|
|
425
|
+
var { container: hasValue } = render(createElement("div", {
|
|
585
426
|
accessibilityRowSpan: 5
|
|
586
427
|
}));
|
|
587
428
|
expect(getAttribute(hasValue, "aria-rowspan")).toBe("5");
|
|
588
|
-
}), test("accessibilitySelected", function
|
|
589
|
-
var {
|
|
590
|
-
container: isEmpty
|
|
591
|
-
} = render(createElement("div", {
|
|
429
|
+
}), test("accessibilitySelected", function() {
|
|
430
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
592
431
|
accessibilitySelected: null
|
|
593
432
|
}));
|
|
594
433
|
expect(getAttribute(isEmpty, "aria-selected")).toBeNull();
|
|
595
|
-
var {
|
|
596
|
-
container: hasValue
|
|
597
|
-
} = render(createElement("div", {
|
|
434
|
+
var { container: hasValue } = render(createElement("div", {
|
|
598
435
|
accessibilitySelected: !0
|
|
599
436
|
}));
|
|
600
437
|
expect(getAttribute(hasValue, "aria-selected")).toBe("true");
|
|
601
|
-
}), test("accessibilitySetSize", function
|
|
602
|
-
var {
|
|
603
|
-
container: isEmpty
|
|
604
|
-
} = render(createElement("div", {
|
|
438
|
+
}), test("accessibilitySetSize", function() {
|
|
439
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
605
440
|
accessibilitySetSize: null
|
|
606
441
|
}));
|
|
607
442
|
expect(getAttribute(isEmpty, "aria-setsize")).toBeNull();
|
|
608
|
-
var {
|
|
609
|
-
container: hasValue
|
|
610
|
-
} = render(createElement("div", {
|
|
443
|
+
var { container: hasValue } = render(createElement("div", {
|
|
611
444
|
accessibilitySetSize: 5
|
|
612
445
|
}));
|
|
613
446
|
expect(getAttribute(hasValue, "aria-setsize")).toBe("5");
|
|
614
|
-
}), test("accessibilitySort", function
|
|
615
|
-
var {
|
|
616
|
-
container: isEmpty
|
|
617
|
-
} = render(createElement("div", {
|
|
447
|
+
}), test("accessibilitySort", function() {
|
|
448
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
618
449
|
accessibilitySort: null
|
|
619
450
|
}));
|
|
620
451
|
expect(getAttribute(isEmpty, "aria-sort")).toBeNull();
|
|
621
|
-
var {
|
|
622
|
-
container: hasValue
|
|
623
|
-
} = render(createElement("div", {
|
|
452
|
+
var { container: hasValue } = render(createElement("div", {
|
|
624
453
|
accessibilitySort: "ascending"
|
|
625
454
|
}));
|
|
626
455
|
expect(getAttribute(hasValue, "aria-sort")).toBe("ascending");
|
|
627
|
-
}), test("accessibilityValueMax", function
|
|
628
|
-
var {
|
|
629
|
-
container: isEmpty
|
|
630
|
-
} = render(createElement("div", {
|
|
456
|
+
}), test("accessibilityValueMax", function() {
|
|
457
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
631
458
|
accessibilityValueMax: null
|
|
632
459
|
}));
|
|
633
460
|
expect(getAttribute(isEmpty, "aria-valuemax")).toBeNull();
|
|
634
|
-
var {
|
|
635
|
-
container: hasValue
|
|
636
|
-
} = render(createElement("div", {
|
|
461
|
+
var { container: hasValue } = render(createElement("div", {
|
|
637
462
|
accessibilityValueMax: 100
|
|
638
463
|
}));
|
|
639
464
|
expect(getAttribute(hasValue, "aria-valuemax")).toBe("100");
|
|
640
|
-
}), test("accessibilityValueMin", function
|
|
641
|
-
var {
|
|
642
|
-
container: isEmpty
|
|
643
|
-
} = render(createElement("div", {
|
|
465
|
+
}), test("accessibilityValueMin", function() {
|
|
466
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
644
467
|
accessibilityValueMin: null
|
|
645
468
|
}));
|
|
646
469
|
expect(getAttribute(isEmpty, "aria-valuemin")).toBeNull();
|
|
647
|
-
var {
|
|
648
|
-
container: hasValue
|
|
649
|
-
} = render(createElement("div", {
|
|
470
|
+
var { container: hasValue } = render(createElement("div", {
|
|
650
471
|
accessibilityValueMin: 10
|
|
651
472
|
}));
|
|
652
473
|
expect(getAttribute(hasValue, "aria-valuemin")).toBe("10");
|
|
653
|
-
}), test("accessibilityValueNow", function
|
|
654
|
-
var {
|
|
655
|
-
container: isEmpty
|
|
656
|
-
} = render(createElement("div", {
|
|
474
|
+
}), test("accessibilityValueNow", function() {
|
|
475
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
657
476
|
accessibilityValueNow: null
|
|
658
477
|
}));
|
|
659
478
|
expect(getAttribute(isEmpty, "aria-valuenow")).toBeNull();
|
|
660
|
-
var {
|
|
661
|
-
container: hasValue
|
|
662
|
-
} = render(createElement("div", {
|
|
479
|
+
var { container: hasValue } = render(createElement("div", {
|
|
663
480
|
accessibilityValueNow: 50
|
|
664
481
|
}));
|
|
665
482
|
expect(getAttribute(hasValue, "aria-valuenow")).toBe("50");
|
|
666
|
-
}), test("accessibilityValueText", function
|
|
667
|
-
var {
|
|
668
|
-
container: isEmpty
|
|
669
|
-
} = render(createElement("div", {
|
|
483
|
+
}), test("accessibilityValueText", function() {
|
|
484
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
670
485
|
accessibilityValueText: null
|
|
671
486
|
}));
|
|
672
487
|
expect(getAttribute(isEmpty, "aria-valuetext")).toBeNull();
|
|
673
|
-
var {
|
|
674
|
-
container: hasValue
|
|
675
|
-
} = render(createElement("div", {
|
|
488
|
+
var { container: hasValue } = render(createElement("div", {
|
|
676
489
|
accessibilityValueText: "fifty"
|
|
677
490
|
}));
|
|
678
491
|
expect(getAttribute(hasValue, "aria-valuetext")).toBe("fifty");
|
|
679
|
-
}), test("dataSet", function
|
|
680
|
-
var {
|
|
681
|
-
container: hasValue
|
|
682
|
-
} = render(createElement("div", {
|
|
492
|
+
}), test("dataSet", function() {
|
|
493
|
+
var { container: hasValue } = render(createElement("div", {
|
|
683
494
|
dataSet: {
|
|
684
495
|
one: "1",
|
|
685
496
|
two: "2",
|
|
@@ -695,48 +506,34 @@ describe("exports/createElement/index.js", function () {
|
|
|
695
506
|
data-two="2"
|
|
696
507
|
/>
|
|
697
508
|
`);
|
|
698
|
-
}), test("focusable", function
|
|
699
|
-
var {
|
|
700
|
-
container: isEmpty
|
|
701
|
-
} = render(createElement("div", {
|
|
509
|
+
}), test("focusable", function() {
|
|
510
|
+
var { container: isEmpty } = render(createElement("div", {
|
|
702
511
|
focusable: null
|
|
703
512
|
}));
|
|
704
513
|
expect(getAttribute(isEmpty, "tabindex")).toBeNull();
|
|
705
|
-
var {
|
|
706
|
-
container: isTrue
|
|
707
|
-
} = render(createElement("div", {
|
|
514
|
+
var { container: isTrue } = render(createElement("div", {
|
|
708
515
|
focusable: !0
|
|
709
516
|
}));
|
|
710
517
|
expect(getAttribute(isTrue, "tabindex")).toBe("0");
|
|
711
|
-
var {
|
|
712
|
-
container: isFalseNativelyFocusable
|
|
713
|
-
} = render(createElement("button", {
|
|
518
|
+
var { container: isFalseNativelyFocusable } = render(createElement("button", {
|
|
714
519
|
focusable: !1
|
|
715
520
|
}));
|
|
716
521
|
expect(getAttribute(isFalseNativelyFocusable, "tabindex")).toBe("-1");
|
|
717
|
-
var {
|
|
718
|
-
container: isDisabledNativelyFocusable
|
|
719
|
-
} = render(createElement("button", {
|
|
522
|
+
var { container: isDisabledNativelyFocusable } = render(createElement("button", {
|
|
720
523
|
accessibilityDisabled: !0,
|
|
721
524
|
focusable: !0
|
|
722
525
|
}));
|
|
723
526
|
expect(getAttribute(isDisabledNativelyFocusable, "tabindex")).toBe("-1");
|
|
724
|
-
var {
|
|
725
|
-
container: isTrueNativelyFocusable
|
|
726
|
-
} = render(createElement("button", {
|
|
527
|
+
var { container: isTrueNativelyFocusable } = render(createElement("button", {
|
|
727
528
|
focusable: !0
|
|
728
529
|
}));
|
|
729
530
|
expect(getAttribute(isTrueNativelyFocusable, "tabindex")).toBeNull();
|
|
730
|
-
var {
|
|
731
|
-
container: isFocusableRole
|
|
732
|
-
} = render(createElement("div", {
|
|
531
|
+
var { container: isFocusableRole } = render(createElement("div", {
|
|
733
532
|
accessibilityRole: "button",
|
|
734
533
|
focusable: !0
|
|
735
534
|
}));
|
|
736
535
|
expect(getAttribute(isFocusableRole, "tabindex")).toBe("0");
|
|
737
|
-
var {
|
|
738
|
-
container: isFalseFocusableRole
|
|
739
|
-
} = render(createElement("div", {
|
|
536
|
+
var { container: isFalseFocusableRole } = render(createElement("div", {
|
|
740
537
|
accessibilityRole: "button",
|
|
741
538
|
focusable: !1
|
|
742
539
|
}));
|
|
@@ -744,4 +541,4 @@ describe("exports/createElement/index.js", function () {
|
|
|
744
541
|
});
|
|
745
542
|
});
|
|
746
543
|
});
|
|
747
|
-
//# sourceMappingURL=index-test.
|
|
544
|
+
//# sourceMappingURL=index-test.js.map
|