From a5126f2cc044c20de1200dd2fe8886754f513041 Mon Sep 17 00:00:00 2001 From: Manish Goregaokar Date: Sun, 18 Dec 2016 12:11:48 -0800 Subject: [PATCH] Fix idna tests to ignore validity criteria 2, run on travis --- .travis.yml | 4 +++- idna/tests/uts46.rs | 7 +++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 810995df..66300e1c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,6 +3,8 @@ rust: - nightly - beta - stable -script: make test +script: + - make test + - cd idna && cargo test notifications: webhooks: http://build.servo.org:54856/travis diff --git a/idna/tests/uts46.rs b/idna/tests/uts46.rs index f660559f..ddc8af98 100644 --- a/idna/tests/uts46.rs +++ b/idna/tests/uts46.rs @@ -56,6 +56,13 @@ pub fn collect_tests(add_test: &mut F) { // for these contexts return; } + if to_ascii == "[V2]" { + // Everybody ignores V2 + // https://github.com/servo/rust-url/pull/240 + // https://github.com/whatwg/url/issues/53#issuecomment-181528158 + // http://www.unicode.org/review/pri317/ + return; + } let res = result.ok(); assert!(res == None, "Expected error. result: {} | original: {} | source: {}", res.unwrap(), original, source);