| Index: third_party/WebKit/LayoutTests/fast/html/mark-element.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/html/mark-element.html b/third_party/WebKit/LayoutTests/fast/html/mark-element.html
|
| index 15e798f3ab98d1f91c86ce943c0c4d9b16689d4e..f0bd2346db626bf711b4025e419f70654d5df410 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/html/mark-element.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/html/mark-element.html
|
| @@ -4,6 +4,30 @@
|
| <script src="../../resources/js-test.js"></script>
|
| </head>
|
| <body>
|
| -<script src="script-tests/mark-element.js"></script>
|
| +<script>
|
| +description('Various tests for the mark element.');
|
| +
|
| +var testParent = document.createElement('div');
|
| +document.body.appendChild(testParent);
|
| +
|
| +debug('<p> closes <mark>:');
|
| +testParent.innerHTML = '<mark>Test that <p id="paragraph1">a p element</p> closes <mark>.</p>';
|
| +var paragraph1 = document.getElementById('paragraph1');
|
| +shouldBeFalse('paragraph1.parentNode.nodeName == "mark"');
|
| +
|
| +debug('<b> does not close <mark>:');
|
| +testParent.innerHTML = '<mark>Test that <b id="b1">a b element</b> does not close a mark element.</mark>';
|
| +var b1 = document.getElementById('b1');
|
| +shouldBe('b1.parentNode.nodeName', '"MARK"');
|
| +
|
| +debug('Residual style:');
|
| +testParent.innerHTML = '<b><mark id="mark2">This text should be bold.</mark> <span id="span1">This is also bold.</span></b>';
|
| +function getWeight(id) {
|
| + return document.defaultView.getComputedStyle(document.getElementById(id), null).getPropertyValue('font-weight');
|
| +}
|
| +shouldBe('getWeight("mark2")', '"bold"');
|
| +shouldBe('getWeight("span1")', '"bold"');
|
| +document.body.removeChild(testParent);
|
| +</script>
|
| </body>
|
| </html>
|
|
|