diff options
Diffstat (limited to 'layout/reftests/css-charset')
23 files changed, 220 insertions, 0 deletions
diff --git a/layout/reftests/css-charset/pass.html b/layout/reftests/css-charset/pass.html new file mode 100644 index 000000000..31d07cfd5 --- /dev/null +++ b/layout/reftests/css-charset/pass.html @@ -0,0 +1,7 @@ +<!DOCTYPE html> +<html> + <body style="color: green"> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/reftest-stylo.list b/layout/reftests/css-charset/reftest-stylo.list new file mode 100644 index 000000000..34bce869d --- /dev/null +++ b/layout/reftests/css-charset/reftest-stylo.list @@ -0,0 +1,11 @@ +# DO NOT EDIT! This is a auto-generated temporary list for Stylo testing +== test-attribute.html test-attribute.html +== test-charset-quotes.html test-charset-quotes.html +== test-charset-leading-space.html test-charset-leading-space.html +== test-charset-trailing-space.html test-charset-trailing-space.html +== test-charset-utf-16-le-no-bom.html test-charset-utf-16-le-no-bom.html +== test-charset-utf-16-le-bom.html test-charset-utf-16-le-bom.html +== test-charset-utf-16-bom-le.html test-charset-utf-16-bom-le.html +== test-charset-utf-16-be-no-bom.html test-charset-utf-16-be-no-bom.html +== test-charset-utf-16-be-bom.html test-charset-utf-16-be-bom.html +== test-charset-utf-16-bom-be.html test-charset-utf-16-bom-be.html diff --git a/layout/reftests/css-charset/reftest.list b/layout/reftests/css-charset/reftest.list new file mode 100644 index 000000000..ef6505576 --- /dev/null +++ b/layout/reftests/css-charset/reftest.list @@ -0,0 +1,10 @@ +== test-attribute.html pass.html +== test-charset-quotes.html pass.html +== test-charset-leading-space.html pass.html +== test-charset-trailing-space.html pass.html +== test-charset-utf-16-le-no-bom.html pass.html +fails == test-charset-utf-16-le-bom.html pass.html +== test-charset-utf-16-bom-le.html pass.html +== test-charset-utf-16-be-no-bom.html pass.html +fails == test-charset-utf-16-be-bom.html pass.html +== test-charset-utf-16-bom-be.html pass.html diff --git a/layout/reftests/css-charset/test-attribute.css b/layout/reftests/css-charset/test-attribute.css Binary files differnew file mode 100644 index 000000000..8fcd96f5d --- /dev/null +++ b/layout/reftests/css-charset/test-attribute.css diff --git a/layout/reftests/css-charset/test-attribute.html b/layout/reftests/css-charset/test-attribute.html new file mode 100644 index 000000000..8befd8f49 --- /dev/null +++ b/layout/reftests/css-charset/test-attribute.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: red; } + </style> + <link rel="stylesheet" type="text/css" charset="UTF-16BE" + href="test-attribute.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-leading-space.css b/layout/reftests/css-charset/test-charset-leading-space.css Binary files differnew file mode 100644 index 000000000..69b4324aa --- /dev/null +++ b/layout/reftests/css-charset/test-charset-leading-space.css diff --git a/layout/reftests/css-charset/test-charset-leading-space.html b/layout/reftests/css-charset/test-charset-leading-space.html new file mode 100644 index 000000000..086c1be4f --- /dev/null +++ b/layout/reftests/css-charset/test-charset-leading-space.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-leading-space.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-quotes.css b/layout/reftests/css-charset/test-charset-quotes.css Binary files differnew file mode 100644 index 000000000..67f9f21f4 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-quotes.css diff --git a/layout/reftests/css-charset/test-charset-quotes.html b/layout/reftests/css-charset/test-charset-quotes.html new file mode 100644 index 000000000..57e749cb3 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-quotes.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-quotes.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-trailing-space.css b/layout/reftests/css-charset/test-charset-trailing-space.css Binary files differnew file mode 100644 index 000000000..c1f9d451e --- /dev/null +++ b/layout/reftests/css-charset/test-charset-trailing-space.css diff --git a/layout/reftests/css-charset/test-charset-trailing-space.html b/layout/reftests/css-charset/test-charset-trailing-space.html new file mode 100644 index 000000000..6090e294c --- /dev/null +++ b/layout/reftests/css-charset/test-charset-trailing-space.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-trailing-space.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-bom.css b/layout/reftests/css-charset/test-charset-utf-16-be-bom.css Binary files differnew file mode 100644 index 000000000..a5d0914b4 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-be-bom.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-bom.html b/layout/reftests/css-charset/test-charset-utf-16-be-bom.html new file mode 100644 index 000000000..8947490e9 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-be-bom.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-be-bom.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css Binary files differnew file mode 100644 index 000000000..f877df030 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html new file mode 100644 index 000000000..a617959c9 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-be-no-bom.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset, modified for CSS3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Henri Sivonen" href="mailto:hsivonen@iki.fi" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-be-no-bom.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-be.css b/layout/reftests/css-charset/test-charset-utf-16-bom-be.css Binary files differnew file mode 100644 index 000000000..21e4206f7 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-bom-be.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-be.html b/layout/reftests/css-charset/test-charset-utf-16-bom-be.html new file mode 100644 index 000000000..b0c29cfd2 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-bom-be.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: red; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-bom-be.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-le.css b/layout/reftests/css-charset/test-charset-utf-16-bom-le.css Binary files differnew file mode 100644 index 000000000..ddf7fd00a --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-bom-le.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-bom-le.html b/layout/reftests/css-charset/test-charset-utf-16-bom-le.html new file mode 100644 index 000000000..fc5f5b9e0 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-bom-le.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: red; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-bom-le.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-bom.css b/layout/reftests/css-charset/test-charset-utf-16-le-bom.css Binary files differnew file mode 100644 index 000000000..3aab85e0b --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-le-bom.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-bom.html b/layout/reftests/css-charset/test-charset-utf-16-le-bom.html new file mode 100644 index 000000000..1ceaffaf4 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-le-bom.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-le-bom.css" /> + </head> + <body> + This should be green + </body> +</html> + diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css Binary files differnew file mode 100644 index 000000000..b2a1129c0 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.css diff --git a/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html new file mode 100644 index 000000000..d0c3875a2 --- /dev/null +++ b/layout/reftests/css-charset/test-charset-utf-16-le-no-bom.html @@ -0,0 +1,20 @@ +<!DOCTYPE html> +<html> + <head> + <title>CSS 2.1 Test Suite: @charset, modified for CSS3</title> + <link rel="author" title="Boris Zbarsky" href="mailto:bzbarsky@mit.edu" /> + <link rel="author" title="Henri Sivonen" href="mailto:hsivonen@iki.fi" /> + <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> + <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#charset"/> + <meta name="flags" content="" /> + <style type="text/css"> + body { color: green; } + </style> + <link rel="stylesheet" type="text/css" charset="us-ascii" + href="test-charset-utf-16-le-no-bom.css" /> + </head> + <body> + This should be green + </body> +</html> + |