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