3 <link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
4 <script src="../../fast/js/resources/js-test-pre.js"></script>
7 <p id="description"></p>
8 <div id="console"></div>
11 description("This tests to make sure we have all the font-face related dom bindings.");
13 function stringsShouldBeEqual(a, b) {
17 function checkForBinding(namespace, elementName, className) {
18 var element = document.createElementNS(namespace, elementName);
19 if (element.toString() == "[object " + className + "]") {
20 testPassed(elementName + " in " + namespace + " is JS object " + className);
22 testFailed(elementName + " in " + namespace + " is NOT JS object " + className + ", rather: " + element);
26 var svgNs = "http://www.w3.org/2000/svg";
28 checkForBinding(svgNs, "font-face", "SVGFontFaceElement");
29 checkForBinding(svgNs, "font-face-name", "SVGFontFaceNameElement");
30 checkForBinding(svgNs, "font-face-format", "SVGFontFaceFormatElement");
31 checkForBinding(svgNs, "font-face-src", "SVGFontFaceSrcElement");
32 checkForBinding(svgNs, "font-face-uri", "SVGFontFaceUriElement");
33 checkForBinding(svgNs, "definition-src", "SVGDefinitionSrcElement");
35 successfullyParsed = true;
38 <script src="../../fast/js/resources/js-test-post.js"></script>