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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/slots-api-in-v0.html

Issue 2051373002: Rewrite and organize tests in LayoutTests/shadow-dom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean-test2-3
Patch Set: clean up 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-api-in-v0.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/slots-api-in-v0.html b/third_party/WebKit/LayoutTests/shadow-dom/slots-api-in-v0.html
deleted file mode 100644
index af765bde74faea4c6523b2afb66fb729e588ffb8..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/shadow-dom/slots-api-in-v0.html
+++ /dev/null
@@ -1,41 +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='host'>
- <template data-mode='v0'>
- <slot name='slot1'>
- <div id='fallback1'></div>
- </slot>
- <slot name='slot2'>
- <div id='fallback2'></div>
- </slot>
- </template>
- <slot id='slot0'>
- <div id='fallback0'></div>
- </slot>
- <div id='child1' slot='slot1'></div>
-</div>
-<script>
-'use strict';
-convertTemplatesToShadowRootsWithin(host);
-removeWhiteSpaceOnlyTextNodes(host);
-
-const slot1 = host.shadowRoot.querySelector('[name=slot1]');
-const slot2 = host.shadowRoot.querySelector('[name=slot2]');
-const fallback1 = host.shadowRoot.querySelector('#fallback1');
-const fallback2 = host.shadowRoot.querySelector('#fallback2');
-
-test(() => {
- assert_equals(fallback0.assignedSlot, null);
- assert_equals(fallback1.assignedSlot, null);
- assert_equals(fallback2.assignedSlot, null);
- assert_equals(child1.assignedSlot, null);
-}, "assignedSlot");
-
-test(() => {
- assert_array_equals(slot0.assignedNodes(), []);
- assert_array_equals(slot1.assignedNodes(), []);
- assert_array_equals(slot2.assignedNodes(), []);
-}, "assignedNodes");
-</script>

Powered by Google App Engine
This is Rietveld 408576698