| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../../resources/js-test.js"></script> | |
| 4 </head> | |
| 5 <body> | |
| 6 <p id="description"></p> | |
| 7 <div id="console"></div> | |
| 8 <script> | |
| 9 | |
| 10 description("This tests to make sure we have all the font-face related dom bindi
ngs."); | |
| 11 | |
| 12 function stringsShouldBeEqual(a, b) { | |
| 13 | |
| 14 } | |
| 15 | |
| 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); | |
| 20 } else { | |
| 21 testFailed(elementName + " in " + namespace + " is NOT JS object " + classNa
me + ", rather: " + element); | |
| 22 } | |
| 23 } | |
| 24 | |
| 25 var svgNs = "http://www.w3.org/2000/svg"; | |
| 26 | |
| 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"); | |
| 32 | |
| 33 | |
| 34 </script> | |
| 35 </body> | |
| 36 </html> | |
| OLD | NEW |