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

Side by Side Diff: LayoutTests/fast/dom/document-set-title-no-child-on-empty.html

Issue 143363002: Don't create an empty text node when setting document.title to the empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix indentation in test 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-no-child-on-empty-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>document title and the empty string</title>
3 <script src="../../resources/js-test.js"></script>
4 <body>
5 <script>
6 description("On setting document.title to the empty string, no text node mus t be created");
7
8 var head = document.documentElement.firstChild;
9 head.removeChild(head.firstChild);
10 shouldBeEqualToString("document.title", "");
11 document.title = "";
12 shouldBeEqualToString("document.title", "");
13 shouldBeTrue("head.lastChild instanceof HTMLTitleElement");
14 shouldBe("head.lastChild.firstChild", 'null');
15 </script>
16 </body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/document-set-title-no-child-on-empty-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698