/home/aqcert/public_html/admin/tinymce/tests/tinymce/dom
NameSizeModeActions
Dimensions.js11010644editdlrm
DomQuery.js309350644editdlrm
DOMUtils.js233850644editdlrm
EventUtils.js107460644editdlrm
NodePath.js10440644editdlrm
NodeType.js41040644editdlrm
Range.js243680644editdlrm
Selection.js391780644editdlrm
Serializer.js234930644editdlrm
test.css21700644editdlrm
TreeWalker.js22110644editdlrm
TridentSelection.js176520644editdlrm
Edit: /home/aqcert/public_html/admin/tinymce/tests/tinymce/dom/NodePath.js (1044B)
ModuleLoader.require([ "tinymce/dom/NodePath" ], function(NodePath) { module("tinymce.dom.NodePath", {}); function getRoot() { return document.getElementById('view'); } function setupHtml(html) { getRoot().innerHTML = html; } test("create", function() { setupHtml('

a12

'); deepEqual(NodePath.create(getRoot(), getRoot().firstChild), [0]); deepEqual(NodePath.create(getRoot(), getRoot().firstChild.firstChild), [0, 0]); deepEqual(NodePath.create(getRoot(), getRoot().firstChild.lastChild.lastChild), [1, 1, 0]); }); test("resolve", function() { setupHtml('

a12

'); deepEqual(NodePath.resolve(getRoot(), NodePath.create(getRoot(), getRoot().firstChild)), getRoot().firstChild); deepEqual(NodePath.resolve(getRoot(), NodePath.create(getRoot(), getRoot().firstChild.firstChild)), getRoot().firstChild.firstChild); deepEqual(NodePath.resolve(getRoot(), NodePath.create(getRoot(), getRoot().firstChild.lastChild.lastChild)), getRoot().firstChild.lastChild.lastChild); }); });