Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRemove usage of slice_chars in script #6854
Conversation
|
Needs tests |
|
I’ll tweak |
|
There are unit tests in test/unit/script/textinput.rs - can you add some there? |
|
I’ll look into that tomorrow |
|
|
|
Rebased and added some tests, including a new file marked |
|
So if a text input contains " -S-awaiting-review +S-awaiting-answer +S-needs-code-changes Reviewed 2 of 2 files at r1, 13 of 13 files at r2. components/script/textinput.rs, line 260 [r2] (raw file): components/script/textinput.rs, line 280 [r2] (raw file): components/script/textinput.rs, line 292 [r2] (raw file): components/script/textinput.rs, line 297 [r2] (raw file): Comments from the review on Reviewable.io |
|
|
|
Added a couple tests for the scenarios described. Review status: 7 of 12 files reviewed at latest revision, 4 unresolved discussions, some commit checks pending. components/script/textinput.rs, line 260 [r2] (raw file): components/script/textinput.rs, line 280 [r2] (raw file): components/script/textinput.rs, line 292 [r2] (raw file): components/script/textinput.rs, line 297 [r2] (raw file): Comments from the review on Reviewable.io |
|
Added the tests that I had apparently forgotten to commit. |
|
|
| @@ -29106,6 +29106,12 @@ | |||
| "shadow-dom/shadow-trees/hosting-multiple-shadow-trees-005.html" | |||
| ], | |||
| "items": {}, | |||
| ], | |||
This comment has been minimized.
This comment has been minimized.
|
|
|
Rebased and ran r? for the changes in that file. |
|
@bors-servo r=jdm+Ms2ger |
|
|
Remove usage of slice_chars in script It’s deprecated in the #6850 rustup. The first commit changes some behavior which was previously incorrect: the spec says indices in DOM strings are UTF-16 code units, not `char` code points. The second commit should not change behavior, unless I made a mistake. r? @jdm <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6854) <!-- Reviewable:end -->
|
@bors-servo r=jdm+Ms2ger |
|
|
SimonSapin commentedJul 30, 2015
It’s deprecated in the #6850 rustup.
The first commit changes some behavior which was previously incorrect: the spec says indices in DOM strings are UTF-16 code units, not
charcode points.The second commit should not change behavior, unless I made a mistake.
r? @jdm