blob: 8094627e084f50d0075eed68a4819cf60369e26c [file] [log] [blame]
<html>
<!--
Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- libc_free.html tests for basic load up. This file contains test
about IRT functionality. -->
<head>
<title>NonSFI NaCl IRT Basic Test</title>
</head>
<body>
<h2>NonSFI NaCl IRT Basic Test</h2>
<script type="text/javascript" src="nacltest.js"> </script>
<script>
function create(manifest_url) {
var embed = document.createElement('embed');
embed.src = manifest_url;
embed.type = 'application/x-nacl';
embed.basic_tests = '2';
embed.stress_tests = '0';
return embed;
}
function setupTests(tester, plugin) {
tester.addAsyncTest('TestRandom', function(status) {
plugin.addEventListener('message', function(message_event) {
this.removeEventListener('message', arguments.callee, false);
status.assertEqual(message_event.data, 'randomsuccess');
status.pass();
}, false);
plugin.postMessage('random');
});
};
var embed = create("libc_free.nmf");
document.body.appendChild(embed);
var tester = new Tester();
setupTests(tester, embed);
tester.waitFor(embed);
tester.run();
</script>
</body>
</html>