Reftests for bug 376532
authorsmontagu@smontagu.org
Thu, 20 Sep 2007 03:20:01 -0700
changeset 6136 ae8b7996db714020eaf29b5e606e6409dc6a246d
parent 6135 e83e38c02f4727d426c9f4fa2f91cd2c9311e1dc
child 6137 0746ea10dd178f152e0121a3d3ca59bcbab19d56
push idunknown
push userunknown
push dateunknown
bugs376532
milestone1.9a8pre
Reftests for bug 376532
layout/reftests/bugs/376532-1-ref.html
layout/reftests/bugs/376532-1.html
layout/reftests/bugs/376532-2-ref.html
layout/reftests/bugs/376532-2.html
layout/reftests/bugs/376532-3-ref.html
layout/reftests/bugs/376532-3.html
layout/reftests/bugs/reftest.list
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/376532-1-ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 1 uses a narrow paragraph with overflow-x: hidden so that if two
+     missing glyph boxes are displayed only one will be visible
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+}
+  </style>
+ <body>
+  <p>&#xddb0d;</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/376532-1.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 1 uses a narrow paragraph with overflow-x: hidden so that if two
+     missing glyph boxes are displayed only one will be visible
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+  width: 18pt;
+  overflow-x: hidden;
+}
+  </style>
+ <body>
+  <p>&#xddb0d;</p>
+ </body>
+</html>
new file mode 100755
--- /dev/null
+++ b/layout/reftests/bugs/376532-2-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 2 is a non-equality test to catch the case where a single missing
+     glyph box is shown with the high surrogate code point. The test page
+     contains U+0DDBAD and the reference page contains U+0DDB0D
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+}
+  </style>
+ <body>
+  <p>&#x0ddb0d;</p>
+ </body>
+</html>
new file mode 100755
--- /dev/null
+++ b/layout/reftests/bugs/376532-2.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 2 is a non-equality test to catch the case where a single missing
+     glyph box is shown with the high surrogate code point. The test page
+     contains U+0DDBAD (DB36 DF0D) and the reference page U+0DDB0D (DB36 DFAD)
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+}
+  </style>
+ <body>
+  <p>&#x0ddbad;</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/376532-3-ref.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 3 is a non-equality test to catch the case where a single missing
+     glyph box is shown with the low surrogate code point. The test page
+     contains U+BF2AD (DABC DEAD) and the reference page U+CFEAD (DAFF DEAD)
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+}
+  </style>
+ <body>
+  <p>&#xcfead;</p>
+ </body>
+</html>
new file mode 100644
--- /dev/null
+++ b/layout/reftests/bugs/376532-3.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<!-- Reftest for bug 376532: should show single missing glyph box for non-BMP
+     characters (not surrogates)
+     Test 3 is a non-equality test to catch the case where a single missing
+     glyph box is shown with the low surrogate code point. The test page
+     contains U+BF2AD (DABC DEAD) and the reference page U+CFEAD (DAFF DEAD)
+-->
+<html>
+ <head>
+  <meta http-equiv="content-type" content="text/html; charset=utf-8";
+ </head>
+  <style type="text/css">
+p {   
+  font-size: 36pt;
+}
+  </style>
+ <body>
+  <p>&#xbf2ad;</p>
+ </body>
+</html>
--- a/layout/reftests/bugs/reftest.list
+++ b/layout/reftests/bugs/reftest.list
@@ -307,16 +307,19 @@ fails == 368504-2.html 368504-2-ref.html
 == 372768-1.html 372768-1-ref.html
 == 373383-1.html 373383-1-ref.html
 == 374038-1.xul 374038-1-ref.xul
 == 374038-2.xul 374038-2-ref.xul
 == 374193-1.xhtml about:blank
 == 375716-1.html 375716-1-ref.html
 == 375827-1.html 375827-1-ref.html
 == 376484-1.html 376484-1-ref.html
+== 376532-1.html 376532-1-ref.html
+!= 376532-2.html 376532-2-ref.html
+!= 376532-3.html 376532-3-ref.html
 == 377603-1.html 377603-1-ref.html
 == 377918.html 377918-ref.html
 == 378535-1.html 378535-1-ref.html
 == 379178-xhtml.xhtml 379178-xhtml-ref.xhtml
 == 379178-html.html 379178-html-ref.html
 == 379178-svg.svg 379178-svg-ref.svg
 == 379316-1.html 379316-1-ref.html
 random-if(MOZ_WIDGET_TOOLKIT=="cocoa") == 379316-2.html 379316-2-ref.html # bug 379786