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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.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
Index: third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html b/third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html
deleted file mode 100644
index d709084220e496b22dcca443ea171bffc3e43283..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shadow-dom/slots-fallback-api-4.html
+++ /dev/null
@@ -1,34 +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="d1">
- <template data-mode="open">
- <div id="d1_d1">
- <template data-mode="open">
- <slot id="d1_d1_s1" name="d1_d1_s1"></slot>
- </template>
- <slot id="d1_s1" name="d1_s1" slot="d1_d1_s1"></slot>
- </div>
- </template>
-</div>
-<script>
-'use strict';
-
-let n = createTestTree(d1);
-removeWhiteSpaceOnlyTextNodes(n.d1);
-
-test(() => {
- assert_array_equals(n.d1_s1.assignedNodes(), []);
- assert_array_equals(n.d1_s1.assignedNodes({ flatten: true }), []);
- assert_array_equals(n.d1_d1_s1.assignedNodes(), [n.d1_s1]);
- assert_array_equals(n.d1_d1_s1.assignedNodes({ flatten: true }), []);
-
- let d1_d2 = document.createElement('div');
- d1_d2.setAttribute('id', 'd1_d2');
- n.d1_s1.appendChild(d1_d2);
-
- assert_array_equals(n.d1_s1.assignedNodes({ flatten: true }), [d1_d2]);
- assert_array_equals(n.d1_d1_s1.assignedNodes({ flatten: true }), [d1_d2]);
-}, "Distribution should be updated after mutating fallback contents");
-</script>

Powered by Google App Engine
This is Rietveld 408576698