| Index: webkit/data/layout_tests/chrome/fast/forms/var-name-conflict-in-form-event-handler.html
|
| ===================================================================
|
| --- webkit/data/layout_tests/chrome/fast/forms/var-name-conflict-in-form-event-handler.html (revision 12362)
|
| +++ webkit/data/layout_tests/chrome/fast/forms/var-name-conflict-in-form-event-handler.html (working copy)
|
| @@ -1,28 +0,0 @@
|
| -<html>
|
| -<body>
|
| -<p>This tests that a locally scoped variable in an event handler of a form
|
| -takes precedence over items of form.
|
| -
|
| -<form>
|
| -<select onChange="var value = this.value;this.options[0].selected=true; if(value=='C') document.getElementById('sourceViewDiv').innerHTML='This test: PASSED!'">
|
| -<option value="A">A</option>
|
| -<option value="B">B</option>
|
| -<option value="C">C</option>
|
| -</select>
|
| -
|
| -<div id='sourceViewDiv'>This test: FAILED</div>
|
| -
|
| -<script>
|
| -if (window.layoutTestController)
|
| - layoutTestController.dumpAsText();
|
| -
|
| -var x=document.getElementsByTagName('select')[0];
|
| -x.options[2].selected=true;
|
| -var evt = document.createEvent("HTMLEvents");
|
| -evt.initEvent("change", true, true);
|
| -x.dispatchEvent(evt);
|
| -</script>
|
| -</form>
|
| -
|
| -</body>
|
| -</html>
|
|
|