blob: d6901a15a34a166a9db7a999dc99f4f43c60bcb8 [file] [log] [blame]
<!doctype html>
<title>resolving broken url</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="log"></div>
<script>
test(function() {
assert_throws('SYNTAX_ERR', function() {
postMessage('', {targetOrigin: 'http://foo bar'});
}, 'should have failed to resolve');
});
</script>