Tests that DOM modifications done in the Elements panel are undoable.
Running: testSetUp
Setting up
Running: testRemove
Initial:
- <div id="testRemove">
<div id="node-to-remove"></div>
</div>
Post-action:
<div id="testRemove"></div>
Post-undo (initial):
+ <div id="testRemove">…</div>
== Expanded: ==
- <div id="testRemove">
<div id="node-to-remove"></div>
</div>
Post-redo (action):
<div id="testRemove"></div>
Running: testSetNodeName
Initial:
- <div id="testSetNodeName">
<div id="node-to-set-name"></div>
</div>
Post-action:
- <div id="testSetNodeName">
<span id="node-to-set-name"></span>
</div>
Post-undo (initial):
- <div id="testSetNodeName">
<div id="node-to-set-name"></div>
</div>
Post-redo (action):
- <div id="testSetNodeName">
<span id="node-to-set-name"></span>
</div>
Running: testSetNodeValue
Initial:
- <div id="testSetNodeValue">
<div id="node-to-set-value">Text</div>
</div>
Post-action:
- <div id="testSetNodeValue">
<div id="node-to-set-value">New Text</div>
</div>
Post-undo (initial):
- <div id="testSetNodeValue">
<div id="node-to-set-value">Text</div>
</div>
Post-redo (action):
- <div id="testSetNodeValue">
<div id="node-to-set-value">New Text</div>
</div>
Running: testEditAsHTML
Initial:
- <div id="testEditAsHTML">
- <div id="node-to-edit-as-html">
<span id="span">Text</span>
</div>
</div>
Post-action:
- <div id="testEditAsHTML">
+ <div id="node-to-edit-as-html">…</div>
<span>Second node</span>
</div>
== Expanded: ==
- <div id="testEditAsHTML">
- <div id="node-to-edit-as-html">
<div id="span2">Text2</div>
</div>
<span>Second node</span>
</div>
Post-undo (initial):
- <div id="testEditAsHTML">
+ <div id="node-to-edit-as-html">…</div>
</div>
== Expanded: ==
- <div id="testEditAsHTML">
- <div id="node-to-edit-as-html">
<span id="span">Text</span>
</div>
</div>
Post-redo (action):
- <div id="testEditAsHTML">
+ <div id="node-to-edit-as-html">…</div>
<span>Second node</span>
</div>
== Expanded: ==
- <div id="testEditAsHTML">
- <div id="node-to-edit-as-html">
<div id="span2">Text2</div>
</div>
<span>Second node</span>
</div>