<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<!--
Copyright 2011 The Chromium Authors
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<head>
<title>PPAPI Runtime Feature Test</title>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache" />
<meta HTTP-EQUIV="Expires" CONTENT="-1" />
<script type="text/javascript" src="nacltest.js"></script>
<script type="text/javascript" src="progress_event_listener.js"></script>
</head>
<body id="body">
<script type="text/javascript">
//<![CDATA[
var tester = new Tester($('body'));
testProgressEventStateMachine(
tester,
'progress_events',
2, // progressMinCount
0, // errorCount
0, // abortCount
1, // loadCount
undefined // lastError
);
function runTests() {
tester.waitFor($('progress_events'));
tester.run();
}
// Set all the listeners on the body.
setListeners($('body'));
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
function createModule(id, src, type) {
return createNaClEmbed({
id: id,
src: src,
width: 0,
height: 0,
type: type
});
}
var mime = "application/x-nacl";
if (getTestArguments()["pnacl"] !== undefined) {
mime = "application/x-pnacl";
}
var embed = createModule("progress_events", "ppapi_progress_events.nmf", mime);
document.body.appendChild(embed);
runTests();
//]]>
</script>
</body>
</html>