/**
 * Regression test for #1295
 *
 * Validate that creating a window without focus doesn't crash the app!
 */ import * as assert from "assert" ; import * as Oni from "oni-api" ; export const test = async ( oni ) => { await oni . automation . waitForEditors ( ) ; const neovim = oni . editors . activeEditor . neovim ; const p1 = neovim . command ( ":vsp" ) ; const p2 = neovim . command ( ":wincmd p" ) ; await Promise . all ( [ p1 , p1 ] ) ; await oni . automation . sleep ( 1000 ) ; const editorElements = document . getElementsByClassName ( "editor" ) ; assert . ok ( editorElements . length > 0 , "Validate an editor is still present" ) ; } ;