Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(405)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/mathml/relations/html5-tree/class-2.html

Issue 2425083003: Import wpt@4114c724042b41e257caab98f3eb23c143b50de4 (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>Class</title>
6 <link rel="help" href="http://www.mathml-association.org/MathMLinHTML5/S2.html#S S1.SSS2">
7 <meta name="assert" content="Verify whether the getElementsByClassName() works f or MathML elements.">
8 <script src="/resources/testharness.js"></script>
9 <script src="/resources/testharnessreport.js"></script>
10 <script>
11 setup({ explicit_done: true });
12 window.addEventListener("DOMContentLoaded", function() {
13 var mtext = document.getElementsByClassName("cl");
14 test(function() {
15 assert_equals(mtext.length, 3);
16 var mtext_ref = document.body.firstElementChild.firstElementChild;
17 mtext_ref = mtext_ref.nextElementSibling.nextElementSibling
18 assert_equals(mtext[0], mtext_ref);
19 mtext_ref = mtext_ref.nextElementSibling.nextElementSibling;
20 assert_equals(mtext[1], mtext_ref);
21 mtext_ref = mtext_ref.nextElementSibling.nextElementSibling;
22 assert_equals(mtext[2], mtext_ref);
23 }, "getElementsByClassName()");
24 done();
25 });
26 </script>
27 </head>
28 <body>
29 <math>
30 <mtext class="cl_"></mtext>
31 <mtext class="c"></mtext>
32 <mtext class="cl"></mtext>
33 <mtext class="cl_"></mtext>
34 <mtext class="cl"></mtext>
35 <mtext class="c"></mtext>
36 <mtext class="cl"></mtext>
37 <mtext class="cl_"></mtext>
38 </math>
39 </body>
40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698