File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed
e2e/testcafe-devextreme/tests/common
testing/tests/DevExpress.core Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ fixture.disablePageReloads`Shadow DOM - Adopted DX css styles`
77const dxWidgetHostStyles = '.dx-widget-shadow { font-size: 20px; }' ;
88const dxWidgetShadowStyles = '.dx-widget-shadow { font-size: 40px; }' ;
99
10- const setupShadowDOMTest = ( copyStylesToShadowDom ) => ClientFunction ( ( copyStyles ) => {
10+ const setupShadowDomTest = ( copyStylesToShadowDom ) => ClientFunction ( ( copyStyles ) => {
1111 if ( ! copyStyles ) {
1212 ( window as any ) . DevExpress . config ( { copyStylesToShadowDom : copyStyles } ) ;
1313 }
@@ -64,7 +64,7 @@ const getAdoptedStyleSheets = ClientFunction(() => {
6464} ) ;
6565
6666test ( 'Copies DX css styles from the host to the shadow root when rendering a DX widget' , async ( t ) => {
67- await setupShadowDOMTest ( true ) ;
67+ await setupShadowDomTest ( true ) ;
6868
6969 const { firstSheetRules, secondSheetRules } = await getAdoptedStyleSheets ( ) ;
7070
@@ -76,7 +76,7 @@ test('Copies DX css styles from the host to the shadow root when rendering a DX
7676} ) ;
7777
7878test ( 'Does not copy DX css styles when copyStylesToShadowDom is disabled' , async ( t ) => {
79- await setupShadowDOMTest ( false ) ;
79+ await setupShadowDomTest ( false ) ;
8080
8181 const { firstSheetRules, secondSheetRules } = await getAdoptedStyleSheets ( ) ;
8282 await t . expect ( firstSheetRules === null && secondSheetRules === null )
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ const config = {
1717 useJQuery : undefined ,
1818 editorStylingMode : undefined ,
1919 useLegacyVisibleIndex : false ,
20+ versionAssertions : [ ] ,
2021 copyStylesToShadowDom : true ,
2122
2223 floatingActionButtonConfig : {
Original file line number Diff line number Diff line change 1+ import $ from 'jquery' ;
12import { computeStyleSheetsHash , addShadowDomStyles } from '__internal/core/utils/m_shadow_dom' ;
23
34QUnit . module ( 'computeStyleSheetsHash' , ( ) => {
@@ -36,6 +37,7 @@ QUnit.module('addShadowDomStyles', () => {
3637
3738 const div = document . createElement ( 'div' ) ;
3839 shadow . appendChild ( div ) ;
40+
3941 const $div = $ ( div ) ;
4042
4143 addShadowDomStyles ( $div ) ;
You can’t perform that action at this time.
0 commit comments