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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/document-set-title-no-reuse.html
diff --git a/LayoutTests/fast/dom/document-set-title-no-reuse.html b/LayoutTests/fast/dom/document-set-title-no-reuse.html
new file mode 100644
index 0000000000000000000000000000000000000000..e3975db6ac6ad554bcebaead434421d9408bdd91
--- /dev/null
+++ b/LayoutTests/fast/dom/document-set-title-no-reuse.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script type="text/javascript">
+description("Test that setting document.title does not reuse &lt;title&gt;'s textnode child");
+
+onload = function()
+{
+ document.title = "aaa";
+ oldnode = document.getElementsByTagName("title")[0].firstChild;
+ document.title = "bbb";
+ shouldBeTrue('oldnode.textContent != "bbb"');
+ shouldBeTrue('oldnode != document.getElementsByTagName("title")[0].firstChild');
+}
+</script>
« 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