OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <head> | |
3 <script src="../../resources/js-test.js"></script> | |
4 <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.
| |
5 window.onload = function() { | |
6 shouldBeEqualToString("document.getElementById('div').innerHTML", "<menuitem >"); | |
7 shouldBeEqualToString("document.getElementById('menu').innerHTML", "<menuite m id=\"first_item\"><menuitem id=\"second_item\">"); | |
8 shouldBeNull("document.getElementById('first_item').firstChild"); | |
9 shouldBe("document.getElementById('menu').firstChild.nextSibling", "document .getElementById('second_item')"); | |
10 }; | |
11 </script> | |
12 </head> | |
13 <div id="div"><menuitem></div> | |
14 <menu id="menu" type=popup><menuitem id="first_item"><menuitem id="second_item"> </menu> | |
OLD | NEW |