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

Unified Diff: LayoutTests/fast/dom/shadow/new-style-inserted-into-parent-treescope.html

Issue 215313003: Remove applyAuthorStyles flag from ShadowRoot. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Git is hard 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/new-style-inserted-into-parent-treescope.html
diff --git a/LayoutTests/fast/dom/shadow/new-style-inserted-into-parent-treescope.html b/LayoutTests/fast/dom/shadow/new-style-inserted-into-parent-treescope.html
deleted file mode 100644
index e787308421fecebc34e793f39be0fbae216a6ad8..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/new-style-inserted-into-parent-treescope.html
+++ /dev/null
@@ -1,34 +0,0 @@
-<!doctype html>
-<html>
-<head>
-<script src="../../../resources/js-test.js"></script>
-<script src="resources/shadow-dom.js"></script>
-<style>
-span { color: red; }
-</style>
-</head>
-<body>
- <div id='sandbox'></div>
- <pre id='console'></pre>
-</body>
-<script>
-description('Test the case: a treescope has some style element and a new style is inserted into its parent treescope.')
-
-sandbox.appendChild(
- createDOM('div', {'id': 'host1'},
- createShadowRoot(
- createDOM('div', {'id': 'host2'},
- createShadowRoot(
- createDOM('style', {},
- document.createTextNode('div { color: red; }')),
- createDOM('span', {'id': 'target'},
- document.createTextNode('Hello')))))));
-getNodeInTreeOfTrees('host1/host2/').applyAuthorStyles = true;
-document.body.offsetLeft;
-getNodeInTreeOfTrees('host1/').appendChild(
- createDOM('style', {},
- document.createTextNode('span { color: green; }')));
-
-shouldBe("getComputedStyle(getNodeInTreeOfTrees('host1/host2/target')).color", '"rgb(0, 128, 0)"');
-</script>
-</html>

Powered by Google App Engine
This is Rietveld 408576698