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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/v1-slots-dom-mutation.html

Issue 1863413004: Rename Slot.getAssingedNodes() -> Slot.assignedNodes() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/v1-slots-dom-mutation.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/v1-slots-dom-mutation.html b/third_party/WebKit/LayoutTests/shadow-dom/v1-slots-dom-mutation.html
index 42cb5d0d487579d4ccc691cc4328d05bd4899b69..8579694f36e1005660b4af283ac9b42fcb24abc4 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/v1-slots-dom-mutation.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/v1-slots-dom-mutation.html
@@ -25,8 +25,8 @@ const fallback1 = host.shadowRoot.querySelector('#fallback1');
const fallback2 = host.shadowRoot.querySelector('#fallback2');
test(() => {
- assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]);
- assert_array_equals(slot2.getAssignedNodes({flatten: true}), [fallback2]);
+ assert_array_equals(slot1.assignedNodes({flatten: true}), [child1]);
+ assert_array_equals(slot2.assignedNodes({flatten: true}), [fallback2]);
}, "Slot's distributed nodes");
test(() => {
@@ -35,24 +35,24 @@ test(() => {
slot0.setAttribute('name', 'slot1');
host.shadowRoot.insertBefore(slot0, slot1);
- assert_array_equals(slot0.getAssignedNodes({flatten: true}), [child1]);
- assert_array_equals(slot1.getAssignedNodes({flatten: true}), [fallback1]);
- assert_array_equals(slot2.getAssignedNodes({flatten: true}), [fallback2]);
+ assert_array_equals(slot0.assignedNodes({flatten: true}), [child1]);
+ assert_array_equals(slot1.assignedNodes({flatten: true}), [fallback1]);
+ assert_array_equals(slot2.assignedNodes({flatten: true}), [fallback2]);
// Remove
host.shadowRoot.removeChild(slot0);
- assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]);
- assert_array_equals(slot2.getAssignedNodes({flatten: true}), [fallback2]);
+ assert_array_equals(slot1.assignedNodes({flatten: true}), [child1]);
+ assert_array_equals(slot2.assignedNodes({flatten: true}), [fallback2]);
}, "Slot's distributed nodes after inserting/removeing a slot.");
test(() => {
// Attribute change
slot1.setAttribute('name', 'slot-foo');
- assert_array_equals(slot1.getAssignedNodes({flatten: true}), [fallback1]);
- assert_array_equals(slot2.getAssignedNodes({flatten: true}), [fallback2]);
+ assert_array_equals(slot1.assignedNodes({flatten: true}), [fallback1]);
+ assert_array_equals(slot2.assignedNodes({flatten: true}), [fallback2]);
child1.setAttribute('slot', 'slot-foo');
- assert_array_equals(slot1.getAssignedNodes({flatten: true}), [child1]);
- assert_array_equals(slot2.getAssignedNodes({flatten: true}), [fallback2]);
+ assert_array_equals(slot1.assignedNodes({flatten: true}), [child1]);
+ assert_array_equals(slot2.assignedNodes({flatten: true}), [fallback2]);
}, "Slot's distributed nodes after the attribute is changed.");
</script>

Powered by Google App Engine
This is Rietveld 408576698