fix "succeeding" to "passing" in tests

This commit is contained in:
Sunshine 2020-02-12 02:02:25 -05:00
parent 928664dc88
commit b8b6d8cff6
No known key found for this signature in database
GPG key ID: B80CA68703CD8AB1
2 changed files with 4 additions and 4 deletions

View file

@ -2,7 +2,7 @@ use crate::js::attr_is_event_handler;
#[test]
fn test_attr_is_event_handler() {
// succeeding
// passing
assert!(attr_is_event_handler("onBlur"));
assert!(attr_is_event_handler("onclick"));
assert!(attr_is_event_handler("onClick"));

View file

@ -43,7 +43,7 @@ fn test_detect_mimetype() {
#[test]
fn test_url_has_protocol() {
// succeeding
// passing
assert_eq!(
url_has_protocol("mailto:somebody@somewhere.com?subject=hello"),
true
@ -72,7 +72,7 @@ fn test_url_has_protocol() {
#[test]
fn test_is_http_url() {
// succeeding
// passing
assert!(is_http_url("https://www.rust-lang.org/"));
assert!(is_http_url("http://kernel.org"));
// failing
@ -149,7 +149,7 @@ fn test_resolve_url() -> Result<(), ParseError> {
#[test]
fn test_is_data_url() {
// succeeding
// passing
assert!(
is_data_url("data:text/html;base64,V2VsY29tZSBUbyBUaGUgUGFydHksIDxiPlBhbDwvYj4h")
.unwrap_or(false)