summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/forms/form-invalid-url.html
blob: b6dfce765181a6a0efeda622b64f3dff774a3488 (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
<html>
<head>
<script src="../../resources/js-test.js"></script> 
<script>
function performTest()
{
    var x=document.getElementsByTagName('select')[0];
    x.options[2].selected=true;
    var evt = document.createEvent("HTMLEvents");
    evt.initEvent("change", true, true);
    x.dispatchEvent(evt);
    testPassed('Test passes if there is no crash');
}
</script>
</head>
<body onload="performTest()">
<form action="http://%T%Ae">
<select onChange="submit();">
  <option >A</option>
  <option >B</option>
  <option >C</option>
</select>
</form>
</body>
</html>