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 The Chromium Authors. All rights reserved.
5     Use of this source code is governed by a BSD-style license that can be
6     found in the LICENSE file. -->
7<head>
8  <title>PPAPI Runtime Feature Test</title>
9  <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
10  <meta HTTP-EQUIV="Expires" CONTENT="-1" />
11  <script type="text/javascript" src="nacltest.js"></script>
12  <script type="text/javascript" src="progress_event_listener.js"></script>
13</head>
14
15<body id="body">
16<script type="text/javascript">
17//<![CDATA[
18var tester = new Tester($('body'));
19testProgressEventStateMachine(
20    tester,
21    'topdir_static',
22    2,  // progressMinCount
23    0,  // errorCount
24    0,  // abortCount
25    1,  // loadCount
26    undefined  // lastError
27);
28testProgressEventStateMachine(
29    tester,
30    'subdir_static',
31    2,  // progressMinCount
32    0,  // errorCount
33    0,  // abortCount
34    1,  // loadCount
35    undefined  // lastError
36);
37testProgressEventStateMachine(
38    tester,
39    'arch_specific_files',
40    2,  // progressMinCount
41    0,  // errorCount
42    0,  // abortCount
43    1,  // loadCount
44    undefined  // lastError
45);
46function runTests() {
47  tester.waitFor($('topdir_static'), $('subdir_static'));
48  tester.run();
49}
50// Set all the listeners on the body.
51setListeners($('body'));
52//]]>
53</script>
54
55<!--
56// manifest_top refers to nexes in a subdirectory below the manifest.
57-->
58<embed id="topdir_static"
59       class="naclModule"
60       width=0 height=0
61       src="manifest_top.nmf"
62       type="application/x-nacl" />
63
64<!--
65// manifest_subdir refers to resources in the same directory as the manifest.
66-->
67<embed id="subdir_static"
68       class="naclModule"
69       width=0 height=0
70       src="subdir/manifest_subdir.nmf"
71       type="application/x-nacl" />
72       
73<!--
74// manifest_arch_specific refers to unused files that are not available on all
75// platforms.
76-->
77<embed id="arch_specific_files"
78       class="naclModule"
79       width=0 height=0
80       src="manifest_arch_specific.nmf"
81       type="application/x-nacl" />
82
83<script type="text/javascript">
84//<![CDATA[
85runTests();
86//]]>
87</script>
88</body>
89</html>
90