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

Side by Side Diff: LayoutTests/platform/chromium/plugins/re-request-touch-events-crash.html

Issue 12088115: Merge 141357 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1364/
Patch Set: Created 7 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/plugins/re-request-touch-events-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../../fast/js/resources/js-test-pre.js"></script> 3 <script src="../../../fast/js/resources/js-test-pre.js"></script>
4 </head> 4 </head>
5 5
6 <body> 6 <body>
7 <embed id="touch_plugin" type="application/x-webkit-test-webplugin" accepts-touc h="raw" re-request-touch="true"></embed> 7 <embed id="touch_plugin" type="application/x-webkit-test-webplugin" accepts-touc h="raw" re-request-touch="true"></embed>
8 <p id="description"></p> 8 <p id="description"></p>
9 <script> 9 <script>
10 description("This test ensures that we don't imbalance the touch event handler c ount if a plugin requests touch events more than once. The test passes if there are no touch event listeners after the plugin is removed, and there is no crash. Must be run in DRT."); 10 description("This test ensures that we don't imbalance the touch event handler c ount if a plugin requests touch events more than once. The test passes if there are no touch event listeners after the plugin is removed, and there is no crash. Must be run in DRT.");
11 11
12 if (window.testRunner) { 12 if (window.testRunner) {
13 testRunner.dumpAsText(); 13 testRunner.dumpAsText();
14 14
15 // Force the plugin to initialize 15 // Force the plugin to initialize
16 touch_plugin.offsetTop; 16 touch_plugin.offsetTop;
17 17
18 shouldBe("window.internals.touchEventHandlerCount(document)", "1") 18 shouldBe("window.internals.touchEventHandlerCount(document)", "1")
19 touch_plugin.parentNode.removeChild(touch_plugin); 19 touch_plugin.parentNode.removeChild(touch_plugin);
20 shouldBe("window.internals.touchEventHandlerCount(document)", "0") 20 shouldBe("window.internals.touchEventHandlerCount(document)", "0")
21 } 21 }
22 22
23 </script> 23 </script>
24 </body> 24 </body>
25 <script src="../../fast/js/resources/js-test-post.js"></script> 25 <script src="../../fast/js/resources/js-test-post.js"></script>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/platform/chromium/plugins/re-request-touch-events-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698