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

Unified Diff: third_party/WebKit/LayoutTests/accessibility/image-inside-link.html

Issue 2035583003: Revert of Make click targets inside links work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/accessibility/image-inside-link.html
diff --git a/third_party/WebKit/LayoutTests/accessibility/image-inside-link.html b/third_party/WebKit/LayoutTests/accessibility/image-inside-link.html
deleted file mode 100644
index d89ea88ff3b3dc4f74af76b569f7180f545541db..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/accessibility/image-inside-link.html
+++ /dev/null
@@ -1,87 +0,0 @@
-<!DOCTYPE html>
-<script src="../resources/testharness.js"></script>
-<script src="../resources/testharnessreport.js"></script>
-
-<div id="wrapper1">
- <a href="#"><img id="img1" alt="Delicious cake" src="resources/cake.png"></a>
-</div>
-
-<script>
-async_test(function(t)
-{
- var axImg = accessibilityController.accessibleElementById("img1");
- axImg.addNotificationListener(function(notification) {
- if (notification == 'Clicked') {
- document.getElementById("wrapper1").style.display = "none";
- t.done();
- }
- });
-
- var img = document.getElementById("img1");
- img.addEventListener("click", function(e)
- {
- img.title = "clicked";
- });
- img.click();
-}, "clicking an image via javascript sends an accessible click event");
-</script>
-
-<div id="wrapper2">
- <a href="#"><img id="img2" alt="Delicious cake" src="resources/cake.png"></a>
-</div>
-
-<script>
-async_test(function(t)
-{
- var axImg = accessibilityController.accessibleElementById("img2");
- axImg.addNotificationListener(function(notification) {
- if (notification == 'Clicked') {
- document.getElementById("wrapper2").style.display = "none";
- t.done();
- }
- });
-
- var img = document.getElementById("img2");
- img.addEventListener("click", function(e)
- {
- img.title = "clicked";
- });
- eventSender.mouseMoveTo(axImg.x + 10, axImg.y + 10);
- eventSender.mouseDown();
- eventSender.mouseUp();
-}, "clicking an image via mouse events sends an accessible click event");
-</script>
-
-<div id="wrapper4">
- <a href="#"><img id="img4" alt="Delicious cake" src="resources/cake.png"></a>
-</div>
-
-<script>
-async_test(function(t)
-{
- var axEvent = false;
- var domEvent = false;
- var axImg = accessibilityController.accessibleElementById("img4");
- axImg.addNotificationListener(function(notification) {
- if (notification == 'Clicked') {
- axEvent = true;
- }
- });
-
- var img = document.getElementById("img4");
- img.addEventListener("click", function(e)
- {
- img.title = "clicked";
- domEvent = true;
- });
- axImg.press();
-
- setTimeout(function()
- {
- if (axEvent && domEvent) {
- document.getElementById("wrapper4").style.display = "none";
- t.done();
- }
- });
-}, "clicking an image via accessibility sends both an accessible and a DOM click event");
-</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698