Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: LayoutTests/fast/replaced/image-map-alt-content-crash.html

Issue 1119813002: Use the correct node when hit testing on an image map (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/image-map-alt-content-crash-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/replaced/image-map-alt-content-crash.html
diff --git a/LayoutTests/fast/replaced/image-map-alt-content-crash.html b/LayoutTests/fast/replaced/image-map-alt-content-crash.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb19061dfb6bbbf9025f5c757e93754b4ce48407
--- /dev/null
+++ b/LayoutTests/fast/replaced/image-map-alt-content-crash.html
@@ -0,0 +1,10 @@
+<a onmouseover="var img=document['mapimage'];img.src=img.lowsrc?img.lowsrc:img.getAttribute?img.getAttribute('lowsrc'):img.src;">
+ <img alt="alt text" width="850" usemap="#map" name="mapimage">
+<map name="map"><area shape="rect" coords="60,60,100,100"></map>
+<p>crbug.com/482214: Don't crash when hit testing while moving across a broken image that contains an image map.</p>
+<script>
+if (window.testRunner) {
+ testRunner.dumpAsText();
+ eventSender.mouseMoveTo(50, 50);
+}
+</script>
« no previous file with comments | « no previous file | LayoutTests/fast/replaced/image-map-alt-content-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698