3 <p>Test IsProviderInstalled.
<p>
9 function log(message
) {
10 document
.getElementById("result").innerHTML
+= message
+ "<br>";
13 function logPassed(message
) {
14 log("PASS: " + message
);
17 function logFailed(message
) {
19 log("FAIL: " + message
);
22 function writeResult() {
24 logPassed("Everything passed.");
25 document
.title
= "OK";
27 logFailed("At least one test failed.");
28 document
.title
= "FAIL";
36 MyObject
.prototype.toString = function() { throw "test"; }
37 var object
= new MyObject();
39 // Verify the search provider state for the current page.
40 var installed
= window
.external
.IsSearchProviderInstalled(object
)
43 logFailed("An exception occurred. Name: " + e
.name
+ " Message: " +