| Index: LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml b/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..002bfceada65ef0d2fd5b06da413450e78d106d1
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/webappapis/system-state-and-capabilities/the-navigator-object/protocol/004.xhtml
|
| @@ -0,0 +1,18 @@
|
| +<?xml version="1.0" encoding="utf-8"?>
|
| +<html xmlns="http://www.w3.org/1999/xhtml">
|
| +<head>
|
| +<title>Non-matching url in isProtocolHandlerRegistered</title>
|
| +<script src='../../../../../../../resources/testharness.js'></script>
|
| +<script src='../../../../../../../resources/testharnessreport.js'></script>
|
| +<script type="application/ecmascript">
|
| +test(function() {
|
| + var scheme = 'web+CustomProtocolFour', url = location.href.replace(/\/[^\/]*$/, "") + '/%s';
|
| + navigator.registerProtocolHandler(scheme, url, 'Ignore dialog');
|
| + assert_equals(navigator.isProtocolHandlerRegistered(scheme, 'http://t/core/standards/registerhandler/%s'), 'new');
|
| +});
|
| +</script>
|
| +</head>
|
| +<body>
|
| +<div id="log"></div>
|
| +</body>
|
| +</html>
|
|
|