blob: 035d5b9a64bbda501d27aba2f942129052b55dd0 [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Protocol case insensitivity in isProtocolHandlerRegistered</title>
<script src='/resources/testharness.js'></script>
<script src='/resources/testharnessreport.js'></script>
<script type="application/ecmascript">
test(function() {
var scheme = 'web+CustomProtocolTree', url = location.href.replace(/\/[^\/]*$/, "") + '/%s';
navigator.registerProtocolHandler(scheme, url, 'Ignore dialog or decline it');
assert_equals(navigator.isProtocolHandlerRegistered(scheme.toUpperCase(), url), 'declined');
});
</script>
</head>
<body>
<div id="log"></div>
</body>
</html>