- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / native_client / tests / ppapi_browser / bad / ppapi_bad_native_glibc.html
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 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     <title> PPAPI bad manifest/nexe URLs, glibc. </title>
10   </head>
11   <body id="body">
12     <embed id="partly_invalid"
13       class="naclModule"
14       width=100 height=20
15       src="partly_invalid.nmf"
16       style="background-color:gray"
17       type="application/x-nacl" />
18
19   <script type="text/javascript">
20   //<![CDATA[
21   var tester = new Tester($('body'));
22   tester.loadErrorsAreOK();
23   // This is a dummy test so that we can check output of runnable-ld.so
24   // using golden file.
25   tester.addAsyncTest('load_finished', function(status) {
26     status.expectEvent($('partly_invalid'), 'load', function(event) {
27       status.fail();
28     });
29     status.expectEvent($('partly_invalid'), 'loadend', function(event) {
30       status.pass();
31     });
32   });
33   tester.run();
34   //]]>
35   </script>
36   </body>
37 </html>