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

Unified Diff: third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/v1-default-slots.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.html
diff --git a/third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.html b/third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.html
index 0d6457e04638de3a02d32a47b674cbf1a9758c26..c16889d5a5f70cbeeb7ed26933a39e1cea9db447 100644
--- a/third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.html
+++ b/third_party/WebKit/LayoutTests/shadow-dom/slotchange-event.html
@@ -24,17 +24,17 @@ async_test((test) => {
const d1_s1 = d1_shadow.querySelector('slot');
const d1_d1_s1 = d1_d1_shadow.querySelector('slot');
- assert_array_equals(d1_s1.getAssignedNodes(), [d2]);
- assert_array_equals(d1_s1.getAssignedNodes({'flatten': true}), [d2]);
+ assert_array_equals(d1_s1.assignedNodes(), [d2]);
+ assert_array_equals(d1_s1.assignedNodes({'flatten': true}), [d2]);
- assert_array_equals(d1_d1_s1.getAssignedNodes(), [d1_s1]);
- assert_array_equals(d1_d1_s1.getAssignedNodes({'flatten': true}), [d2]);
+ assert_array_equals(d1_d1_s1.assignedNodes(), [d1_s1]);
+ assert_array_equals(d1_d1_s1.assignedNodes({'flatten': true}), [d2]);
d1_s1.addEventListener('slotchange', (e) => {
test.step(() => {
assert_equals(e.target, d1_s1);
- assert_array_equals(d1_s1.getAssignedNodes(), [d2, d3]);
- assert_array_equals(d1_s1.getAssignedNodes({'flatten': true}), [d2, d3]);
+ assert_array_equals(d1_s1.assignedNodes(), [d2, d3]);
+ assert_array_equals(d1_s1.assignedNodes({'flatten': true}), [d2, d3]);
assert_array_equals(e.scoped, true);
count++;
// The order when a slotchange event is dispatched in the slots is not guranteed.
@@ -46,8 +46,8 @@ async_test((test) => {
d1_d1_s1.addEventListener('slotchange', (e) => {
test.step(() => {
assert_equals(e.target, d1_d1_s1);
- assert_array_equals(d1_d1_s1.getAssignedNodes(), [d1_s1]);
- assert_array_equals(d1_d1_s1.getAssignedNodes({'flatten': true}), [d2, d3]);
+ assert_array_equals(d1_d1_s1.assignedNodes(), [d1_s1]);
+ assert_array_equals(d1_d1_s1.assignedNodes({'flatten': true}), [d2, d3]);
assert_array_equals(e.scoped, true);
count++;
if (count == 2)
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/shadow-dom/v1-default-slots.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698