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

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html

Issue 2623223003: Import wpt@82173128ef6f536e5faaafc29eecc521380f81ae (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html b/third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html
index d2f6bb8c206ad2b957a443373f7c25eb111add7a..7fc198a79ce21a4638cb71ac8498aafbc4aa1c91 100644
--- a/third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html
+++ b/third_party/WebKit/LayoutTests/imported/wpt/innerText/setter.html
@@ -5,7 +5,13 @@
<div id="container"></div>
<script>
function setupTest(context, plain) {
- container.innerHTML = context;
+ // context is either a string or an element node
+ if (typeof context === "string") {
+ container.innerHTML = context;
+ } else {
+ container.innerHTML = "";
+ container.appendChild(context);
+ }
var e = container.firstChild;
while (e && e.nodeType != Node.ELEMENT_NODE) {
e = e.nextSibling;

Powered by Google App Engine
This is Rietveld 408576698