Bug 836530 followup: fix tests for new ASCII range.
authorL. David Baron <dbaron@dbaron.org>
Thu, 31 Jan 2013 21:09:40 -0800
changeset 130421 a350ac5a27ecc8f41b9ba4f807e3192467f764b2
parent 130420 66882ea6f8c7048b3c3aa6f235387beb86ae0c9d
child 130422 41075512e6528af980d138f4cbfdaea57ac947f5
push id2323
push userbbajaj@mozilla.com
push dateMon, 01 Apr 2013 19:47:02 +0000
treeherdermozilla-beta@7712be144d91 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs836530
milestone21.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 836530 followup: fix tests for new ASCII range.
layout/style/test/test_parse_ident.html
layout/style/test/test_parse_url.html
--- a/layout/style/test/test_parse_ident.html
+++ b/layout/style/test/test_parse_ident.html
@@ -28,23 +28,23 @@ function is_valid_identifier(i)
 }
 
 function is_invalid_identifier(i)
 {
   ok(!counter_increment_parses(i),
      "'" + i + "' is not a valid CSS identifier");
 }
 
-for (var i = 0x7B; i < 0xA0; ++i) {
+for (var i = 0x7B; i < 0x80; ++i) {
   is_invalid_identifier(String.fromCharCode(i));
   is_invalid_identifier("a" + String.fromCharCode(i));
   is_invalid_identifier(String.fromCharCode(i) + "a");
 }
 
-for (var i = 0xA0; i < 0xFF; ++i) {
+for (var i = 0x80; i < 0xFF; ++i) {
   is_valid_identifier(String.fromCharCode(i));
 }
 
 is_valid_identifier(String.fromCharCode(0x100));
 is_valid_identifier(String.fromCharCode(0x375));
 is_valid_identifier(String.fromCharCode(0xFEFF));
 is_valid_identifier(String.fromCharCode(0xFFFD));
 is_valid_identifier(String.fromCharCode(0xFFFE));
--- a/layout/style/test/test_parse_url.html
+++ b/layout/style/test/test_parse_url.html
@@ -148,20 +148,17 @@ div.style.listStyleImage = 'url(c\\f  b)
 is(div.style.listStyleImage, 'url("bad")',
    "unquoted URL with spaces not allowed");
 
 div.style.listStyleImage = 'url(cc\\f  b)';
 is(div.style.listStyleImage, 'url("bad")',
    "unquoted URL with spaces not allowed");
 
 var chars = [ 1, 2, 3, 4, 5, 6, 7, 8, 11, 14, 15, 16, 17, 18, 19, 20,
-              21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 127, 128, 129,
-              130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141,
-              142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
-              154, 155, 156, 157, 158, 159];
+              21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 127];
 
 for (var i in chars) {
   var charcode = chars[i];
   div.style.listStyleImage = 'url(' + String.fromCharCode(charcode) + ')';
   is(div.style.listStyleImage, 'url("bad")',
      "unquoted URL with control character " + charcode + " not allowed");
 }