https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 3c1277e4f12ad53c7bcf1e28b92fd12b346b7339 authored by Ovidio Henriquez on 23 March 2018, 15:12:10 UTC
bluetooth: Add RemoveFakeDescriptor to BT test
Tip revision: 3c1277e
TrustedScriptURL.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 = TrustedScriptURL.unsafelyCreate(URLS.safe);

    assert_equals(url.toString(), URLS.safe);
  }, "Basic processing: safe URL, unsafe construction.");

  test(t => {
    var url = TrustedScriptURL.unsafelyCreate(URLS.javascript);

    assert_equals(url.toString(), URLS.javascript);
  }, "Basic processing: javascript URL, unsafe construction.");

  test(t => {
    var url = TrustedScriptURL.unsafelyCreate(URLS.external);

    assert_equals(url.toString(), URLS.external);
  }, "Basic processing: external protocol URL, unsafe construction.");
</script>
back to top