blob: d1043a8a3dfcd733ed8f59095418b887e5cea611 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
<!DOCTYPE html>
<head>
<script src="../../resources/js-test.js"></script>
</head>
<body>
<p>Test for a bug that LayoutBlockFlow crashed when a validation message bubble for a select element with float:left was closing.</p>
<div id=console></div>
<form>
<select style="float:left" required>
<option value="">Plese select</option>
<option>Foo</option>
</select>
<input type=submit id=submit>
</form>
<script>
window.jsTestIsAsync = true;
function closeBubble() {
// Make the <select> valid to close the validation message bubble.
document.getElementsByTagName('select')[0].selectedIndex = 1;
setTimeout(finish, 0);
}
function finish() {
testPassed('Not crashed.');
finishJSTest();
}
document.getElementById('submit').click();
setTimeout(closeBubble, 0);
</script>
</body>
|