Bläddra i källkod

Fix idna tests to ignore validity criteria 2, run on travis

Manish Goregaokar 9 år sedan
förälder
incheckning
a5126f2cc0
2 ändrade filer med 10 tillägg och 1 borttagningar
  1. 3 1
      .travis.yml
  2. 7 0
      idna/tests/uts46.rs

+ 3 - 1
.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

+ 7 - 0
idna/tests/uts46.rs

@@ -56,6 +56,13 @@ pub fn collect_tests<F: FnMut(String, TestFn)>(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);