3 <script src="../js/resources/js-test-pre.js"></script>
4 <script src="resources/common.js"></script>
7 <p>Check if the position of a validation message for a listbox is good.</p>
9 <form action="validation-message-on-listbox.html">
10 <select id=host name=select multiple required>
14 <input type=submit id=submit>
17 <div id="console"></div>
20 hostRect = getAbsoluteRect(host);
21 bubbleRect = getAbsoluteRect(getValidationMessageBubbleNode(host));
22 debug('The top of the bubble should be on the bottom of the host node:');
23 shouldBe('bubbleRect.top', 'hostRect.bottom');
33 if (window.layoutTestController) {
36 debug('The test requires layoutTestController.');
39 var jsTestIsAsync = true;
41 <script src="../js/resources/js-test-post.js"></script>