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

Unified Diff: LayoutTests/fast/dom/shadow/shadowdom-for-input-button.html

Issue 22852020: Only allow reprojecting shadows between ShadowRoots of the same type (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Delete another test Created 7 years, 4 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/shadowdom-for-input-button.html
diff --git a/LayoutTests/fast/dom/shadow/shadowdom-for-input-button.html b/LayoutTests/fast/dom/shadow/shadowdom-for-input-button.html
deleted file mode 100644
index 006548020eba72a4f02a82d716c7aeb232b09bde..0000000000000000000000000000000000000000
--- a/LayoutTests/fast/dom/shadow/shadowdom-for-input-button.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<body>
-<script>
-if (window.internals)
- internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
-</script>
-
-<p>1. If an input element has a shadow tree containing a &lt;shadow> element, it should get the value text of the input element.</p>
-<div id="shadow">
-<input type="button" value="Foo"><input type="button">
-<input type="reset" value="Foo"><input type="reset">
-<input type="submit" value="Foo"><input type="submit">
-</div>
-
-<p>2. If an author shadow tree contains no &lt;shadow> element, the button value should not be rendered.</p>
-<div id="no-shadow">
-<input type="button" value="Foo"><input type="button">
-<input type="reset" value="Foo"><input type="reset">
-<input type="submit" value="Foo"><input type="submit">
-</div>
-
-<p>3. If an author shadow tree contains only &lt;shadow> element, the button should be rendered as it didn't have shadow trees.</p>
-<div id="only-shadow">
-<input type="button" value="Foo"><input type="button">
-<input type="reset" value="Foo"><input type="reset">
-<input type="submit" value="Foo"><input type="submit">
-</div>
-
-<p>4. Complex shadow tree.</p>
-<div id="complex-shadow">
-<input type="button" value="Foo"> <input type="button">
-<input type="reset" value="Foo"> <input type="reset">
-<input type="submit" value="Foo"> <input type="submit">
-</div>
-
-<script>
-var hosts1 = document.querySelectorAll('#shadow input');
-for (var i = 0; i < hosts1.length; ++i)
- hosts1[i].createShadowRoot().innerHTML = '[<shadow></shadow>]';
-
-var hosts2 = document.querySelectorAll('#no-shadow input');
-for (var i = 0; i < hosts2.length; ++i)
- hosts2[i].createShadowRoot().innerHTML = '[]';
-
-var hosts3 = document.querySelectorAll('#only-shadow input');
-for (var i = 0; i < hosts3.length; ++i)
- hosts3[i].createShadowRoot().innerHTML = '<shadow />';
-
-var hosts4 = document.querySelectorAll('#complex-shadow input');
-for (var i = 0; i < hosts4.length; ++i)
- hosts4[i].createShadowRoot().innerHTML = 'prefix <span style="color:red;">&hearts;</span><shadow></shadow> suffix';
-</script>
-
-</body>

Powered by Google App Engine
This is Rietveld 408576698