3 Copyright 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
7 <!-- libc_free.html tests for basic load up. This file contains test
8 about IRT functionality. -->
10 <title>NonSFI NaCl IRT Basic Test
</title>
13 <h2>NonSFI NaCl IRT Basic Test
</h2>
14 <script type=
"text/javascript" src=
"nacltest.js"> </script>
17 function create(manifest_url
) {
18 var embed
= document
.createElement('embed');
19 embed
.src
= manifest_url
;
20 embed
.type
= 'application/x-nacl';
21 embed
.basic_tests
= '2';
22 embed
.stress_tests
= '0';
26 function setupTests(tester
, plugin
) {
27 tester
.addAsyncTest('TestRandom', function(status
) {
28 plugin
.addEventListener('message', function(message_event
) {
29 this.removeEventListener('message', arguments
.callee
, false);
30 status
.assertEqual(message_event
.data
, 'randomsuccess');
33 plugin
.postMessage('random');
37 var embed
= create("libc_free.nmf");
38 document
.body
.appendChild(embed
);
40 var tester
= new Tester();
41 setupTests(tester
, embed
);
42 tester
.waitFor(embed
);