Reviewed by Darin Adler.
https://bugs.webkit.org/show_bug.cgi?id=16856
Fix tests not to rely on broken javascript URL behavior.
* fast/events/event-listener-html-non-html-confusion.html:
* fast/replaced/image-map-bug16782-expected.txt: Added.
* fast/replaced/image-map-bug16782.html: Added.
* fast/replaced/image-map.html:
* svg/custom/prevent-default.svg:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34463
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-06-08 Adam Barth <abarth@webkit.org>
+
+ Reviewed by Darin Alder.
+
+ https://bugs.webkit.org/show_bug.cgi?id=16856
+
+ Fix tests not to rely on broken javascript URL behavior.
+
+ * fast/events/event-listener-html-non-html-confusion.html:
+ * fast/replaced/image-map-bug16782-expected.txt: Added.
+ * fast/replaced/image-map-bug16782.html: Added.
+ * fast/replaced/image-map.html:
+ * svg/custom/prevent-default.svg:
+
2008-06-08 Cameron Zwarich <cwzwarich@uwaterloo.ca>
Reviewed by Oliver.
<p id="result"></p>
-<a href="javascript:document.getElementById('result').innerHTML = 'FAILURE'" id="anchor">test anchor - script clicks this automatically</a>
+<a href="javascript:void(document.getElementById('result').innerHTML = 'FAILURE')" id="anchor">test anchor - script clicks this automatically</a>
<script>
--- /dev/null
+
+area clicked
--- /dev/null
+<head>
+<script>
+function test() {
+ if (window.layoutTestController) {
+ layoutTestController.dumpAsText();
+ eventSender.mouseMoveTo(50, 50);
+ eventSender.mouseDown();
+ eventSender.mouseUp();
+ }
+}
+</script>
+</head>
+<body onload="test()">
+<img id="image" height="100" width="100" src="resources/square-blue-100x100.png" usemap="#map">
+<map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javascript:document.getElementById('result').innerHTML='area clicked'"></map>
+<div id="result">no area click seen yet</div>
+</body>
</head>
<body onload="test()">
<img id="image" height="100" width="100" src="resources/square-blue-100x100.png" usemap="#map">
-<map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javascript:document.getElementById('result').innerHTML='area clicked'"></map>
+<map name="map"><area shape="poly" coords="0,0,0,100,100,100,100,0" href="javascript:void(document.getElementById('result').innerHTML='area clicked')"></map>
<div id="result">no area click seen yet</div>
</body>
]]>
</script>
</defs>
- <a xlink:href="javascript:document.getElementById('rect').style.fill='red'">
+ <a xlink:href="javascript:void(document.getElementById('rect').style.fill='red')">
<rect id='rect' onclick="changeColor(evt)" width='100' height='100' fill='orange' />
</a>
</svg>