Bug 1852740: add tests for the `fetchpriority` attribute in Link headers. r=necko...
[gecko.git] / dom / base / test / test_bug395915.html
blob711a6fd6a372087b14b2b94f10eeb50b6ccec52b
1 <!DOCTYPE HTML>
2 <html class="A b">
3 <!--
4 https://bugzilla.mozilla.org/show_bug.cgi?id=395915
5 -->
6 <head>
7 <title>Test for Bug 395915</title>
8 <script src="/tests/SimpleTest/SimpleTest.js"></script>
9 <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
10 </head>
11 <body>
12 <a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=395915">Mozilla Bug 395915</a>
13 <p id="display"></p>
14 <div id="content" style="display: none">
16 </div>
17 <pre id="test">
18 <script class="testbody" type="text/javascript">
20 /** Test for Bug 395915 **/
21 is(document.getElementsByClassName("a").length, 0,
22 "Class names are case-sensitive");
23 is(document.getElementsByClassName("A").length, 1,
24 "Have one node of class A");
25 is(document.getElementsByClassName("A")[0], document.documentElement,
26 "Root is class A");
28 is(document.getElementsByClassName("a b").length, 0,
29 "Class names are case-sensitive two");
30 is(document.getElementsByClassName("A B").length, 0,
31 "Class names are case-sensitive three");
32 is(document.getElementsByClassName("a B").length, 0,
33 "Class names are case-sensitive four");
34 is(document.getElementsByClassName("A b").length, 1,
35 "Have one node of class 'A b'");
36 is(document.getElementsByClassName("A b")[0], document.documentElement,
37 "Root is class 'A b'");
39 </script>
40 </pre>
41 </body>
42 </html>