Bug 470455 - test_database_sync_embed_visits.js leaks, r=sdwilsh
[wine-gecko.git] / content / base / test / test_bug254337.html
blobe3a6ab6f31ec7cc56e5eb77e54007352666a9aab
1 <!DOCTYPE HTML>
2 <html>
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=254337
5 -->
6 <head>
7 <title>Test for Bug 254337</title>
8 <script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
9 <script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
10 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
11 </head>
12 <body>
13 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=254337">Mozilla Bug 254337</a>
14 <p id="display"></p>
15 <div id="content" style="display: none">
17 </div>
18 <pre id="test">
19 <script class="testbody" type="text/javascript">
21 /** Test for Bug 254337 **/
23 var el = document.createElement("div");
24 el.setAttribute("class", "foobar1");
25 is(el.className, "foobar1", "Wrong className!");
26 el.className += " foobar2 ";
27 is(el.className, "foobar1 foobar2 ", "Appending to className didn't work!");
28 el.className += "foobar3";
29 is(el.className, "foobar1 foobar2 foobar3", "Appending to className didn't work!");
31 var el = document.createElement("div");
32 el.setAttribute("class", " foobar1 ");
33 is(el.className, " foobar1 ", "Wrong className!");
34 el.className += "foobar2";
35 is(el.className, " foobar1 foobar2", "Appending to className didn't work!");
36 el.setAttribute("class", " ");
37 is(el.getAttribute("class"), " ", "class attribute didn't store the right value!");
39 </script>
40 </pre>
41 </body>
42 </html>