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

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: Add spec url to test case 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') | 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 <html>
3 <head>
4 <link rel="help" href="http://dom.spec.whatwg.org/#dom-node-textcontent">
5 <script src="../../../resources/testharness.js"></script>
6 <script src="../../../resources/testharnessreport.js"></script>
7 </head>
8 <body>
9 <div id="testDiv">test</div>
10 <script>
11 test(function() {
12 var testDiv = document.getElementById("testDiv");
13 assert_equals(testDiv.textContent, "test");
14 testDiv.textContent = null;
15 assert_equals(testDiv.textContent, "");
16 testDiv.textContent = "test";
17 assert_equals(testDiv.textContent, "test");
18 testDiv.textContent = undefined;
19 assert_equals(testDiv.textContent, "");
20 }, "Test that setting Node.textContent to undefined does the same as null");
21 </script>
22 </body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/Node.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698