Bug 947588. Part 5: Fix tests to pass even if regular HTML content is not displaying hexboxes for control characters. r=jfkthame

--HG--
extra : rebase_source : 8eea41432c267b4ace85d1230c5dba76fe7cc3c4
This commit is contained in:
Robert O'Callahan 2014-02-05 23:23:50 +13:00
parent 0eda1dacc2
commit ad18b5ade8
11 changed files with 47 additions and 0 deletions

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
</head>
<body>
<textarea style="-moz-appearance:none; width:300px; height:300px;">
foobar
</textarea>
</body>
</html>

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
</head>
<body>
<textarea style="-moz-appearance:none; width:300px; height:300px;">
foo&#x01;bar
</textarea>
</body>
</html>

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
</head>
<body>
<textarea style="-moz-appearance:none; width:300px; height:300px;">
foo&#x1f;bar
</textarea>
</body>
</html>

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
</head>
<body>
<textarea style="-moz-appearance:none; width:300px; height:300px;">
foo&#x7f;bar
</textarea>
</body>
</html>

View File

@ -4,6 +4,8 @@
<meta charset="utf-8">
</head>
<body>
<textarea style="-moz-appearance:none; width:300px; height:300px;">
foo&#x8f;bar
</textarea>
</body>
</html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body style="-moz-control-character-visibility:visible">
foobar
</body>
</html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body style="-moz-control-character-visibility:visible">
foo&#x01;bar
</body>
</html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body>
foobar
</body>
</html>

View File

@ -0,0 +1,6 @@
<!DOCTYPE HTML>
<html>
<body style="-moz-control-character-visibility:hidden">
foo&#x01;bar
</body>
</html>

View File

@ -0,0 +1,10 @@
<!DOCTYPE HTML>
<html>
<body style="-moz-control-character-visibility:visible">
<span id="s">foo&#x01;bar</span>
<script>
var x = s.getBoundingClientRect().width;
document.body.setAttribute("style", "-moz-control-character-visibility:hidden");
</script>
</body>
</html>

View File

@ -292,3 +292,6 @@ pref(layout.css.text-align-true-value.enabled,true) == text-align-true.html text
!= control-chars-01b.html control-chars-01-notref.html
!= control-chars-01c.html control-chars-01-notref.html
!= control-chars-01d.html control-chars-01-notref.html
!= control-chars-02.html control-chars-02-notref.html
== control-chars-03a.html control-chars-03-ref.html
== control-chars-03b.html control-chars-03-ref.html