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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/shadow/dynamically-added-deep-combinator-and-shadow-pseudo-element.html

Issue 2843883002: Remove, or rewrite if necessary, tests which use /deep/ or ::shadow (Closed)
Patch Set: rev Created 3 years, 8 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/fast/dom/shadow/dynamically-added-deep-combinator-and-shadow-pseudo-element.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/shadow/dynamically-added-deep-combinator-and-shadow-pseudo-element.html b/third_party/WebKit/LayoutTests/fast/dom/shadow/dynamically-added-deep-combinator-and-shadow-pseudo-element.html
deleted file mode 100644
index 110a3c091828f754532ec1e61d4e1d8edad6eedc..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/dom/shadow/dynamically-added-deep-combinator-and-shadow-pseudo-element.html
+++ /dev/null
@@ -1,41 +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>
-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