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

Unified Diff: LayoutTests/plugins/plugin-event-filtering.html

Issue 212893005: Revert "Change event handling order in HTMLPlugInElement." (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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/plugins/plugin-event-filtering-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/plugins/plugin-event-filtering.html
diff --git a/LayoutTests/plugins/plugin-event-filtering.html b/LayoutTests/plugins/plugin-event-filtering.html
deleted file mode 100644
index 4fe2bdf9309eed52fffcbc1d33955ebdf7f6cb8e..0000000000000000000000000000000000000000
--- a/LayoutTests/plugins/plugin-event-filtering.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<html>
-<head>
-<script>
-var success;
-function clickHandler(event) {
- success = true;
-}
-
-function runTest() {
- success = false;
- var container = document.getElementById('container');
- container.addEventListener('click', clickHandler, false);
-
- var plugin = document.getElementById('testPlugin');
-
- // We have to simulate a mousedown event here instead of click
- // because click events aren't sent down to plugins.
- var evt = document.createEvent('MouseEvent');
- evt.initMouseEvent('mousedown', true, true, window, 0,
- 0, 0, 0, 0,
- false, false, false, false,
- 0, null);
- plugin.dispatchEvent(evt);
-
- if (success) {
- document.getElementById('result').innerHTML="Failure, click not filtered";
- } else {
- document.getElementById('result').innerHTML="Success.";
- }
- testRunner.dumpAsText();
-}
-</script>
-
-</head>
-<body onload="runTest();">
-<p>The support of event filtering for plugins.</p>
-
-<div id="result">Failure, test didn't run</div>
-
-<div id="container">
-<object id="testPlugin" type="application/x-webkit-test-netscape"
-width="400" height="400" windowedPlugin="false" alwaysFilterEvents="true">plugin didn't load.</object>
-</div>
-
-</body>
-</html>
« no previous file with comments | « no previous file | LayoutTests/plugins/plugin-event-filtering-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698