mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #10796 - servo:character-data-surrogates, r=nox
Make /dom/nodes/CharacterData-surrogates.html not panic. It now fails since `DOMString` is currently based on `std::string::String` on the Rust side, which is strictly well-formed UTF-8 and can not contain unpaired surrogate code points. Fixes #10780 r? @Ms2ger <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10796) <!-- Reviewable:end -->
This commit is contained in:
commit
a04e30d247
2 changed files with 116 additions and 25 deletions
|
@ -1,3 +1,26 @@
|
|||
[CharacterData-surrogates.html]
|
||||
type: testharness
|
||||
expected: CRASH
|
||||
[Text.substringData() splitting surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Text.replaceData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Text.deleteData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Text.insertData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Comment.substringData() splitting surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Comment.replaceData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Comment.deleteData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
[Comment.insertData() splitting and creating surrogate pairs]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue