mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Merge net_traits and net_traits_tests
This commit is contained in:
parent
697b9e2b87
commit
ea924e398f
7 changed files with 7 additions and 26 deletions
7
Cargo.lock
generated
7
Cargo.lock
generated
|
@ -1975,13 +1975,6 @@ dependencies = [
|
||||||
"webrender_api 0.56.1 (git+https://github.com/servo/webrender)",
|
"webrender_api 0.56.1 (git+https://github.com/servo/webrender)",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "net_traits_tests"
|
|
||||||
version = "0.0.1"
|
|
||||||
dependencies = [
|
|
||||||
"net_traits 0.0.1",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nodrop"
|
name = "nodrop"
|
||||||
version = "0.1.12"
|
version = "0.1.12"
|
||||||
|
|
|
@ -8,6 +8,8 @@ publish = false
|
||||||
[lib]
|
[lib]
|
||||||
name = "net_traits"
|
name = "net_traits"
|
||||||
path = "lib.rs"
|
path = "lib.rs"
|
||||||
|
test = false
|
||||||
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cookie = "0.10"
|
cookie = "0.10"
|
||||||
|
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
extern crate net_traits;
|
||||||
|
|
||||||
use net_traits::image::base::detect_image_format;
|
use net_traits::image::base::detect_image_format;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
|
@ -2,6 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
|
extern crate net_traits;
|
||||||
|
|
||||||
use net_traits::pub_domains::{is_pub_domain, is_reg_domain, pub_suffix, reg_suffix};
|
use net_traits::pub_domains::{is_pub_domain, is_reg_domain, pub_suffix, reg_suffix};
|
||||||
|
|
||||||
// These tests may need to be updated if the PSL changes.
|
// These tests may need to be updated if the PSL changes.
|
|
@ -2,13 +2,8 @@
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
#![cfg(test)]
|
|
||||||
|
|
||||||
extern crate net_traits;
|
extern crate net_traits;
|
||||||
|
|
||||||
mod image;
|
|
||||||
mod pub_domains;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_trim_http_whitespace() {
|
fn test_trim_http_whitespace() {
|
||||||
fn test_trim(in_: &[u8], out: &[u8]) {
|
fn test_trim(in_: &[u8], out: &[u8]) {
|
|
@ -231,7 +231,7 @@ class MachCommands(CommandBase):
|
||||||
else:
|
else:
|
||||||
test_patterns.append(test)
|
test_patterns.append(test)
|
||||||
|
|
||||||
self_contained_tests = ["gfx", "layout", "msg", "net", "selectors"]
|
self_contained_tests = ["gfx", "layout", "msg", "net", "net_traits", "selectors"]
|
||||||
if not packages:
|
if not packages:
|
||||||
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
|
packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) - set(['.DS_Store'])
|
||||||
packages |= set(self_contained_tests)
|
packages |= set(self_contained_tests)
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "net_traits_tests"
|
|
||||||
version = "0.0.1"
|
|
||||||
authors = ["The Servo Project Developers"]
|
|
||||||
license = "MPL-2.0"
|
|
||||||
|
|
||||||
[lib]
|
|
||||||
name = "net_traits_tests"
|
|
||||||
path = "lib.rs"
|
|
||||||
doctest = false
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
net_traits = {path = "../../../components/net_traits"}
|
|
Loading…
Add table
Add a link
Reference in a new issue