Revision 904da22855cdcf22d76ac514eb7c4f699ab6f389 authored by Anne van Kesteren on 03 May 2018, 08:59:36 UTC, committed by Anne van Kesteren on 03 May 2018, 08:59:36 UTC
1 parent 0cb962b
TrustedURL.tentative.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="./support/helper.js"></script>
<script>
test(t => {
var url = TrustedURL.create(URLS.safe);
assert_equals(url.toString(), URLS.safe);
}, "Basic processing: safe URL, safe construction.");
test(t => {
var url = TrustedURL.unsafelyCreate(URLS.safe);
assert_equals(url.toString(), URLS.safe);
}, "Basic processing: safe URL, unsafe construction.");
test(t => {
var url = TrustedURL.create(URLS.javascript);
assert_equals(url.toString(), URLS.sanitized);
}, "Basic processing: javascript URL, safe construction.");
test(t => {
var url = TrustedURL.unsafelyCreate(URLS.javascript);
assert_equals(url.toString(), URLS.javascript);
}, "Basic processing: javascript URL, unsafe construction.");
test(t => {
var url = TrustedURL.create(URLS.external);
assert_equals(url.toString(), URLS.sanitized);
}, "Basic processing: external protocol URL, safe construction.");
test(t => {
var url = TrustedURL.unsafelyCreate(URLS.external);
assert_equals(url.toString(), URLS.external);
}, "Basic processing: external protocol URL, unsafe construction.");
</script>
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...