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

Unified Diff: LayoutTests/fast/dom/shadow/shadow-insertion-point-rendering.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-insertion-point-rendering.html
diff --git a/LayoutTests/fast/dom/shadow/shadow-insertion-point-rendering.html b/LayoutTests/fast/dom/shadow/shadow-insertion-point-rendering.html
index 9f6cbc0eee24be8c3a651071f26436d3e18c3260..0d807b3f04c376de11a94701c11baf3e0a1edb0f 100644
--- a/LayoutTests/fast/dom/shadow/shadow-insertion-point-rendering.html
+++ b/LayoutTests/fast/dom/shadow/shadow-insertion-point-rendering.html
@@ -6,75 +6,74 @@
<body>
<script>
function description(text) {
- return createDOM("h1", {},
+ return createDOM("div", {},
document.createTextNode(text));
}
-function createDivWithText(text) {
- return createDOM("div", {},
- document.createTextNode(text));
+function createSpanWithText(text) {
+ return createDOM("span", {},
+ document.createTextNode(text + " "));
}
var testcases = [
description('A shadow element with a content element'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
+ createSpanWithText("before"),
createDOM("shadow", {},
createDOM("content", {})),
- createDivWithText("after"))),
+ createSpanWithText("after"))),
description('A shadow element without a content element'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
+ createSpanWithText("before"),
createDOM("shadow", {}),
- createDivWithText("after"))),
+ createSpanWithText("after"))),
description('A shadow element with a parameter'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
+ createSpanWithText("before"),
createDOM("shadow", {},
- createDivWithText("shadow-child")),
- createDivWithText("after"))),
+ createSpanWithText("shadow-child")),
+ createSpanWithText("after"))),
description('An inactive shadow element'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
+ createSpanWithText("before"),
createDOM("shadow", {},
createDOM("content", {})),
- createDivWithText("middle"),
+ createSpanWithText("middle"),
createDOM("shadow", {},
- createDivWithText("shadow-child")),
- createDivWithText("after"))),
+ createSpanWithText("shadow-child")),
+ createSpanWithText("after"))),
description('A shadow element comes before a content element'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
- createDOM("shadow", {},
- createDOM("content", {})),
- createDivWithText("middle"),
+ createSpanWithText("before"),
+ createDOM("shadow", {}),
+ createSpanWithText("middle"),
createDOM("content", {}),
- createDivWithText("after"))),
+ createSpanWithText("after"))),
description('A shadow element comes after a content element'),
createDOM('div', {},
- createDivWithText("host-child"),
+ createSpanWithText("host-child"),
createShadowRoot(
- createDivWithText("before"),
+ createSpanWithText("before"),
createDOM("content", {}),
- createDivWithText("middle"),
+ createSpanWithText("middle"),
createDOM("shadow", {},
createDOM("content", {})),
- createDivWithText("after"))),
+ createSpanWithText("after"))),
];
testcases.forEach(function(element) {

Powered by Google App Engine
This is Rietveld 408576698