mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Remove redundant domstring unit test
This test is no longer necessary since the cases tested are also tested by the number input web platform test.
This commit is contained in:
parent
b8a8c2b9bf
commit
b9ec6f99cd
2 changed files with 0 additions and 22 deletions
|
@ -1,20 +0,0 @@
|
|||
// Copyright 2013 The Servo Project Developers. See the COPYRIGHT
|
||||
// file at the top-level directory of this distribution.
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use script::test::DOMString;
|
||||
|
||||
#[test]
|
||||
fn test_domstring_is_valid_floating_point_number_string_leading_whitespace() {
|
||||
assert!(!DOMString::from("\t1").is_valid_floating_point_number_string());
|
||||
assert!(!DOMString::from("\n1").is_valid_floating_point_number_string());
|
||||
// \x0C - form feed
|
||||
assert!(!DOMString::from("\x0C1").is_valid_floating_point_number_string());
|
||||
assert!(!DOMString::from("\r1").is_valid_floating_point_number_string());
|
||||
assert!(!DOMString::from(" 1").is_valid_floating_point_number_string());
|
||||
}
|
|
@ -2,8 +2,6 @@
|
|||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
|
||||
|
||||
#[cfg(test)]
|
||||
mod domstring;
|
||||
#[cfg(test)]
|
||||
mod headers;
|
||||
#[cfg(test)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue