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

Unified Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-in-older-shadow.html

Issue 210953003: Make style independent of the presence of the <shadow> element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/content-pseudo-element-in-older-shadow.html
diff --git a/LayoutTests/fast/dom/shadow/content-pseudo-element-in-inert-shadow.html b/LayoutTests/fast/dom/shadow/content-pseudo-element-in-older-shadow.html
similarity index 74%
rename from LayoutTests/fast/dom/shadow/content-pseudo-element-in-inert-shadow.html
rename to LayoutTests/fast/dom/shadow/content-pseudo-element-in-older-shadow.html
index 284541dbb6fb6920170a0ccd5ebe7900101d4a70..0085b3e26a1ad1bbf50a3ff3c27a8770a41a27c7 100644
--- a/LayoutTests/fast/dom/shadow/content-pseudo-element-in-inert-shadow.html
+++ b/LayoutTests/fast/dom/shadow/content-pseudo-element-in-older-shadow.html
@@ -14,11 +14,10 @@ function borderColorOf(node)
return document.defaultView.getComputedStyle(node, null).getPropertyValue('border-color');
}
-function borderColorShouldNotBe(selector, color)
+function borderColorShouldBe(selector, color)
{
var text = 'borderColorOf(getNodeInTreeOfTrees("' + selector + '"))';
- var unevaledString = '"' + color.replace(/\\/g, "\\\\").replace(/"/g, "\"") + '"';
- shouldNotBe(text, unevaledString);
+ shouldBeEqualToString(text, color);
}
function cleanUp()
@@ -26,14 +25,14 @@ function cleanUp()
document.getElementById('sandbox').innerHTML = '';
}
-description('crbug.com/341372: Test for rules with ::content declared in inert shadow trees');
+description('crbug.com/353406: Test for rules with ::content declared in older shadow trees');
var sandbox = document.getElementById('sandbox');
sandbox.appendChild(
createDOM('div', {'id': 'host'},
createShadowRoot(
createDOM('style', {},
- document.createTextNode('content::content div { border: 1px solid red; }'),
+ document.createTextNode('content::content div { border: 1px solid green; }'),
createDOM('div', {},
document.createTextNode('inert')))),
createShadowRoot(
@@ -41,7 +40,7 @@ sandbox.appendChild(
createDOM('div', {'id': 'target'},
document.createTextNode('no border'))));
-borderColorShouldNotBe('target', 'rgb(255, 0, 0)');
+borderColorShouldBe('target', 'rgb(0, 128, 0)');
cleanUp();
</script>

Powered by Google App Engine
This is Rietveld 408576698