From b9ec6f99cd76ed430d5916b38190e8ee7be70516 Mon Sep 17 00:00:00 2001 From: glowe Date: Mon, 2 Dec 2019 22:52:02 -0500 Subject: [PATCH] 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. --- tests/unit/script/domstring.rs | 20 -------------------- tests/unit/script/lib.rs | 2 -- 2 files changed, 22 deletions(-) delete mode 100644 tests/unit/script/domstring.rs diff --git a/tests/unit/script/domstring.rs b/tests/unit/script/domstring.rs deleted file mode 100644 index 08af9c690625..000000000000 --- a/tests/unit/script/domstring.rs +++ /dev/null @@ -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 or the MIT license -// , 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()); -} diff --git a/tests/unit/script/lib.rs b/tests/unit/script/lib.rs index 434992ad9543..4b258ede7d00 100644 --- a/tests/unit/script/lib.rs +++ b/tests/unit/script/lib.rs @@ -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)]