1 <!DOCTYPE html PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
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. -->
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>
16 <script type=
"text/javascript">
18 var tester
= new Tester($('body'));
19 testProgressEventStateMachine(
22 2, // progressMinCount
26 undefined // lastError
29 tester
.waitFor($('progress_events'));
32 // Set all the listeners on the body.
33 setListeners($('body'));
37 <script type=
"text/javascript">
39 function createModule(id
, src
, type
) {
40 return createNaClEmbed({
49 var mime
= "application/x-nacl";
50 if (getTestArguments()["pnacl"] !== undefined) {
51 mime
= "application/x-pnacl";
53 var embed
= createModule("progress_events", "ppapi_progress_events.nmf", mime
);
54 document
.body
.appendChild(embed
);