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

Side by Side Diff: LayoutTests/fast/dom/document-set-title-no-reuse.html

Issue 107513013: Remove children of title node before updating (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: remove children before updateTitle for less title update dispatches Created 7 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-no-reuse-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="../../resources/js-test.js"></script>
3 <script type="text/javascript">
4 description("Test that setting document.title does not reuse &lt;title&gt;'s tex tnode child");
5
6 onload = function()
7 {
8 document.title = "aaa";
9 oldnode = document.getElementsByTagName("title")[0].firstChild;
10 document.title = "bbb";
11 shouldBeTrue('oldnode.textContent != "bbb"');
12 shouldBeTrue('oldnode != document.getElementsByTagName("title")[0].firstChil d');
13 }
14 </script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-no-reuse-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698