summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/svg/dom/font-face-elements.html
blob: 809d37a196bfeccd1c328fa985c27620574ff6d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<html>
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
</head>
<body>
<p id="description"></p>
<div id="console"></div>
<script>

description("This tests to make sure we have all the font-face related dom bindings.");

function stringsShouldBeEqual(a, b) {
  
}

function checkForBinding(namespace, elementName, className) {
  var element = document.createElementNS(namespace, elementName);
  if (element.toString() == "[object " + className + "]") {
    testPassed(elementName + " in " + namespace + " is JS object " + className);
  } else {
    testFailed(elementName + " in " + namespace + " is NOT JS object " + className + ", rather: " + element);
  }
}

var svgNs = "http://www.w3.org/2000/svg";

checkForBinding(svgNs, "font-face", "SVGFontFaceElement");
checkForBinding(svgNs, "font-face-name", "SVGFontFaceNameElement");
checkForBinding(svgNs, "font-face-format", "SVGFontFaceFormatElement");
checkForBinding(svgNs, "font-face-src", "SVGFontFaceSrcElement");
checkForBinding(svgNs, "font-face-uri", "SVGFontFaceUriElement");


</script>
<script src="../../fast/js/resources/js-test-post.js"></script>
</body>
</html>