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

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

Issue 2686793002: DOM: Do not skip 'replace data' operation on setting identical string to CharacterData. (Closed)
Patch Set: Created 3 years, 10 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
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 runTest('<a href="b" name="c"></a>', 'innerHTML', '<a href="b" name="c"></a> ', 'modified'); 93 runTest('<a href="b" name="c"></a>', 'innerHTML', '<a href="b" name="c"></a> ', 'modified');
94 runTest('<a href="b" name="c"></a>', 'innerHTML', '<a name="c" href="b"></a> ', 'modified'); 94 runTest('<a href="b" name="c"></a>', 'innerHTML', '<a name="c" href="b"></a> ', 'modified');
95 95
96 runTest('', 'innerText', '', 'not modified'); 96 runTest('', 'innerText', '', 'not modified');
97 runTest('', 'innerText', 'text', 'modified'); 97 runTest('', 'innerText', 'text', 'modified');
98 runTest('', 'innerText', '<a></a>', 'modified'); 98 runTest('', 'innerText', '<a></a>', 'modified');
99 runTest('', 'innerText', '<a></a><b></b>', 'modified'); 99 runTest('', 'innerText', '<a></a><b></b>', 'modified');
100 100
101 runTest('text', 'innerText', '', 'modified'); 101 runTest('text', 'innerText', '', 'modified');
102 runTest('text', 'innerText', 'different text', 'modified, with same first ch ild'); 102 runTest('text', 'innerText', 'different text', 'modified, with same first ch ild');
103 runTest('text', 'innerText', 'text', 'not modified'); 103 runTest('text', 'innerText', 'text', 'modified, with same first child');
104 104
105 runTest('<a></a>', 'innerText', '', 'modified'); 105 runTest('<a></a>', 'innerText', '', 'modified');
106 runTest('<a></a>', 'innerText', 'text', 'modified'); 106 runTest('<a></a>', 'innerText', 'text', 'modified');
107 107
108 runTest('', 'outerHTML', '', 'replaced'); 108 runTest('', 'outerHTML', '', 'replaced');
109 runTest('', 'outerHTML', 'text', 'replaced'); 109 runTest('', 'outerHTML', 'text', 'replaced');
110 runTest('', 'outerHTML', '<a></a>', 'replaced'); 110 runTest('', 'outerHTML', '<a></a>', 'replaced');
111 runTest('', 'outerHTML', '<a></a><b></b>', 'replaced'); 111 runTest('', 'outerHTML', '<a></a><b></b>', 'replaced');
112 runTest('', 'outerHTML', '<div></div>', 'replaced'); 112 runTest('', 'outerHTML', '<div></div>', 'replaced');
113 runTest('', 'outerHTML', '<div>text</div>', 'replaced'); 113 runTest('', 'outerHTML', '<div>text</div>', 'replaced');
(...skipping 48 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

Powered by Google App Engine
This is Rietveld 408576698