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

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

Issue 138213005: Revert "Remove children of title node before updating" (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-mutations-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 <title>old</title>
3 <script src="../../resources/js-test.js"></script>
4 <script>
5 window.jsTestIsAsync = true;
6 description("Test for mutations to childList when setting document.title.");
7 var mutations;
8 function finish() {
9 shouldBe('mutations.length', '1');
10 shouldBe('mutations[0].type', '"childList"');
11 shouldBe('mutations[0].addedNodes.length', '1');
12 shouldBe('mutations[0].removedNodes.length', '1');
13 finishJSTest();
14 }
15
16 var titleElement = document.querySelector('title');
17 var i = 0;
18
19 var observer = new MutationObserver(function(mutations) {
20 window.mutations = mutations;
21 });
22 observer.observe(titleElement, { childList: true });
23 document.title = "new";
24
25 setTimeout(finish, 0);
26 </script>
27 <body>
28 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-mutations-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698