layout/style/test/test_bug829816.html

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

michael@0 1 <!DOCTYPE HTML>
michael@0 2 <html>
michael@0 3 <!--
michael@0 4 https://bugzilla.mozilla.org/show_bug.cgi?id=829816
michael@0 5 -->
michael@0 6 <head>
michael@0 7 <meta charset="utf-8">
michael@0 8 <title>Test for Bug 829816</title>
michael@0 9 <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
michael@0 10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
michael@0 11
michael@0 12 <style type="text/css">
michael@0 13 b { content: "\0"; counter-reset: \0 }
michael@0 14 b { content: "\00"; counter-reset: \00 }
michael@0 15 b { content: "\000"; counter-reset: \000 }
michael@0 16 b { content: "\0000"; counter-reset: \0000 }
michael@0 17 b { content: "\00000"; counter-reset: \00000 }
michael@0 18 b { content: "\000000"; counter-reset: \000000 }
michael@0 19 </style>
michael@0 20
michael@0 21 <!-- U+0000 characters in <style> would be replaced by the HTML parser -->
michael@0 22 <link rel="stylesheet" type="text/css" href="file_bug829816.css"/>
michael@0 23
michael@0 24 <script type="application/javascript">
michael@0 25
michael@0 26 /** Test for Bug 829816 **/
michael@0 27 var ss = document.styleSheets[1];
michael@0 28
michael@0 29 for (var i = 0; i < 6; i++) {
michael@0 30 is(ss.cssRules[i].style.content, "\"\uFFFD\"",
michael@0 31 "\\0 in strings should be converted to U+FFFD");
michael@0 32 is(ss.cssRules[i].style.counterReset, "\uFFFD",
michael@0 33 "\\0 in identifiers should be converted to U+FFFD");
michael@0 34 }
michael@0 35
michael@0 36 is(document.styleSheets[2].cssRules[0].style.content, "\"\uFFFD\"",
michael@0 37 "U+0000 in strings should be converted to U+FFFD");
michael@0 38 is(document.styleSheets[2].cssRules[0].style.counterReset, "\uFFFD",
michael@0 39 "U+0000 in identifiers should be converted to U+FFFD");
michael@0 40 is(document.styleSheets[2].cssRules[1].style.content, "\"\uFFFD\"",
michael@0 41 "U+0000 in strings should be converted to U+FFFD");
michael@0 42 is(document.styleSheets[2].cssRules[1].style.counterReset, "\uFFFD",
michael@0 43 "U+0000 in identifiers should be converted to U+FFFD");
michael@0 44
michael@0 45
michael@0 46 </script>
michael@0 47 </head>
michael@0 48 <body>
michael@0 49 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=829816">Mozilla Bug 829816</a>
michael@0 50 <p id="display"></p>
michael@0 51 <div id="content" style="display: none">
michael@0 52 </div>
michael@0 53 <pre id="test">
michael@0 54 </pre>
michael@0 55 </body>
michael@0 56 </html>

mercurial