summaryrefslogtreecommitdiffstats
path: root/webkit/data/layout_tests/chrome/fast/dom/window-image-name-conflict.html
blob: 2b9d1542f20a4888f53fbd696a5c24dda39a86b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
<script>
if (window.layoutTestController)
  layoutTestController.dumpAsText();

function runTest() {
  try {
   new Image();
   document.getElementById("result").innerHTML = 'PASS';
  } catch (e) {
   // failed
  }
}
</script>
</head>

<body onload="runTest()">
<img id="Image" src="resources/1.gif" />
<div id="result">FAIL</div>
</body>
</html>