https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 51bd1468f59c188c8a0cb143d8200cb101a0ea67 authored by Xidorn Quan on 07 April 2018, 06:37:41 UTC
Add test for checking property order after setting property on CSSStyleDeclaration
Tip revision: 51bd146
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