3 <script src="../../resources/js-test.js"></script>
6 <p id="description"></p>
7 <div id="console"></div>
10 description("This tests to make sure we have all the font-face related dom bindings.");
12 function stringsShouldBeEqual(a, b) {
16 function checkForBinding(namespace, elementName, className) {
17 var element = document.createElementNS(namespace, elementName);
18 if (element.toString() == "[object " + className + "]") {
19 testPassed(elementName + " in " + namespace + " is JS object " + className);
21 testFailed(elementName + " in " + namespace + " is NOT JS object " + className + ", rather: " + element);
25 var svgNs = "http://www.w3.org/2000/svg";
27 checkForBinding(svgNs, "font-face", "SVGFontFaceElement");
28 checkForBinding(svgNs, "font-face-name", "SVGFontFaceNameElement");
29 checkForBinding(svgNs, "font-face-format", "SVGFontFaceFormatElement");
30 checkForBinding(svgNs, "font-face-src", "SVGFontFaceSrcElement");
31 checkForBinding(svgNs, "font-face-uri", "SVGFontFaceUriElement");