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
TrustedHTML.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 html = TrustedHTML.escape(STRINGS.unescapedHTML);

    assert_equals(html.toString(), STRINGS.escapedHTML);
  }, "Basic escaping.");

  test(t => {
    var html = TrustedHTML.unsafelyCreate(STRINGS.unescapedHTML);

    assert_equals(html.toString(), STRINGS.unescapedHTML);
  }, "Basic unsafe construction.");
</script>
back to top