Skip to content

Instantly share code, notes, and snippets.

@stlsmiths
Created January 16, 2013 14:44
Show Gist options
  • Save stlsmiths/4547585 to your computer and use it in GitHub Desktop.
Save stlsmiths/4547585 to your computer and use it in GitHub Desktop.
// showEditor
oe.showEditor(td6);
inp = oe._inputNode;
// ESC cancelEditor
td6.simulate('click');
//inp.focus();
inp.simulate('keypress',{charCode:72}); // 4:52 H:72 i:105
inp.simulate('keypress',{charCode:52}); // 4:52 H:72 i:105
inp.simulate('keydown',{keyCode:27});
Assert.isFalse(oe.get('visible'),'cell editor col 1 should be closed');
Assert.isFalse(dt.getCellEditor('sprice').get('visible'),'cell editor col 1 should be closed');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment