chiggly007 commited on
Commit
459ceb5
·
verified ·
1 Parent(s): 69de988

Upload fim_test - Sheet1.csv

Browse files
Files changed (1) hide show
  1. fim_test - Sheet1.csv +2 -0
fim_test - Sheet1.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ prompt,suffix
2
+ "|file_name|>TypeTextAtCefTest.ts<|end_file_name|><|fim▁begin|>import { Keys } from '@ephox/agar'; import { describe, it } from '@ephox/bedrock-client'; import { TinyAssertions, TinyContentActions, TinyHooks, TinySelections } from '@ephox/mcagar'; import Editor from 'tinymce/core/api/Editor'; import Theme from 'tinymce/themes/silver/Theme'; describe('browser.tinymce.core.keyboard.TypeTextAtCef', () => { const hook = TinyHooks.bddSetupLight<Editor>({ add_unload_trigger: false, base_url: '/project/tinymce/js/tinymce' }, [ Theme ], true); it('Type text before cef inline element', () => { const editor = hook.editor(); editor.setContent('<p><span contenteditable=""false"">a</span></p>'); TinySelections.select(editor, 'p', [ 1 ]); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertCursor(editor, [ 0, 0 ], 2); TinyAssertions.assertContent(editor, '<p>bc<span contenteditable=""false"">a</span></p>'); }); it('Type after cef inline element', () => { const editor = hook.editor(); editor.setContent('<p><span contenteditable=""false"">a</span></p>'); TinySelections.select(editor, 'p', [ 1 ]); TinyContentActions.keystroke(editor, Keys.right()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertCursor(editor, [ 0, 1 ], 3); TinyAssertions.assertContent(editor, '<p><span contenteditable=""false"">a</span>bc</p>'); }); it('Type between cef inline elements', () => { const editor = hook.editor();<|fim▁hole|> TinySelections.select(editor, 'p', [ 3 ]); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.keystroke(editor, Keys.left()); TinyContentActions.type(editor, 'bc'); TinyAssertions.assertSelection(editor, [ 0, 1 ], 3, [ 0, 1 ], 3); TinyAssertions.assertContent(editor, '<p><span contenteditable=""false"">a</span>bc&nbsp;<span contenteditable=""false"">b</span></p>'); }); });<|fim▁end|>","editor.setContent('<p><span contenteditable=""false"">a</span>&nbsp;<span contenteditable=""false"">b</span></p>');"