blob: d5c2ff3e05a845e808be243637d351bc835472c5 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>isContentHandlerRegistered for content type that is not yet accepted</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script type="application/ecmascript">
test(function() {
var ctype = 'application/x-notRegisteredInOtherTCs-002';
var url = location.href.replace(/\/[^\/]*$/, "") + "/%s";
navigator.registerContentHandler(ctype, url, 'test');
assert_equals(navigator.isContentHandlerRegistered(ctype, url), 'declined');
});
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>