- add sources.
[platform/framework/web/crosswalk.git] / src / ppapi / native_client / tests / ppapi_browser / bad / ppapi_bad_native.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     <script type="text/javascript" src="progress_event_listener.js"> </script>
10     <title> PPAPI bad manifest/nexe URLs </title>
11   </head>
12   <body id="body">
13 <script type="text/javascript">
14 //<![CDATA[
15 var tester = new Tester($('body'));
16
17 // This nexe should fail validation inside the sel_ldr.
18 testProgressEventStateMachine(
19     tester,
20     'partly_invalid',
21     1,  // progressMinCount
22     1,  // errorCount
23     0,  // abortCount
24     0,  // loadCount
25     'NaCl module load failed: Validation failure. File violates Native Client safety rules.');
26
27 // The driver invoked when the body has finished loading.
28 function runTests() {
29   tester.loadErrorsAreOK();
30   tester.waitFor($('partly_invalid'));
31   tester.run();
32 }
33 // Set all the listeners on the body.
34 setListeners($('body'));
35 //]]>
36 </script>
37     <embed id="partly_invalid"
38       class="naclModule"
39       width=100 height=20
40       src="partly_invalid.nmf"
41       style="background-color:gray"
42       type="application/x-nacl" />
43
44   <script type="text/javascript">
45   //<![CDATA[
46   runTests();
47   //]]>
48   </script>
49   </body>
50 </html>