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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/slots-in-document-tree.html

Issue 2060793002: Rewrite tests for slots (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@events-related
Patch Set: fixed Created 4 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/slots-in-document-tree.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/slots-in-document-tree.html b/third_party/WebKit/LayoutTests/shadow-dom/slots-in-document-tree.html
deleted file mode 100644
index c0458ecab1f7f34ed4024edd44fb929b80fa6aad..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shadow-dom/slots-in-document-tree.html
+++ /dev/null
@@ -1,43 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-<script src="resources/shadow-dom.js"></script>
-<div id="wrapper">
- <slot id="slot1"></slot>
- <slot id="slot2">
- <div id="child1"></div>
- </slot>
- <slot id="slot3">
- <div id="child2"></div>
- <slot id="slot4">
- <div id="child3"></div>
- <div id="child4"></div>
- </slot>
- </slot>
-</div>
-<script>
-'use strict';
-
-removeWhiteSpaceOnlyTextNodes(wrapper);
-
-test(() => {
- assert_equals(child1.assignedSlot, null);
- assert_equals(child2.assignedSlot, null);
- assert_equals(child3.assignedSlot, null);
- assert_equals(child4.assignedSlot, null);
-}, 'assignedSlot');
-
-test(() => {
- assert_array_equals(slot1.assignedNodes(), []);
- assert_array_equals(slot2.assignedNodes(), []);
- assert_array_equals(slot3.assignedNodes(), []);
- assert_array_equals(slot4.assignedNodes(), []);
-}, 'assignedNodes');
-
-test(() => {
- assert_array_equals(slot1.assignedNodes({ flatten: true }), []);
- assert_array_equals(slot2.assignedNodes({ flatten: true }), [child1]);
- assert_array_equals(slot3.assignedNodes({ flatten: true }), [child2, child3, child4]);
- assert_array_equals(slot4.assignedNodes({ flatten: true }), [child3, child4]);
-}, 'assignedNodes({ flatten: true })');
-</script>
« no previous file with comments | « third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698