Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify and fix iteration over radio button group #25490

Merged
merged 1 commit into from Jan 23, 2020

Conversation

@teapotd
Copy link
Contributor

teapotd commented Jan 11, 2020

  • Code for iterating over radio button group elements has been extracted to radio_group_iter
  • in_same_group now checks if elements are in the same tree
  • radio_group_name returns None if name is empty
  • Radio buttons now group together in orphan trees (#25486)

  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25486
  • There are tests for these changes
@highfive
Copy link

highfive commented Jan 11, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/htmlinputelement.rs
  • @KiChjang: components/script/dom/htmlinputelement.rs
@highfive
Copy link

highfive commented Jan 11, 2020

warning Warning warning

  • These commits modify script code, but no tests are modified. Please consider adding a test!
@teapotd
Copy link
Contributor Author

teapotd commented Jan 11, 2020

There is a test for orphan trees in html/semantics/forms/the-input-element/radio.html, but it doesn't pass due to form validation being missing (#25447).

@jdm
Copy link
Member

jdm commented Jan 11, 2020

@bors-servo try=wpt

@bors-servo
Copy link
Contributor

bors-servo commented Jan 11, 2020

Trying commit f6bcc1f with merge 9c2373c...

bors-servo added a commit that referenced this pull request Jan 11, 2020
Simplify and fix iteration over radio button group

- Code for iterating over radio button group elements has been extracted to `radio_group_iter`
- `in_same_group` now checks if elements are in the same tree
- `radio_group_name` returns `None` if name is empty
- Radio buttons now group together in orphan trees (#25486)

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25486
- [ ] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 11, 2020

💔 Test failed - status-taskcluster

@jdm
Copy link
Member

jdm commented Jan 11, 2020

That's #24726 and #21067.

@jdm
Copy link
Member

jdm commented Jan 23, 2020

@Manishearth Review ping.

@Manishearth
Copy link
Member

Manishearth commented Jan 23, 2020

@bors-servo r+

Thanks!

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

📌 Commit f6bcc1f has been approved by Manishearth

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

Testing commit f6bcc1f with merge e4f9115...

bors-servo added a commit that referenced this pull request Jan 23, 2020
Simplify and fix iteration over radio button group

- Code for iterating over radio button group elements has been extracted to `radio_group_iter`
- `in_same_group` now checks if elements are in the same tree
- `radio_group_name` returns `None` if name is empty
- Radio buttons now group together in orphan trees (#25486)

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25486
- [ ] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

💔 Test failed - status-taskcluster

@Manishearth
Copy link
Member

Manishearth commented Jan 23, 2020

@bors-servo retry

looks like the solid color intermittents again? cc @jdm

bors-servo added a commit that referenced this pull request Jan 23, 2020
Simplify and fix iteration over radio button group

- Code for iterating over radio button group elements has been extracted to `radio_group_iter`
- `in_same_group` now checks if elements are in the same tree
- `radio_group_name` returns `None` if name is empty
- Radio buttons now group together in orphan trees (#25486)

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25486
- [ ] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

Testing commit f6bcc1f with merge 683abe8...

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

💔 Test failed - status-taskcluster

@Manishearth
Copy link
Member

Manishearth commented Jan 23, 2020

@bors-servo retry

random timeouts?

@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

Testing commit f6bcc1f with merge ae1758f...

bors-servo added a commit that referenced this pull request Jan 23, 2020
Simplify and fix iteration over radio button group

- Code for iterating over radio button group elements has been extracted to `radio_group_iter`
- `in_same_group` now checks if elements are in the same tree
- `radio_group_name` returns `None` if name is empty
- Radio buttons now group together in orphan trees (#25486)

---
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25486
- [ ] There are tests for these changes
@bors-servo
Copy link
Contributor

bors-servo commented Jan 23, 2020

☀️ Test successful - status-taskcluster
Approved by: Manishearth
Pushing ae1758f to master...

@bors-servo bors-servo merged commit f6bcc1f into servo:master Jan 23, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
@teapotd teapotd deleted the teapotd:radio-group-iter branch Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

5 participants
You can’t perform that action at this time.