Chromium Code Reviews| Index: LayoutTests/fast/parser/parse-menuitem.html |
| diff --git a/LayoutTests/fast/parser/parse-menuitem.html b/LayoutTests/fast/parser/parse-menuitem.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bb9c5a0841cd2880c7026ed9a863f15717d26ee6 |
| --- /dev/null |
| +++ b/LayoutTests/fast/parser/parse-menuitem.html |
| @@ -0,0 +1,14 @@ |
| +<!DOCTYPE html> |
| +<head> |
| +<script src="../../resources/js-test.js"></script> |
| +<script> |
|
tkent
2014/08/11 13:36:57
Please move this <script> element to the last of t
pals
2014/08/11 14:07:08
Done.
|
| +window.onload = function() { |
| + shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem>"); |
| + shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuitem id=\"first_item\"><menuitem id=\"second_item\">"); |
| + shouldBeNull("document.getElementById('first_item').firstChild"); |
| + shouldBe("document.getElementById('menu').firstChild.nextSibling", "document.getElementById('second_item')"); |
| +}; |
| +</script> |
| +</head> |
| +<div id="div"><menuitem></div> |
| +<menu id="menu" type=popup><menuitem id="first_item"><menuitem id="second_item"></menu> |