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

Unified Diff: LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html

Issue 137993003: Revert the feature of the <shadow> element as 'a function call' to the previous behavior. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update LayoutTests/TestExpectations 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html
diff --git a/LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html b/LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html
index 91a362646b68fabe3551e4b4cec7ff632ca06c53..5776df980ccf83adc4010ae0b2e76876d7af6741 100644
--- a/LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html
+++ b/LayoutTests/fast/dom/shadow/shadow-element-rendering-single.html
@@ -32,7 +32,6 @@ testFuncs.push(function renderingShadowElementDynamicallyAdded(callIfDone) {
var f = (function(callIfDone, root, sr) { return function() {
var shadow = document.createElement('shadow');
- shadow.appendChild(document.createElement('content'));
sr.appendChild(shadow);
callIfDone();
}})(callIfDone, root, sr);
@@ -48,7 +47,6 @@ testFuncs.push(function renderingShadowElementDynamicallyRemoved(callIfDone) {
root.appendChild(createSpanWithText('SHOULD NOT BE RENDERED'));
var shadow = document.createElement('shadow');
- shadow.appendChild(document.createElement('content'));
var sr = root.createShadowRoot();
sr.appendChild(createSpanWithText('BEFORE'));
@@ -74,7 +72,6 @@ testFuncs.push(function renderingLightChildrenDynamicallyAdded(callIfDone) {
var sr = root.createShadowRoot();
sr.appendChild(createSpanWithText('BEFORE'));
var shadow = document.createElement('shadow');
- shadow.appendChild(document.createElement('content'));
sr.appendChild(shadow);
sr.appendChild(createSpanWithText('AFTER'));
@@ -90,15 +87,12 @@ testFuncs.push(function renderingLightChildrenDynamicallyAdded(callIfDone) {
testFuncs.push(function renderingLightChildrenDynamicallyRemoved(callIfDone) {
document.getElementById('expect-container').innerHTML =
- "<div><span>BEFORE</span><span>MID</span><span>AFTER</span></div>"
+ "<div><span>BEFORE</span><span>AFTER</span></div>"
var root = document.createElement('div');
root.appendChild(createSpanWithText('SHOULD NOT BE RENDERED'));
var shadow = document.createElement('shadow');
- var content = document.createElement('content');
- content.appendChild(createSpanWithText('MID'));
- shadow.appendChild(content);
var sr = root.createShadowRoot();
sr.appendChild(createSpanWithText('BEFORE'));

Powered by Google App Engine
This is Rietveld 408576698