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

Side by Side Diff: third_party/WebKit/LayoutTests/html/text-level-semantics/mark-element.html

Issue 2780363002: Rename subdirectory names in LayoutTests/html/. (Closed)
Patch Set: Created 3 years, 8 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 PUBLIC "-//IETF//DTD HTML//EN">
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
7 <script>
8 description('Various tests for the mark element.');
9
10 var testParent = document.createElement('div');
11 document.body.appendChild(testParent);
12
13 debug('&lt;p> closes &lt;mark>:');
14 testParent.innerHTML = '<mark>Test that <p id="paragraph1">a p element</p> close s &lt;mark>.</p>';
15 var paragraph1 = document.getElementById('paragraph1');
16 shouldBeFalse('paragraph1.parentNode.nodeName == "mark"');
17
18 debug('&lt;b> does not close &lt;mark>:');
19 testParent.innerHTML = '<mark>Test that <b id="b1">a b element</b> does not clos e a mark element.</mark>';
20 var b1 = document.getElementById('b1');
21 shouldBe('b1.parentNode.nodeName', '"MARK"');
22
23 debug('Residual style:');
24 testParent.innerHTML = '<b><mark id="mark2">This text should be bold.</mark> <sp an id="span1">This is also bold.</span></b>';
25 function getWeight(id) {
26 return document.defaultView.getComputedStyle(document.getElementById(id), nu ll).getPropertyValue('font-weight');
27 }
28 shouldBe('getWeight("mark2")', '"bold"');
29 shouldBe('getWeight("span1")', '"bold"');
30 document.body.removeChild(testParent);
31 </script>
32 </body>
33 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698