Index: LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html |
diff --git a/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html b/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html |
index 731beb73973b2ff5c73bc1c93aec1493e2cf7229..83b3421667e9ef7a4383135162d141b355c5e329 100644 |
--- a/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html |
+++ b/LayoutTests/fast/dom/navigatorcontentutils/register-protocol-handler.html |
@@ -56,13 +56,14 @@ invalid_schemes.forEach(function (scheme) { |
try { |
window.navigator.registerProtocolHandler(scheme, 'invalid scheme uri=%s', 'title'); |
} catch (e) { |
- succeeded = true; |
+ succeeded = 'SyntaxError' == e.name; |
+ errorMessage = e.message; |
} |
if (succeeded) |
debug('Pass: Invalid scheme "' + scheme + '" falied.'); |
else |
- debug('Fail: Invalid scheme "' + scheme + '" allowed.'); |
+ debug('Fail: Invalid scheme "' + scheme + '" allowed. Threw exception: "' + errorMessage + '".'); |
}); |
var invalid_urls = ["", "%S"]; |