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

Unified Diff: trunk/LayoutTests/fast/events/dispatch-synthetic-mouseevent-no-action.html

Issue 1184693003: Revert 196987 "Don't invoke default actions for MouseEvents gene..." (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 5 years, 6 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
Index: trunk/LayoutTests/fast/events/dispatch-synthetic-mouseevent-no-action.html
===================================================================
--- trunk/LayoutTests/fast/events/dispatch-synthetic-mouseevent-no-action.html (revision 197019)
+++ trunk/LayoutTests/fast/events/dispatch-synthetic-mouseevent-no-action.html (working copy)
@@ -1,32 +0,0 @@
-<!DOCTYPE html>
-<script src="../../resources/js-test.js"></script>
-<p id="description"></p>
-<select id='top'></select>
-<pre id="console"></pre>
-<script>
-description("Tests to ensure that default action does not occur for mouse events from script.");
-
-function focusHandler() {
- testFailed('default action should not occur for mouse events from script.');
-}
-
-function mousedownHandler() {
- debug('mousedown event is fired.');
-}
-
-function test()
-{
- if (window.testRunner)
- testRunner.dumpAsText();
-
- var node = document.getElementById('top');
- node.addEventListener('focus', focusHandler, false);
- node.addEventListener('mousedown', mousedownHandler, false);
- var client = node.getBoundingClientRect();
-
- var event = new MouseEvent('mousedown', { button: 1 });
- node.dispatchEvent(event);
-}
-
-test();
-</script>

Powered by Google App Engine
This is Rietveld 408576698