https://github.com/web-platform-tests/wpt
Raw File
Tip revision: 7278d99a68da4b055807c635a9e710207565fc8b authored by Manuel Rego Casasnovas on 14 March 2018, 15:33:37 UTC
[css-align] Use actual prefixed properties in the grid-* gutter tests
Tip revision: 7278d99
reflected-as-value.html
<!DOCTYPE html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
test(function() {
  var link = document.createElement("link");
  var values = {
    "Image": "image",
    "images": "",
    "scripT": "script",
    "style": "style",
    "": "",
    "foNt": "font",
    "foobar": "",
    "video": "video",
    "audio": "audio",
    "track": "track",
    "fetch": "fetch",
  };
  var keys = Object.keys(values);
  for (var i = 0; i < keys.length; ++i) {
    link.as = keys[i];
    assert_true(link.as == values[keys[i]]);
  }
}, "Make sure that the `as` value reflects only known values");
</script>
back to top