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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLElement/set-inner-outer-optimization.html

Issue 2532393003: Remove the wrong optimization in replacing a text node with innerHTML (Closed)
Patch Set: use NeedsRebaseline Created 4 years 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
OLDNEW
1 <html> 1 <html>
2 2
3 <head> 3 <head>
4 4
5 <script> 5 <script>
6 6
7 var modified; 7 var modified;
8 var oldElement; 8 var oldElement;
9 var oldContent; 9 var oldContent;
10 var failureCount = 0; 10 var failureCount = 0;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 var parent = document.getElementById("parent"); 68 var parent = document.getElementById("parent");
69 parent.addEventListener("DOMSubtreeModified", setModifiedFlag, true); 69 parent.addEventListener("DOMSubtreeModified", setModifiedFlag, true);
70 70
71 runTest('', 'innerHTML', '', 'not modified'); 71 runTest('', 'innerHTML', '', 'not modified');
72 runTest('', 'innerHTML', 'text', 'modified'); 72 runTest('', 'innerHTML', 'text', 'modified');
73 runTest('', 'innerHTML', '<a></a>', 'modified'); 73 runTest('', 'innerHTML', '<a></a>', 'modified');
74 runTest('', 'innerHTML', '<a></a><b></b>', 'modified'); 74 runTest('', 'innerHTML', '<a></a><b></b>', 'modified');
75 75
76 runTest('text', 'innerHTML', '', 'modified'); 76 runTest('text', 'innerHTML', '', 'modified');
77 runTest('text', 'innerHTML', 'different text', 'modified, with same first ch ild'); 77 runTest('text', 'innerHTML', 'different text', 'modified');
78 runTest('text', 'innerHTML', 'text', 'not modified'); 78 runTest('text', 'innerHTML', 'text', 'modified');
79 runTest('text', 'innerHTML', '<a></a>', 'modified'); 79 runTest('text', 'innerHTML', '<a></a>', 'modified');
80 runTest('text', 'innerHTML', '<a></a><b></b>', 'modified'); 80 runTest('text', 'innerHTML', '<a></a><b></b>', 'modified');
81 81
82 runTest('<a></a>', 'innerHTML', '', 'modified'); 82 runTest('<a></a>', 'innerHTML', '', 'modified');
83 runTest('<a></a>', 'innerHTML', 'text', 'modified'); 83 runTest('<a></a>', 'innerHTML', 'text', 'modified');
84 runTest('<a></a>', 'innerHTML', '<a></a>', 'modified'); 84 runTest('<a></a>', 'innerHTML', '<a></a>', 'modified');
85 runTest('<a></a>', 'innerHTML', '<a href=""></a>', 'modified'); 85 runTest('<a></a>', 'innerHTML', '<a href=""></a>', 'modified');
86 runTest('<a></a>', 'innerHTML', '<a>text</a>', 'modified'); 86 runTest('<a></a>', 'innerHTML', '<a>text</a>', 'modified');
87 runTest('<a></a>', 'innerHTML', '<a></a><b></b>', 'modified'); 87 runTest('<a></a>', 'innerHTML', '<a></a><b></b>', 'modified');
88 88
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 The calls are optimized to not do any work in cases where the DOM would not change at all. 162 The calls are optimized to not do any work in cases where the DOM would not change at all.
163 </p> 163 </p>
164 164
165 <p id="results"></p> 165 <p id="results"></p>
166 166
167 <div id="parent"></div> 167 <div id="parent"></div>
168 168
169 </body> 169 </body>
170 170
171 </html> 171 </html>
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/LayoutTests/fast/dom/adopt-node-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698