15c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<html>
25c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<head>
35c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<title>NPN_Invoke() test</title>
45c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)</head>
55c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<body>
65c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
75c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<object width="0" height="0" type="test/npn-invoke">
85c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)  <!-- Fallback content to describe how to run the test -- />
95c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)  <p>You do not have the &quot;NPN_Invoke&quot; plugin installed.  Before you run this test:</p>
105c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)  <ol>
115c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    <li>Build the included Xcode project, &quot;NPN_Invoke.xcodeproj&quot;.</li>
125c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    <li>Copy the built plugin (NPN_Invoke.plugin) to /Library/Internet Plug-Ins.</li>
135c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)    <li>Restart Safari.</li>
145c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)  </ol>
155c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)</object>
165c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
175c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p>This tests NPN_Invoke(), part of the Netscape Plugin API scripting interface.</p>
185c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p>To verify, you must run this test with JavaScript enabled and then repeat the test with JavaScript disabled.</p>
195c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
205c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<h4>JavaScript enabled</h4>
215c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p style="color: green">Success: An alert dialog is shown with the message &quot;Success!&quot;</p>
225c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p style="color: red">Failure: No alert dialog is shown, or the message is not &quot;Success!&quot;</p>
235c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
245c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<h4>JavaScript disabled</h4>
255c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p style="color: green">Success: No alert dialog is shown, and Safari remains open (does not crash).</p>
265c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)<p style="color: red">Failure: An alert dialog is shown, or Safari crashes.</p>
275c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)
285c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)</body>
295c87bf8b86a7c82ef50fb7a89697d8e02e2553beTorne (Richard Coles)</html>
30