summaryrefslogtreecommitdiffstats
path: root/chrome/test/data/npapi
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/data/npapi')
-rw-r--r--chrome/test/data/npapi/ensure_plugins_pump_messages_in_sync_calls.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/chrome/test/data/npapi/ensure_plugins_pump_messages_in_sync_calls.html b/chrome/test/data/npapi/ensure_plugins_pump_messages_in_sync_calls.html
new file mode 100644
index 0000000..f840278
--- /dev/null
+++ b/chrome/test/data/npapi/ensure_plugins_pump_messages_in_sync_calls.html
@@ -0,0 +1,39 @@
+<html>
+<head>
+<title>Test for verifying if plugins pump messages in sync calls.</title>
+<script src="npapi.js"></script>
+<script>
+function SetFocusToPlugin2() {
+ var plugin = window.document["plugin2"];
+ plugin.resetFocus = 1;
+}
+</script>
+</head>
+
+<body>
+<div id="statusPanel" style="border: 1px solid red; width: 100%">
+Test running....
+</div>
+
+<h2>Test to verify whether plugins pump messages in sync calls.</h2>
+
+<p>
+This test verifies whether a plugin continues to pump messages in outgoing
+sync calls. This ensures that it remains responsive and does not cause
+other plugins and the browser to hang
+</p>
+
+<DIV ID=PluginDiv>
+<embed type="application/vnd.npapi-test"
+ src="foo"
+ name="src_plugin_for_outgoing_sync_call"
+ id="1"
+ mode="np_embed">
+</embed>
+</DIV>
+
+<embed name="plugin2" type="application/x-webkit-test-netscape" resetFocusWindow="1"></embed>
+
+</body>
+</html>
+