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 <!-- 5 Copyright 2012 The Chromium Authors. All rights reserved. 6 Use of this source code is governed by a BSD-style license that can 7 be found in the LICENSE file. 8 --> 9 <head> 10 <title>PPAPI Runtime Feature Test</title> 11 <meta HTTP-EQUIV="Pragma" CONTENT="no-cache" /> 12 <meta HTTP-EQUIV="Expires" CONTENT="-1" /> 13 <script type="text/javascript" src="nacltest.js"></script> 14 </head> 15 16 <body id="body"> 17 <embed id="naclDSOModule" 18 name="naclDSOModule" 19 src="browser_dlopen_test.nmf" 20 type="application/x-nacl" 21 width=0 height=0 /> 22 <script type="text/javascript"> 23 function setupTests(tester, plugin) { 24 function addTest(test_name) { 25 tester.addAsyncTest(test_name, function(test) { 26 test.expectMessageSequence(plugin, [test_name + ':PASSED']); 27 plugin.postMessage(test_name); 28 }); 29 } 30 31 addTest("TestDlopenMainThread"); 32 addTest("TestDlopenSecondaryThread"); 33 } 34 //<![CDATA[ 35 var tester = new Tester(); 36 setupTests(tester, $('naclDSOModule')); 37 tester.waitFor($('naclDSOModule')); 38 tester.run(); 39 //]]> 40 </script> 41 </body> 42 </html> 43