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

Side by Side Diff: LayoutTests/fast/dom/Text/script-tests/replaceWholeText.js

Issue 733943004: Remove Text.replaceWholeText() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 1 month 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
OLDNEW
(Empty)
1 description("Test wholeText and replaceWholeText")
2
3 var para = document.createElement('p');
4 para.appendChild(document.createTextNode('A'));
5 var textB = document.createTextNode('B');
6 para.appendChild(textB);
7 para.appendChild(document.createElement('p'));
8 para.appendChild(document.createTextNode('C'));
9
10 shouldBe("textB.wholeText", "'AB'");
11 shouldBe("para.textContent", "'ABC'");
12 textB.replaceWholeText("XYZ");
13 shouldBe("textB.wholeText", "'XYZ'");
14 shouldBe("para.textContent", "'XYZC'");
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698