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

Unified Diff: LayoutTests/fast/dom/shadow/dynamically-added-cat-hat-rules.html

Issue 289923004: Rename layout test filenames with "cat" and "hat" combinators (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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/dynamically-added-cat-hat-rules.html
diff --git a/LayoutTests/fast/dom/shadow/dynamically-added-cat-hat-rules.html b/LayoutTests/fast/dom/shadow/dynamically-added-cat-hat-rules.html
deleted file mode 100644
index 7b8e4a89946e4a49c0235ec5a20902f1bc147b45..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/dynamically-added-cat-hat-rules.html
+++ /dev/null
@@ -1,53 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="resources/shadow-dom.js"></script>
-<script src="../../../resources/js-test.js"></script>
-</head>
-<body>
-<div id='sandbox'>
- <div id='target5' class='bar'>Should have blue background.</div>
-</div>
-<pre id='console'></pre>
-</body>
-<script>
-
-function backgroundColorOf(node)
-{
- return document.defaultView.getComputedStyle(node, null).getPropertyValue('background-color');
-}
-
-function backgroundColorShouldBe(selector, color)
-{
- var text = 'backgroundColorOf(getNodeInTreeOfTrees("' + selector + '"))';
- shouldBeEqualToString(text, color);
-}
-
-var sandbox = document.getElementById('sandbox');
-sandbox.appendChild(
- createDOM('div', {'id': 'host'},
- createShadowRoot(
- createDOM('div', {'id': 'target1', 'class': 'foo'},
- document.createTextNode('Should have green background')),
- createDOM('div', {'id': 'target2'},
- document.createTextNode('Should have green background')),
- createDOM('div', {'id': 'target3', 'class': 'bar'},
- document.createTextNode('Should have blue background')),
- createDOM('div', {'id': 'target4'},
- document.createTextNode('Should have blue background')))));
-document.body.offsetLeft;
-
-var style = document.createElement('style');
-style.innerHTML = 'div::shadow .foo { background: green; }'
- + 'div::shadow #target2 { background: green; }'
- + 'div /deep/ .bar { background: blue; }'
- + 'div /deep/ #target4 { background: blue; }';
-document.body.appendChild(style);
-
-backgroundColorShouldBe('host/target1', 'rgb(0, 128, 0)');
-backgroundColorShouldBe('host/target2', 'rgb(0, 128, 0)');
-backgroundColorShouldBe('host/target3', 'rgb(0, 0, 255)');
-backgroundColorShouldBe('host/target4', 'rgb(0, 0, 255)');
-backgroundColorShouldBe('target5', 'rgb(0, 0, 255)');
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698