Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: LayoutTests/fast/dom/custom/type-extension-undo-assert.html

Issue 22320009: Don't come undone when undoing the editing of a Custom Element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Resolve conflicts. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/type-extension-undo-assert-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../js/resources/js-test-pre.js"></script>
3 <div id="test" contenteditable><b is="x-a" style="font-style: italic;">Hello, wo rld!</b></div>
4 <script>
5 // This test is based on
6 // editing/undo/replace-by-span-then-remove.html. Fuzzing tickled an
7 // assert; this is the reduced test case. Bolding will swap the B for
8 // a SPAN; undoing and redoing the command will reapply the "is"
9 // attribute to the original custom element.
10
11 description('Tests that execCommand undo doesn\'t hork custom elements');
12
13 var test = document.getElementById('test');
14 window.getSelection().selectAllChildren(test);
15 document.execCommand('bold', false, null);
16 document.execCommand('undo', false, null);
17 document.execCommand('undo', false, null);
18
19 testPassed('did not crash');
20 var successfullyParsed = true;
21 </script>
22 <script src="../../js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/custom/type-extension-undo-assert-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698