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

Side by Side Diff: chrome/test/data/npapi/create_instance_in_paint.html

Issue 10806056: Move plugin_browsertests.cc from browser_tests to content_browsertests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync to mac+win fixes Created 8 years, 5 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2
3 <head>
4 <script src="npapi.js"></script>
5 </head>
6
7 <body>
8 <div id="statusPanel" style="border: 1px solid red; width: 100%">
9 Test running....
10 </div>
11
12
13 Plugin Instance In Paint Test<p>
14
15 Tests that there's no deadlock when a plugin instance is created while handling a paint message.
16
17 <DIV ID="PluginDiv">
18 <embed type="application/vnd.npapi-test"
19 src="foo"
20 name="create_instance_in_paint"
21 id="1"
22 mode="np_embed"
23 >
24 </DIV>
25
26 <DIV id="PluginDiv2"></DIV>
27
28 <script>
29 var height = document.body.offsetHeight;
30
31
32 function CreateNewInstance() {
33 var obj = document.createElement('embed');
34 obj.setAttribute('type', 'application/vnd.npapi-test');
35 obj.setAttribute('src', 'bar');
36 obj.setAttribute('name', 'create_instance_in_paint');
37 obj.setAttribute('id', '2');
38 obj.setAttribute('mode', 'np_embed');
39 document.getElementById("PluginDiv2").appendChild(obj);
40 }
41 </script>
42
43 </body>
44 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698