Skip to content

Commit

Permalink
Update cssparser to fix CSS.escape test failures
Browse files Browse the repository at this point in the history
Fixed failing tests #10685
  • Loading branch information
Maciej Skrzypkowski committed May 6, 2016
1 parent 0558687 commit 43b7253
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 43 deletions.
5 changes: 1 addition & 4 deletions components/script/dom/css.rs
Expand Up @@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use cssparser::serialize_identifier;
use dom::bindings::error::{Error, Fallible};
use dom::bindings::error::Fallible;
use dom::bindings::global::GlobalRef;
use dom::bindings::reflector::Reflector;
use util::str::DOMString;
Expand All @@ -16,9 +16,6 @@ pub struct CSS {
impl CSS {
// http://dev.w3.org/csswg/cssom/#serialize-an-identifier
pub fn Escape(_: GlobalRef, ident: DOMString) -> Fallible<DOMString> {
if ident.bytes().any(|b| b == b'\0') {
return Err(Error::InvalidCharacter);
}
let mut escaped = String::new();
serialize_identifier(&ident, &mut escaped).unwrap();
Ok(DOMString::from(escaped))
Expand Down
18 changes: 9 additions & 9 deletions components/servo/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions ports/cef/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions ports/geckolib/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions ports/gonk/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 0 additions & 9 deletions tests/wpt/metadata-css/cssom-1_dev/html/escape.htm.ini
@@ -1,14 +1,5 @@
[escape.htm]
type: testharness
[Null bytes]
expected: FAIL
bug: https://github.com/servo/servo/issues/10685

[Various tests]
expected: FAIL
bug: https://github.com/servo/servo/issues/10685

[Surrogates]
expected: FAIL
bug: https://github.com/servo/servo/issues/6564

0 comments on commit 43b7253

Please sign in to comment.