/home/aqcert/public_html/admin/tinymce/tests/tinymce
NameSizeModeActions
caret/-0755rm
data/-0755rm
dom/-0755rm
file/-0755rm
fmt/-0755rm
geom/-0755rm
html/-0755rm
text/-0755rm
ui/-0755rm
util/-0755rm
AddOnManager.js14490644editdlrm
Editor.js141920644editdlrm
EditorCommands.js310570644editdlrm
EditorManager.js50020644editdlrm
EditorUpload.js85920644editdlrm
Editor_rtl.js15990644editdlrm
EnterKey.js396560644editdlrm
ForceBlocks.js29810644editdlrm
Formatter_apply.js618870644editdlrm
Formatter_check.js84520644editdlrm
Formatter_remove.js182520644editdlrm
InsertContent.js40010644editdlrm
InsertList.js14030644editdlrm
SelectionOverrides.js119120644editdlrm
Shortcuts.js23660644editdlrm
UndoManager.js100110644editdlrm
WindowManager.js8520644editdlrm
Edit: /home/aqcert/public_html/admin/tinymce/tests/tinymce/InsertList.js (1403B)
ModuleLoader.require([ "tinymce/InsertList", "tinymce/html/Node", "tinymce/html/DomParser", "tinymce/dom/DOMUtils" ], function(InsertList, Node, DomParser, DOMUtils) { module("tinymce.InsertList", {}); var createFragment = function(html) { var parser = new DomParser({validate: false}); var fragment = parser.parse(html); return fragment; }; var createDomFragment = function(html) { return DOMUtils.DOM.createFragment(html); }; test('isListFragment', function() { equal(InsertList.isListFragment(createFragment('')), true); equal(InsertList.isListFragment(createFragment('
  1. x
')), true); equal(InsertList.isListFragment(createFragment('')), true); equal(InsertList.isListFragment(createFragment('')), true); equal(InsertList.isListFragment(createFragment('
')), false); }); test('listItems', function() { var list = createDomFragment('').firstChild; equal(InsertList.listItems(list).length, 3); equal(InsertList.listItems(list)[0].nodeName, 'LI'); }); test('trimListItems', function() { var list = createDomFragment('').firstChild; equal(InsertList.listItems(list).length, 3); equal(InsertList.trimListItems(InsertList.listItems(list)).length, 2); }); });