- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / native_client / tests / nacl_browser / manifest_file / irt_manifest_file_test.html
1 <!--
2   Copyright 2011 The Chromium Authors. All rights reserved.
3   Use of this source code is governed by a BSD-style license that can
4   be found in the LICENSE file.
5 -->
6 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
7   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
8 <html>
9   <head>
10     <meta http-equiv="Pragma" content="no-cache" />
11     <meta http-equiv="Expires" content="-1" />
12     <script type="text/javascript" src="nacltest.js"></script>
13     <title>Native Client Open Resource Before PPAPI Test</title>
14   </head>
15
16   <body>
17     <h1>Native Client Open Resource Before PPAPI Test</h1>
18     <div>
19     <embed id="naclModule"
20            name="naclModule"
21            width=400 height=400
22            src="irt_manifest_file.nmf"
23            basic_tests="1"
24            stress_tests="0"
25            style="background-color:gray"
26            type="application/x-nacl" />
27     </div>
28
29   <script type="text/javascript">
30     //<![CDATA[
31 function setupTests(tester, plugin) {
32   tester.addAsyncTest('Test_00_Init', function(status) {
33     plugin.addEventListener('message', function(message_event) {
34       this.removeEventListener('message', arguments.callee, false);
35       var golden = 'File Contents:\nTest File Content';
36       status.assertEqual(message_event.data, golden);
37       status.pass();
38     }, false);
39     plugin.postMessage('hello');
40   });
41 }
42
43 var tester = new Tester();
44 setupTests(tester, $('naclModule'));
45 tester.waitFor($('naclModule'));
46 tester.run();
47     //]]>
48   </script>
49   </body>
50 </html>