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

Side by Side Diff: LayoutTests/fast/dom/Node/textContent-set-undefined.html

Issue 303163002: Node.textContent setter should treat undefined the same way as null (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/dom/Node.idl » ('j') | Source/core/dom/Node.idl » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
arv (Not doing code reviews) 2014/05/29 16:14:51 Maybe add a link[rel=help] like you used to do?
Inactive 2014/05/29 16:54:13 Done.
3 <body>
4 <script src="../../../resources/testharness.js"></script>
5 <script src="../../../resources/testharnessreport.js"></script>
6 <div id="testDiv">test</div>
7 <script>
8 test(function() {
9 var testDiv = document.getElementById("testDiv");
10 assert_equals(testDiv.textContent, "test");
11 testDiv.textContent = null;
12 assert_equals(testDiv.textContent, "");
13 testDiv.textContent = "test";
14 assert_equals(testDiv.textContent, "test");
15 testDiv.textContent = undefined;
16 assert_equals(testDiv.textContent, "");
17 }, "Test that setting Node.textContent to undefined does the same as null");
18 </script>
19 </body>
20 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.idl » ('j') | Source/core/dom/Node.idl » ('J')

Powered by Google App Engine
This is Rietveld 408576698