-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move all rcdom-related tests to markup5ever_rcdom
- Loading branch information
Showing
29 changed files
with
324 additions
and
418 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[submodule "html5lib-tests"] | ||
path = html5ever/html5lib-tests | ||
path = rcdom/html5lib-tests | ||
url = https://github.com/html5lib/html5lib-tests | ||
[submodule "xml5lib-tests"] | ||
path = xml5ever/xml5lib-tests | ||
path = rcdom/xml5lib-tests | ||
url = https://github.com/Ygg01/xml5lib-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Submodule html5lib-tests
updated
from 000000 to c75a9f
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
use html5ever::driver; | ||
use html5ever::serialize; | ||
use html5ever::tendril::TendrilSink; | ||
use markup5ever_rcdom::{RcDom, SerializableHandle}; | ||
|
||
#[test] | ||
fn from_utf8() { | ||
let dom = driver::parse_document(RcDom::default(), Default::default()) | ||
.from_utf8() | ||
.one("<title>Test".as_bytes()); | ||
let mut serialized = Vec::new(); | ||
let document: SerializableHandle = dom.document.clone().into(); | ||
serialize::serialize(&mut serialized, &document, Default::default()).unwrap(); | ||
assert_eq!( | ||
String::from_utf8(serialized).unwrap().replace(" ", ""), | ||
"<html><head><title>Test</title></head><body></body></html>" | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.