Roll leveldb 3f7758:803d69 (v1.17 -> v1.18)
[chromium-blink-merge.git] / chrome / test / data / nacl / progress_events / ppapi_progress_events.html
blobb71b472058c9325b9107057b0f94bb028eca0ccb
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>
15 <body id="body">
16 <script type="text/javascript">
17 //<![CDATA[
18 var tester = new Tester($('body'));
19 testProgressEventStateMachine(
20 tester,
21 'progress_events',
22 2, // progressMinCount
23 0, // errorCount
24 0, // abortCount
25 1, // loadCount
26 undefined // lastError
28 function runTests() {
29 tester.waitFor($('progress_events'));
30 tester.run();
32 // Set all the listeners on the body.
33 setListeners($('body'));
34 //]]>
35 </script>
37 <script type="text/javascript">
38 //<![CDATA[
39 function createModule(id, src, type) {
40 return createNaClEmbed({
41 id: id,
42 src: src,
43 width: 0,
44 height: 0,
45 type: type
46 });
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);
56 runTests();
57 //]]>
58 </script>
59 </body>
60 </html>