File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed
Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -420,15 +420,22 @@ export async function runCodeMirrorTests(writeOutput) {
420420
421421 runner . test ( "Indent guides render as indentation spans" , async ( test ) => {
422422 const doc = "function x() {\n if (true) {\n return 1;\n }\n}" ;
423- await withEditor ( test , async ( view ) => {
424- const guideLine = view . dom . querySelector ( ".cm-indent-guides" ) ;
425- const legacyWidget = view . dom . querySelector ( ".cm-indent-guides-wrapper" ) ;
426- test . assert ( guideLine != null , "Indent guide span should exist" ) ;
427- test . assert (
428- legacyWidget == null ,
429- "Indent guides should not create widget wrapper DOM" ,
430- ) ;
431- } , doc , [ indentGuides ( ) ] ) ;
423+ await withEditor (
424+ test ,
425+ async ( view ) => {
426+ const guideLine = view . dom . querySelector ( ".cm-indent-guides" ) ;
427+ const legacyWidget = view . dom . querySelector (
428+ ".cm-indent-guides-wrapper" ,
429+ ) ;
430+ test . assert ( guideLine != null , "Indent guide span should exist" ) ;
431+ test . assert (
432+ legacyWidget == null ,
433+ "Indent guides should not create widget wrapper DOM" ,
434+ ) ;
435+ } ,
436+ doc ,
437+ [ indentGuides ( ) ] ,
438+ ) ;
432439 } ) ;
433440
434441 runner . test ( "Focus and blur" , async ( test ) => {
You can’t perform that action at this time.
0 commit comments