Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / nacl / ppapi / ppp_instance / ppapi_ppp_instance.html
blobff0fe3f8f0a62ccc1f89e3fc4311d727aa3a27e5
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html>
4 <!-- Copyright (c) 2011 Google Inc. All rights reserved. -->
5 <head>
6 <meta http-equiv="Pragma" content="no-cache" />
7 <meta http-equiv="Expires" content="-1" />
8 <script type="text/javascript" src="nacltest.js"></script>
9 <script type="text/javascript" src="ppapi_ppp_instance.js"></script>
10 <title>PPAPI PPP_Instance Test</title>
11 </head>
12 <body>
13 <h1>PPAPI PPP_Instance Test</h1>
15 <div id="test_nexe_parent">
16 <!-- NOTE: The width and height must be different from the values checked
17 in PPP_Instance::DidChangeView so when we set them, they change -->
18 </div>
19 <br>
20 <script type="text/javascript">
21 //<![CDATA[
22 function createModule(id, src, type) {
23 return createNaClEmbed({
24 id: id,
25 src: src,
26 width: 20,
27 height: 20,
28 type: type
29 });
32 var mime = 'application/x-nacl';
33 if (getTestArguments()['pnacl'] !== undefined) {
34 mime = 'application/x-pnacl';
36 var embed = createModule('test_nexe', 'ppapi_ppp_instance.nmf', mime);
37 $('test_nexe_parent').appendChild(embed);
39 var tester = new Tester();
40 setupTests(tester, $('test_nexe'));
41 tester.waitFor($('test_nexe'));
42 tester.run();
43 //]]>
44 </script>
45 </body>
46 </html>